/* GENERAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: "Poppins", sans-serif;
    color: #333;
    background: #fff;
}
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* NAVIGATION */
header {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}
.logo {
    font-size: 1.6rem;
    font-weight: 600;
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}
.nav-links a {
    text-decoration: none;
    color: #444;
    font-weight: 500;
}
.nav-btn {
    padding: 10px 18px;
}

/* HERO */
.hero {
    position: relative;
    height: 85vh;
    background: url('images/hero.jpg') center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
}
.overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 40, 70, 0.45);
}
.hero-content {
    position: relative;
    text-align: center;
    color: #fff;
}
.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}
.hero-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}
.hero {
    position: relative;
    width: 100%;
    height: 90vh; /* Altezza della sezione, puoi cambiare */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    background: url('clinic.jpg') center center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* overlay scuro per migliorare leggibilità */
}

.hero-content {
    position: relative;
    z-index: 2; /* assicura che il testo stia sopra l'overlay */
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero-content .btn-primary {
    padding: 12px 30px;
    font-size: 1rem;
}

/* CHI SIAMO */
.about {
    padding: 80px 0;
    background: #ffffff;
}

.about-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text p {
    margin-bottom: 18px;
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

.about-list {
    list-style: none;
    margin-top: 20px;
}

.about-list li {
    margin-bottom: 10px;
    font-size: 1rem;
    color: #333;
}

.about-image {
    flex: 1;
    min-width: 300px;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* BUTTONS */
.btn-primary {
    background: #1e90ff;
    color: #fff;
    padding: 12px 25px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
}
.btn-primary:hover {
    background: #0f7ad8;
}

/* SECTION TITLES */
.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
}
/* STATS SECTION */
.stats {
    background: #f4f9ff;
    padding: 70px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-box h2 {
    font-size: 3rem;
    font-weight: 700;
    color: #1e90ff;
    margin-bottom: 10px;
}

.stat-box h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.stat-box p {
    font-size: 1rem;
    color: #555;
}


/* SERVICES */
/* GRID LAYOUT */
.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 cards per row */
    gap: 20px;
}

@media (max-width: 768px) {
    .service-grid {
        grid-template-columns: 1fr;      /* stack on small screens */
    }
}

/* SERVICE CARD */
.service-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s;
}

.service-card img {
    width: 100%;
    height: 250px;        /* full card height */
    object-fit: cover;    /* cover the area without stretching */
    display: block;
    transition: transform 0.3s;
}

.service-card:hover img {
    transform: scale(1.05); /* subtle zoom on hover */
}

/* TEXT OVERLAY */
.service-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 15px;
    text-align: center;
    transition: background 0.3s;
}

.service-card:hover .service-content {
    background: rgba(0, 0, 0, 0.6);
}

.service-content h3 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
}

.service-content .price {
    font-weight: 600;
    margin-bottom: 5px;
}

.service-content .desc {
    font-size: 0.9rem;
    line-height: 1.3;
}

/* NOTE STYLING */
.service-note {
    display: flex;
    align-items: flex-start;      /* align icon with text */
    background-color: #ffffff;
    color: #005379;
    padding: 15px 20px;
    border-left: 5px solid #4270b4;
    border-radius: 8px;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 30px;
}

.note-icon {
    font-size: 1.5rem;
    margin-right: 15px;
    flex-shrink: 0;               /* prevent shrinking */
}

.note-text {
    display: inline;              /* keep text in a single block */
}

.service-note .highlight {
    font-weight: 600;
    color: #002e4d;
}


/* TEAM */
.team {
    padding: 70px 0;
    background: #f4f9ff;
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 30px;
}
.team-card {
    text-align: center;
}
.team-card img {
    width: 100%;
    border-radius: 10px;
    height: 300px;
    object-fit: cover;

}
.single-team {
    display: flex;
    justify-content: center;
}

/* CONTACT */
/* CONTACT FORM - Updated for better vertical layout and attractiveness */

.contact-form {
    width: 350px; /* fixed, narrow width */
    padding: 40px 30px; /* adjust padding to fit the smaller width */
    border-radius: 20px;
    backdrop-filter: blur(30px);
    background: rgba(245, 245, 245, 0.95);
    border: 1px solid rgba(200, 200, 200, 0.5);
    box-shadow: 
        0 12px 24px rgba(0, 0, 0, 0.1),
        0 10px 30px rgba(255, 255, 255, 0.3) inset;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0 auto; /* centers the form horizontally */
    animation: fadeInUp 0.8s ease;
}

