:root {
    --brand-red: #A21C26;
    --cream: #F9F9F7;
    --anthracite: #333333;
    --secondary-bg: #ECE2DF;
    --white: #FFFFFF;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    /* Standardized Font Sizes */
    --fs-large: 3.5rem;
    /* Main Titles */
    --fs-medium: 1.8rem;
    /* Section Headers / Card Titles */
    --fs-small: 1rem;
    /* Body Text / Buttons / Nav */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--cream);
    color: var(--anthracite);
    font-size: var(--fs-small);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: none;
    letter-spacing: 0.5px;
}

h1 {
    font-size: var(--fs-large);
}

h2 {
    font-size: var(--fs-large);
    text-align: center;
}

h3 {
    font-size: var(--fs-medium);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navbar */
.navbar {
    background: var(--white);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo-img {
    height: 100px;
    /* Increased size */
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--anthracite);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--brand-red);
}

.nav-cta {
    background: var(--brand-red);
    color: var(--cream) !important;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
}

/* Hide desktop navbar on mobile */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
}

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: url('HEADER.png') no-repeat center center;
    background-size: cover;
    position: relative;
    color: var(--cream);
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    /* Assicura che occupi tutta la larghezza */
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Centra anche il testo inline */
    gap: 3rem;
}

.hero-logo {
    max-width: 600px;
    /* Increased from 400px */
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--brand-red);
    color: var(--cream);
    padding: 1.2rem 2.5rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-secondary {
    background: var(--white);
    color: var(--anthracite);
    padding: 1.2rem 2.5rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-whatsapp {
    background: #25D366;
    color: var(--white);
    padding: 1.2rem 2.5rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Centered as requested */
    gap: 0.5rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.rounded {
    border-radius: 50px;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-whatsapp:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Animations */
.animate-float {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0);
    }
}

/* Sections */
.section {
    padding: 8rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.divider {
    width: 60px;
    height: 3px;
    background: var(--brand-red);
    margin: 1.5rem auto;
    border-radius: 2px;
}

.bg-secondary-color {
    background-color: var(--secondary-bg);
}

/* Treatment Boxes */
.treatment-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
    width: 100%;
    box-sizing: border-box;
}

.treatment-box {
    background: var(--white);
    padding: 3rem;
    border-radius: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid transparent;
    text-align: center;
}

.treatment-box:hover {
    border-color: var(--brand-red);
    transform: scale(1.03);
}

.box-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    color: var(--brand-red);
}

.box-header i {
    width: 35px;
    height: 35px;
}

.box-header h3 {
    margin-bottom: 0;
    font-size: var(--fs-medium);
}

.emoji {
    font-size: 2.5rem;
}

.btn-select-category {
    margin-top: 1.5rem;
    display: inline-block;
    color: var(--brand-red);
    font-weight: 700;
    font-size: var(--fs-small);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.treatment-ul {
    list-style: none;
}

.treatment-ul li {
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: var(--fs-small);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.treatment-ul li:last-child {
    border-bottom: none;
}

.symbol {
    color: var(--brand-red);
    font-size: 1.2rem;
}

/* Review Carousel */
.reviews-carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.carousel-track {
    overflow: hidden;
    position: relative;
    width: 100%;
    min-height: 300px;
}

.review-slide {
    position: absolute;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: all 0.6s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
}

.review-slide.active {
    left: 0;
    opacity: 1;
}

.review-slide.prev {
    left: -100%;
    opacity: 0;
}

.stars {
    color: #FFD700;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.review-slide p {
    font-family: 'Cormorant Garamond', serif;
    font-size: var(--fs-medium);
    font-style: italic;
    line-height: 1.4;
    margin-bottom: 2rem;
}

.author {
    font-weight: 700;
    color: var(--brand-red);
    text-transform: uppercase;
    font-size: var(--fs-small);
}

.carousel-btn {
    background: var(--white);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-red);
    transition: var(--transition);
}

/* Centered Button with Group */
.center-btn {
    display: flex;
    justify-content: center;
    margin-top: 4rem;
}

.action-buttons-group {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-card,
.contact-cta-box {
    background: var(--white);
    padding: 4rem;
    border-radius: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.contact-cta-box {
    background: var(--anthracite);
    color: var(--white);
    text-align: center;
}

.contact-cta-box h3 {
    color: var(--cream);
    font-size: 3.5rem;
    /* Increased size as requested */
    line-height: 1.2;
}

.contact-btns {
    margin-top: 2.5rem;
}

/* Footer */
footer {
    padding: 5rem 0;
    background: var(--white);
    text-align: center;
}

.footer-logo img {
    height: 80px;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    :root {
        --fs-large: 2.2rem;
        --fs-medium: 1.5rem;
        --fs-small: 0.9rem;
    }

    h2 {
        font-size: var(--fs-large);
    }

    .hero-content {
        gap: 2rem;
    }

    .hero-logo {
        max-width: 400px;
        /* Increased from 320px for mobile */
    }

    .contact-cta-box h3 {
        font-size: var(--fs-large);
    }

    .action-buttons-group {
        flex-direction: column;
        width: 100%;
    }

    .action-buttons-group a {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .treatment-boxes {
        grid-template-columns: 1fr;
        padding: 0;
        /* Rimozione padding che causava shift */
        width: 100%;
        /* Sicurezza larghezza */
    }

    .treatment-box {
        text-align: center;
        padding: 1.5rem;
        /* Ridotto da 3rem — box più compatti su mobile */
    }

    .treatment-ul li {
        padding: 0.6rem 0;
        /* Righe più strette su mobile */
        font-size: var(--fs-small);
        justify-content: center;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    /* --- Reviews mobile: fade only (no sliding) --- */
    .carousel-track {
        min-height: 260px;
        /* Altezza fissa sufficiente per contenuto */
    }

    /* Tutte le slide restano absolute ma si sovrappongono in posizione 0 */
    .review-slide {
        position: absolute;
        top: 0;
        left: 0 !important;
        /* Annulla il left: 100% del desktop */
        width: 100%;
        padding: 1rem 0.8rem;
        opacity: 0;
        transition: opacity 0.5s ease;
        /* Solo fade, niente scorrimento */
        pointer-events: none;
    }

    .review-slide.active {
        opacity: 1;
        pointer-events: auto;
    }

    .review-slide.prev {
        opacity: 0;
    }

    /* Testo più compatto */
    .review-slide p {
        font-size: var(--fs-medium);
        /* Testo più piccolo */
        line-height: 1.3;
        margin-bottom: 0.8rem;
    }

    .stars {
        font-size: var(--fs-medium);
        margin-bottom: 0.6rem;
    }

    .author {
        font-size: var(--fs-small);
    }
}