.contact-form:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 25px 50px rgba(0,0,0,0.15),
        0 0 25px rgba(255, 255, 255, 0.25) inset;
}

/* Inputs and textarea full width with padding and subtle animation */
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 18px 22px;
    border-radius: 15px;
    border: 1.5px solid #ddd;
    background: #fafafa;
    font-size: 16px;
    box-shadow: inset 0 3px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #1e90ff;
    box-shadow: 0 0 10px 3px rgba(30, 144, 255, 0.25);
    outline: none;
    background: #fff;
}

/* Textarea height */
.contact-form textarea {
    height: 180px;
    resize: vertical;
}

/* Submit button with gradient, 3D effect and shine animation */
.contact-form button {
    padding: 18px 0;
    border: none;
    border-radius: 20px;
    background: linear-gradient(135deg, #1e90ff, #0f7ad8);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(30, 144, 255, 0.5);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-form button::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(45deg);
    transition: all 0.5s ease;
}

.contact-form button:hover::after {
    top: 0;
    left: 0;
}

.contact-form button:hover {
    background: linear-gradient(135deg, #0f7ad8, #0a60bf);
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(30, 144, 255, 0.6);
}

.contact-form button:active {
    transform: translateY(0);
    box-shadow: 0 6px 18px rgba(30, 144, 255, 0.5);
}


/* Subtle fade-up animation */
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.map iframe {
    margin-top: 40px;
    border: none;
}
/* TURISMO DENTALE */
.turismo {
    padding: 80px 0;
    background: #f4f9ff;
}

.turismo-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.turismo-text {
    flex: 1;
    min-width: 300px;
}

.turismo-text p {
    margin-bottom: 18px;
    color: #555;
    line-height: 1.6;
}

.turismo-list {
    list-style: none;
    margin-top: 15px;
    margin-bottom: 25px;
}

.turismo-list li {
    margin-bottom: 10px;
    font-size: 1rem;
    color: #333;
}

.turismo-btn {
    padding: 12px 24px;
    font-size: 1rem;
}

.turismo-image {
    flex: 1;
    min-width: 300px;
}

.turismo-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}
/* GALLERIA PRIMA E DOPO */
.gallery-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Card */
.gallery-card {
    position: relative;
    max-width: 300px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

/* Before/After container */
.before-after {
    position: relative;
    width: 100%;
    height: 200px;
    cursor: pointer;
}

.before-after img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.5s ease;
    border-radius: 15px;
}

.before-after .after {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.before-after:hover .after {
    opacity: 1;
}

/* Overlay text */
.overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(37, 166, 217, 0.8);
    color: white;
    padding: 5px 10px;
    font-weight: bold;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.3s;
}

.before-after:hover .overlay {
    opacity: 1;
}

.gallery-card p {
    text-align: center;
    margin-top: 10px;
    font-weight: 500;
    color: #333;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 25px 0;
    background: #eee;
    margin-top: 40px;
}
/* FOOTER */
.footer {
    background: #0e1b2c;
    color: #fff;
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
}

.footer-box h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #ffffff;
}

.footer-box ul {
    list-style: none;
}

.footer-box ul li {
    margin-bottom: 10px;
}

.footer-box ul li a {
    text-decoration: none;
    color: #cfd8e3;
    font-size: 0.95rem;
}

.footer-box ul li a:hover {
    color: #1e90ff;
}

/* Newsletter */

/* FOOTER NEWSLETTER — Dark version */
.newsletter-inline {
    text-align: center;
    color: #ffffff; /* Adjust to your footer text color */
    margin: 0 auto;
}

.newsletter-inline h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.newsletter-inline .newsletter-subtitle {
    font-size: 0.95rem;
    margin-bottom: 15px;
    opacity: 0.85;
}

.newsletter-inline-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.newsletter-inline-form input {
    padding: 10px 12px;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    flex: 1 1 180px; /* flexible width, responsive */
    min-width: 150px;
}

.newsletter-inline-form button {
    background-color: #0a9396;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.newsletter-inline-form button:hover {
    background-color: #007375;
}


.footer-socials {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.footer-socials a {
    color: #ffffff; /* icon color */
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.footer-socials a:hover {
    color: #0a9396; /* hover color */
}


/* Footer bottom */
.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    font-size: 0.9rem;
    color: #cfd8e3;
}



/* ========================== */
/*  MOBILE RESPONSIVE FIXES   */
/* ========================== */
@media (max-width: 768px) {

    /* HEADER */
    .nav-links {
        display: none; /* hidden until hamburger is added */
    }

    .nav {
        padding: 10px 0;
    }

    .logo {
        font-size: 1.3rem;
    }

    /* HERO */
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero {
        height: 65vh;
    }

    /* ABOUT / TURISMO / CONTACT */
    .about-wrapper,
    .turismo-wrapper,
    .contact-wrapper {
        flex-direction: column;
        text-align: center;
    }

    /* SERVICE CARDS */
    .service-content h3 {
        font-size: 1rem;
    }

    .service-content p {
        font-size: 0.85rem;
    }

    /* STAT BOX */
    .stat-box h2 {
        font-size: 2.2rem;
    }

    .stat-box h4 {
        font-size: 1.1rem;
    }

    /* CONTACT FORM */
    .contact-form input,
    .contact-form textarea {
        font-size: 0.95rem;
    }

    /* FOOTER */
    .footer-grid {
        text-align: center;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.7rem;
    }
    .hero-content p {
        font-size: 0.9rem;
    }
}

/* YOUR ORIGINAL CSS (UNCHANGED ABOVE THIS LINE) */



/* ========================================================= */
/*     EXTRA MOBILE RESPONSIVE FIXES — ADDED FOR YOU         */
/* ========================================================= */

@media (max-width: 768px) {

    /* Make container breathing room */
    .container {
        width: 92%;
    }

    /* NAVIGATION (still hidden until you add hamburger) */
    .nav-links {
        display: none;
    }

    /* HERO FIX — prevent text overflow */
    .hero {
        height: 60vh;
        padding: 0 20px;
        background-position: center center;
    }

    .hero-content h1 {
        font-size: 1.9rem;
        line-height: 1.3;
    }

    .hero-content p {
        font-size: 1rem;
        padding: 0 5px;
    }

    /* ABOUT + TURISMO + CONTACT */
    .about-wrapper,
    .turismo-wrapper,
    .contact-wrapper {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .about-image img,
    .turismo-image img {
        max-width: 90%;
        margin: auto;
    }

    /* SERVICES */
    .service-grid {
        grid-template-columns: 1fr; 
    }

    .service-card img {
        height: 220px;
    }

    .service-content h3 {
        font-size: 1rem;
    }

    .service-content .desc {
        font-size: 0.85rem;
    }

    /* TEAM */
    .team-grid {
        grid-template-columns: 1fr;
    }

    .team-card img {
        height: 260px;
    }

    /* STATS */
    .stats-grid {
        gap: 25px;
    }

    .stat-box h2 {
        font-size: 2.2rem;
    }

    /* GALLERY */
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-card {
        padding: 12px;
    }

    /* FOOTER */
    .footer-grid {
        text-align: center;
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .newsletter-inline-form {
        flex-direction: column;
    }

    .newsletter-inline-form input,
    .newsletter-inline-form button {
        width: 100%;
    }
}


/* ========================================================= */
/*          EXTRA-SMALL PHONES (MAX 480px)                    */
/* ========================================================= */

@media (max-width: 480px) {

    /* HERO */
    .hero {
        height: 50vh;
        padding: 0 15px;
    }

    .hero-content h1 {
        font-size: 1.6rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .btn-primary {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    /* ABOUT / TURISMO */
    .about-text p,
    .turismo-text p {
        font-size: 0.95rem;
    }

    /* SERVICES CARDS */
    .service-card img {
        height: 180px;
    }

    /* TEAM */
    .team-card img {
        height: 230px;
    }

    /* FOOTER */
    .footer {
        padding: 40px 0 20px;
    }
}


.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.3);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform .2s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}
.reviews {
    background-color: #f7f9fc;
    padding: 60px 0;
}

.reviews .section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    color: #333;
}

.reviews-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.review-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 15px;
    max-width: 350px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.review-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.review-card i.fa-quote-left {
    color: #25a6d9;
    font-size: 1.8rem;
    margin-right: 10px;
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.review-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
}

.review-card h4 {
    font-weight: 600;
    color: #222;
    margin-top: 0;
}

.stars {
    color: #f6b93b;
    display: flex;
    gap: 2px;
    font-size: 0.9rem;
}
.logo img.logo-img {
    height: 150px; /* smaller height */
    width: auto;  /* keeps the aspect ratio */
}
