/* ========================================
   STUDIO SANITARIO TUCCILLO - CSS PULITO
   ======================================== */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colori */
    --primary-color: #00395d;
    --primary-dark: #00395d;
    --secondary-color: #00395d;
    --text-color: #333333;
    --text-light: #555555;
    --text-gray: #777777;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    
    /* Font */
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Breakpoints */
    --mobile: 768px;
    --tablet: 1024px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    letter-spacing: 0.5px;
    line-height: 1.3;
    color: var(--secondary-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: #00395d;
    color: var(--bg-white);
}

.btn-primary:hover {
    background-color: #55bcb5;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 57, 93, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: #00395d;
    border: 2px solid #00395d;
}

.btn-secondary:hover {
    background-color: #00395d;
    color: white;
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}


/* ============================================
   FIX HEADER MOBILE - SENZA BANNER PROMO
   Sostituisci le regole mobile dell'header
   ============================================ */

@media (max-width: 768px) {
    /* Header SEMPRE fisso in alto, senza spazio banner */
    .header {
        position: fixed;
        top: 0 !important;  /* ← Sempre in cima, niente spazio banner */
        left: 0;
        right: 0;
        width: 100%;
        z-index: 9999;
        pointer-events: auto;
    }
    
    /* Rimuovi la regola che spostava l'header in basso nella home */
    .home-page .header {
        top: 0 !important;  /* ← Era 40px (altezza banner) */
    }
    
    /* Header quando banner chiuso - non serve più, ma per sicurezza */
    body.promo-closed .header {
        top: 0 !important;
    }
    
    /* Hero mobile: solo lo spazio dell'header (circa 60px) */
    .studio-hero-banner {
        margin-top: 60px !important;  /* ← Solo altezza header */
    }
    
    /* Home page: stessa cosa, non c'è più il banner */
    .home-page .studio-hero-banner {
        margin-top: 60px !important;  /* ← Era 100px (40 banner + 60 header) */
    }
    
    /* Quando banner chiuso (ridondante ma per sicurezza) */
    body.promo-closed .studio-hero-banner {
        margin-top: 60px !important;
    }
}


/* ========================================
   FIX MOBILE - GRID 2 COLONNE NELLE NEWS
   ======================================== */

@media (max-width: 768px) {
    /* Forza 1 colonna per le grid inline negli articoli news */
    .article-rich-content div[style*="grid-template-columns: 1fr 1fr"],
    .article-rich-content div[style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    /* Padding container news */
    .news-content-section .container {
        padding: 0 1rem !important;
        max-width: 100% !important;
    }
    
    /* Box e card responsive */
    .article-rich-content > div {
        max-width: 100% !important;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }
    
    /* Special offer box */
    .special-offer-box {
        padding: 2rem 1rem !important;
        max-width: 100% !important;
    }
    
    /* Codice promo non deve uscire */
    .special-offer-box > div[style*="display: inline-block"],
    .special-offer-box > div[style*="display:inline-block"] {
        display: block !important;
        max-width: 100% !important;
        word-break: break-all;
        font-size: 1.2rem !important;
        padding: 1rem !important;
        letter-spacing: 1px !important;
    }
    
    /* Body senza overflow orizzontale */
    body {
        overflow-x: hidden;
    }
    
    /* Tutte le sezioni mobile */
    section {
        max-width: 100vw;
        overflow-x: hidden;
    }
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        position: relative;
    }
    
    * {
        max-width: 100vw !important;
        box-sizing: border-box !important;
    }
}

/* ========================================
   TOP PROMO BANNER - VERSIONE CORRETTA
   ======================================== */

.promo-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: linear-gradient(135deg, #00395d 0%, #55bcb5 100%);
    color: white;
    z-index: 10001;
    overflow: hidden;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-banner-content {
    display: flex;
    animation: scroll-left 30s linear infinite;
    white-space: nowrap;
}

.promo-text {
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0 3rem;
    display: inline-block;
    letter-spacing: 0.5px;
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-33.333%); }
}

.promo-close {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.promo-banner.hidden {
    display: none;
}

/* Mobile */
@media (max-width: 768px) {
    .promo-banner {
        height: 40px;
    }
    
    .promo-text {
        font-size: 0.85rem;
        padding: 0 2rem;
    }
}
/* ========================================
   HEADER / NAVIGATION
   ======================================== */

.header {
    background-color: #ffffff;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;  /* ← Default SENZA banner */
    left: 0;
    right: 0;
    z-index: 1000;
    transition: top 0.3s ease;
}

/* Solo nella HOME con banner, header va sotto */
.home-page .header {
    top: 0;
}


/* Header torna in cima quando banner chiuso */
body.promo-closed .header {
    top: 0;
}


.navbar {
    padding: 0.8rem 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    text-decoration: none;
}

.logo-img {
    height: 70px;
    width: auto;
    max-width: 280px;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: #00395d;
    font-weight: 600;
    font-size: 15px;
    padding: 0.5rem 1rem;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    color: #00395d;
    border-bottom-color: #00395d;
}

.btn-menu-prenota {
    background: linear-gradient(135deg, #00395d 0%, #55bcb5 100%);
    color: white !important;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-menu-prenota:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 57, 93, 0.4);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #00395d;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

@media (max-width: 768px) {
    .logo {
        flex: 0 1 auto;
        max-width: 60%;
    }
    
    .logo-img {
        height: 45px !important;
        width: auto !important;
        max-width: 180px !important;
        display: block;
    }
    
    /* Forza visibilità menu hamburger */
    .mobile-menu-toggle {
        display: flex !important;
        flex-shrink: 0;
        margin-left: auto;
    }
    
    /* Nav wrapper deve avere spazio per entrambi */
    .nav-wrapper {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100%;
    }
}

/* Per schermi piccolissimi */
@media (max-width: 400px) {
    .logo-img {
        height: 38px !important;
        max-width: 140px !important;
    }
}

@media (max-width: 768px) {
    /* Centra tutti gli elementi del menu mobile */
    .nav-menu li {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 1rem 0 !important;
        text-align: center;
        width: 100%;
    }
    
 /* Centra i link del menu */
.nav-menu li a {
    text-align: center;
    width: auto;
    padding-left: 0;
    padding-right: 0;
}

    

    /* PULSANTE PRENOTA - corretto */
    .nav-menu .btn-menu-prenota {
        display: inline-block !important;
        background: #00395d !important;
        color: white !important;
        padding: 14px 40px !important;
        border-radius: 30px !important;
        font-weight: 600 !important;
        font-size: 1rem !important;
        text-align: center !important;
        text-decoration: none !important;
        margin: 1rem auto !important;
        min-width: 150px;
        line-height: 1.2 !important;
    }
    
    /* Container del prenota deve essere largo */
    .nav-menu li:has(.btn-menu-prenota) {
        padding: 1.5rem 0 !important;
        margin-top: 0.5rem !important;
    }
}
/* ========================================
   HERO UNIFICATE - TUTTE LE PAGINE
   ======================================== */

/* Hero con immagine di sfondo */
.studio-hero-banner {
    position: relative;
    height: 75vh;
    min-height: 550px;
    max-height: 600px;
    overflow: hidden;
    margin-top: 70px;  /* ← Default SENZA banner promo */
    padding-top: 0;
}

/* Solo nella HOME con banner promo */
.home-page .studio-hero-banner {
    margin-top: 114px;  /* 44px banner + 70px header */
}

/* Quando banner promo è chiuso nella home */
body.promo-closed .studio-hero-banner {
    margin-top: 70px;
}
.studio-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.studio-hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.studio-hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.studio-hero-overlay {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.studio-hero-content {
    max-width: 900px;
    text-align: center;
    color: white;
    margin: 0 auto;
}

.studio-hero-subtitle {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: white;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.studio-hero-title {
    font-size: 4rem;
    font-weight: 600;
    color: white;
    line-height: 1.2;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.5);
}

.studio-hero-description {
    font-size: 1.2rem;
    line-height: 1.6;
    color: white;
    margin-bottom: 2rem;
    opacity: 0.95;
    font-weight: 400;

}

.btn-hero {
    display: inline-block;
    padding: 16px 40px;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    background-color: rgba(0, 57, 93, 0.9);
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-hero:hover {
    background-color: rgba(0, 57, 93, 1);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 57, 93, 0.4);
}

/* Hero senza immagine (Contatti, Prenota) */
.contatti-hero,
.prenota-hero {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #f8f9fa 100%);
    text-align: center;
}

.contatti-subtitle,
.prenota-subtitle {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #999;
    margin-bottom: 1.5rem;
}

.contatti-hero h1,
.prenota-hero h1 {
    font-size: 4rem;
    font-weight: 600;
    color: #00395d;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.contatti-intro,
.prenota-intro {
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ========================================
   FEATURE CARDS (sovrapposte alla hero)
   ======================================== */

.features-cards {
    margin-top: -80px;
    position: relative;
    z-index: 10;
    padding: 0 0 4rem 0;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    padding: 1.5rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #00395d 0%, #55bcb5 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.feature-card h4 {
    font-size: 1rem;
    color: #00395d;
    margin: 0;
    font-weight: 600;
    line-height: 1.3;
}

/* ========================================
   ABOUT STUDIO SECTION - HOME
   ======================================== */

.about-studio {
    padding: 5rem 0;
    background: white;
    text-align: center;
}

.about-studio .container {
    max-width: 1000px;
    padding: 0 2rem;
    opacity: 0;
}

.about-subtitle {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #999;
    margin-bottom: 1rem;
}

.about-studio h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #00395d;
    text-align: center;
}

.about-grid {
    display: block;
    text-align: center;
}

.about-image {
    max-width: 600px;
    margin: 0 auto 2rem;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
    text-align: center;
}

.about-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 2rem;
}

/* ========================================
   SPECIAL SERVICES - 2x2 GRID
   ======================================== */

.special-services {
    padding: 5rem 0;
    background: white;
    margin: 0 0 5rem 0;
}

.special-services .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.services-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 2800px;
    margin: 0 auto;
}

.service-column {
    display: contents;
}

.service-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.service-item img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}

.service-item h3 {
    font-size: 1.4rem;
    color: #00395d;
    padding: 2rem 2rem 1rem;
    margin: 0;
    line-height: 1.4;
}

.service-item p {
    font-size: 1.05rem;
    color: #666;
    padding: 0 2rem 1.5rem;
    margin: 0;
    line-height: 1.7;
    flex-grow: 1;
}

.service-item .link-arrow {
    display: inline-block;
    padding: 0 2rem 2rem;
    color: #00395d;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.service-item .link-arrow:hover {
    color: #55bcb5;
    transform: translateX(5px);
}

/* ========================================
   CONTACT BOTTOM SECTION - HOME - 2 COLONNE
   ======================================== */

.contact-bottom {
    padding: 5rem 0;
    background: white;
    margin-top: 4rem;
}

.contact-bottom .container {
    max-width: 1200px;
    padding: 0 2rem;
}

.contact-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 4rem;
    align-items: end;  /* ← Allineamento centrato verticalmente */
}

/* SINISTRA: Immagine + Info */
.contact-bottom-left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-bottom-image {
    margin-top: 2rem;
}

.contact-bottom-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-bottom-info {
    text-align: left;
}

.contact-subtitle {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #00395d;
    margin-bottom: 1rem;
}

.contact-bottom-info h2 {
    font-size: 2.5rem;
    color: #00395d;
    margin-bottom: 1.5rem;
    font-family: 'Inter', sans-serif;
}

.contact-description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .contact-bottom {
        padding: 3rem 0;
    }
    
    .contact-bottom .container {
        padding: 0 1rem;  /* ← Margini laterali corretti */
    }
    
    .contact-bottom-grid {
        grid-template-columns: 1fr;  /* ← 1 colonna su mobile */
        gap: 2rem;
    }
    
    .contact-bottom-info h2 {
        font-size: 2rem;
    }
    
    .contact-description {
        font-size: 1rem;
    }
    
    .contact-box {
        padding: 2rem 1.5rem;
        width: 100%;  /* ← Occupa tutta la larghezza */
    }
    
    .contact-box h3 {
        font-size: 1.5rem;
    }
    
    .contact-subtitle {
        font-size: 0.75rem;
        letter-spacing: 2px;
    }
}

/* Griglia immagini */
.contact-images-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.contact-images-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.contact-images-grid img:hover {
    transform: scale(1.05);
}

/* Pulsante contatti più grande */
.btn-contact-large {
    padding: 18px 32px;
    font-size: 18px;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-images-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-images-grid img {
        height: 250px;
    }
}
/* DESTRA: Box Contatti */
.contact-box {
    background: #f8f9fa;
    padding: 2.5rem 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 100px;
}

.contact-box h3 {
    font-size: 1.8rem;
    color: #00395d;
    margin-bottom: 2rem;
    font-family: 'Inter', sans-serif;
}

.contact-box-item {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

.contact-box-item:last-of-type {
    border-bottom: none;
    margin-bottom: 2rem;
}

.contact-box-item svg {
    color: #00395d;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.contact-box-item strong {
    display: block;
    font-size: 1rem;
    color: #00395d;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-box-item p {
    font-size: 0.95rem;
    color: #666;
    margin: 0.3rem 0 0 0;
    line-height: 1.6;
}

.contact-box-item a {
    color: #00395d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-box-item a:hover {
    color: #55bcb5;
}

.contact-box .btn {
    width: 100%;
    margin-top: 1rem;
    text-align: center;
}


/* ========================================
   CHI SIAMO PAGE
   ======================================== */

.vision-section {
    padding: 5rem 0;
    background: white;
}

.vision-content {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.vision-subtitle {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #999;
    margin-bottom: 1rem;
}

.vision-content h2 {
    font-size: 2.5rem;
    color: #00395d;
    margin-bottom: 3rem;
}

.vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    text-align: left;
}

.vision-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 2rem;
}

.vision-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.why-choose-section {
    padding: 5rem 0;
    background: #f8f9fa;
    text-align: center;
}

.why-choose-section h2 {
    font-size: 2.5rem;
    color: #00395d;
    margin-bottom: 1.5rem;
}

.why-choose-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    max-width: 900px;
    margin: 0 auto 3rem;
}

.why-choose-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.why-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.why-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #00395d 0%, #55bcb5 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.why-card h3 {
    font-size: 1.2rem;
    color: #00395d;
    font-weight: 700;
}

/* ========================================
   SERVIZI PAGE
   ======================================== */

.servizi-intro {
    padding: 5rem 0;
    background: white;
}

.servizi-intro-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.servizi-intro-content h2 {
    font-size: 2.5rem;
    color: #00395d;
    margin-bottom: 1.5rem;
}

.servizi-intro-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.servizi-accordion-section {
    padding: 3rem 0 5rem;
    background: #f8f9fa;
}

.accordion {
    max-width: 900px;
    margin: 0 auto;
}

.accordion-item {
    background: white;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.accordion-header {
    width: 100%;
    padding: 1.5rem 2rem;
    background: white;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.accordion-header:hover {
    background: #f8f9fa;
}

.accordion-header span {
    font-size: 1.1rem;
    font-weight: 700;
    color: #00395d;
    font-family: var(--font-heading);
}

.accordion-icon {
    color: #00395d;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-content ul {
    list-style: none;
    padding: 0 2rem 2rem 2rem;
    margin: 0;
}

.accordion-content li {
    padding: 0.8rem 0;
    color: #555;
    font-size: 1rem;
    border-bottom: 1px solid #e9ecef;
    position: relative;
    padding-left: 1.5rem;
}

.accordion-content li a {
    color: #00395d;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.accordion-content li a:hover {
    color: #55bcb5;
    text-decoration: underline;
}

.accordion-content li:before {
    content: "•";
    color: #00395d;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.accordion-content li:last-child {
    border-bottom: none;
}

.convenzioni-section {
    padding: 5rem 0;
    background: white;
}

.convenzioni-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.convenzioni-images {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.convenzioni-images img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.convenzioni-text h2 {
    font-size: 2rem;
    color: #00395d;
    margin-bottom: 1.5rem;
}

.convenzioni-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
}

.cta-banner {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.cta-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.cta-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.cta-overlay {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-content {
    text-align: center;
    color: white;
    max-width: 700px;
    padding: 0 2rem;
}

.cta-content h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    color: white;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-content .btn {
    background: white;
    color: #00395d;
    font-weight: 700;
}

.cta-content .btn:hover {
    background: #00395d;
    color: white;
}

/* Lightbox */
.lightbox {
    display: none !important;
    position: fixed !important;
    z-index: 99999 !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.95) !important;
    align-items: center !important;
    justify-content: center !important;
}

.lightbox.active {
    display: flex !important;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    z-index: 100000;
}

.lightbox-content img {
    width: auto;
    height: auto;
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 5px;
    display: block;
}

.lightbox-close {
    position: fixed;
    top: 30px;
    right: 50px;
    color: white;
    font-size: 60px;
    font-weight: 300;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 100001;
    line-height: 1;
}

.lightbox-close:hover {
    color: #00395d;
}

.lightbox-caption {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
    z-index: 100000;
}

.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: none;
    font-size: 60px;
    padding: 20px 35px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
    z-index: 100001;
    line-height: 1;
}

.lightbox-nav:hover {
    background: rgba(0, 57, 93, 0.9);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

//* ========================================
   CARD CONTATTI - 4 IN ORIZZONTALE
   ======================================== */

.contatti-info-section {
    padding: 8rem 0 4rem !important;
    background: #f8f9fa !important;
    margin-top: 4rem !important;
}

.contatti-cards {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.5rem !important;
    max-width: 1300px !important;
    margin: 0 auto !important;
    width: 100% !important;
    padding-top: 2rem !important;  /* ← SPAZIO IN PIÙ */
}

.contatti-card {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
}

.contatti-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.contatti-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #00395d 0%, #55bcb5 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.contatti-icon svg {
    stroke: white;
}

.contatti-card h3 {
    font-size: 1.2rem;
    color: #00395d;
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
}

.contatti-card p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.contatti-card a {
    color: #00395d;
    text-decoration: none;
    font-weight: 600;
}

.contatti-card a:hover {
    text-decoration: underline;
}

/* TABLET */
@media (max-width: 1024px) {
    .contatti-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* MOBILE */
@media (max-width: 768px) {
    .contatti-cards {
        grid-template-columns: 1fr !important;
        padding: 0 1rem;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .contatti-cards {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

.contatti-form-section {
    padding: 5rem 0 !important;
    background: white;
}

.form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 1rem;
}

.form-subtitle {
    color: #00395d;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    text-align: center;
}

.form-wrapper h2 {
    font-size: 2.5rem;
    color: #00395d;
    margin-bottom: 1.5rem;
    font-family: 'Inter', sans-serif;
    text-align: center;
}

.form-description {
    color: #666;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 3rem;
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.contact-form {
    text-align: left;
    background: #f8f9fa;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Mobile */
@media (max-width: 768px) {
    .contatti-form-section {
        padding: 3rem 0 !important;
    }
    
    .form-wrapper h2 {
        font-size: 2rem;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Card 3 colonne - Crescita Senza Confini */
@media (max-width: 968px) {
    .article-rich-content div[style*="repeat(3, 1fr)"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
}
/* ========================================
   NEWS PAGE
   ======================================== */

.news-offerte-section,
.news-content-section {
    padding: 5rem 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #00395d;
    margin-bottom: 0.5rem;
}

.section-header p {
    font-size: 1.1rem;
    color: #00395d;
    font-weight: 600;
}

.news-grid,
.news-grid-full {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.news-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.news-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: white;
    color: #00395d;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 5px;
}

.news-content {
    padding: 2rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-content h3 {
    font-size: 1.1rem;
    color: #00395d;
    margin-bottom: 1rem;
    font-weight: 700;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-content p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.news-link {
    display: inline-block;
    color: #00395d;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s ease;
    margin-top: auto;
}

.news-link:hover {
    color: #55bcb5;
}

.cta-prenota-section {
    padding: 5rem 0;
    background: white;
}

.cta-prenota-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-prenota-content h2 {
    font-size: 2.5rem;
    color: #00395d;
    margin-bottom: 1.5rem;
}

.cta-prenota-content p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Integrazione Rubriche e Responsive --- */

/* Sovrascriviamo la grid per renderla flessibile */
.news-grid,
.news-grid-full {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Si adatta da sola */
    gap: 2rem;
}

/* Badge dinamici delle rubriche */
.news-tag.tag-estetica { background: #ff85a2; color: white; }
.news-tag.tag-intestino { background: #4caf50; color: white; }
.news-tag.tag-specialistica { background: #00395d; color: white; }
.news-tag.tag-promo { background: #00395d; color: white; }

/* Stili per i filtri nella pagina News */
.news-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    border: 2px solid #00395d;
    background: transparent;
    color: #00395d;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active, .filter-btn:hover {
    background: #00395d;
    color: white;
}

/* Fix per le news caricate dinamicamente in Home */
.loading-text {
    grid-column: 1 / -1;
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 2rem;
}

/* Media Query per tablet/mobile */
@media (max-width: 768px) {
    .news-grid, .news-grid-full {
        grid-template-columns: 1fr; /* Una colonna su mobile */
    }
    .section-header h2 {
        font-size: 2rem;
    }
}
/* Badge Rubriche colorati nella home */
.news-tag.tag-intestino { 
    background: #55bcb5; 
    color: white;
}

.news-tag.tag-estetica { 
    background: #00395d; 
    color: white;
}

.news-tag.tag-specialistica { 
    background: #00395d; 
    color: white;
}

.news-tag.tag-promo { 
    background: #00395d; 
    color: white;
}
/* ========================================
   PRENOTA PAGE
   ======================================== */

.prenota-form-section {
    padding: 5rem 0;
    background: white;
}

.prenota-content {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.prenota-info-box {
    background: #f8f9fa;
    padding: 2.5rem;
    border-radius: 10px;
    height: fit-content;
    position: static;
}

.info-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #00395d 0%, #55bcb5 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.prenota-info-box h3 {
    font-size: 1.4rem;
    color: #00395d;
    margin-bottom: 1.5rem;
    text-align: center;
}

.prenota-info-box ol {
    padding-left: 1.2rem;
    margin-bottom: 2rem;
}

.prenota-info-box ol li {
    margin-bottom: 0.8rem;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.info-contacts,
.info-orari {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1.5rem;
}

.info-contacts h4,
.info-orari h4 {
    font-size: 1.1rem;
    color: #00395d;
    margin-bottom: 1rem;
}

.info-contacts p,
.info-orari p {
    font-size: 0.95rem;
    color: #666;
    margin: 0.5rem 0;
}

.info-contacts a {
    color: #00395d;
    text-decoration: none;
    font-weight: 600;
}

.info-contacts a:hover {
    color: #55bcb5;
}

.prenota-form-wrapper {
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
}

.prenotazione-form h2 {
    font-size: 1.8rem;
    color: #00395d;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.form-note {
    font-size: 0.85rem;
    color: #999;
    text-align: center;
    margin-top: 1.5rem;
    font-style: italic;
}

/* ========================================
   CHECKBOX FORM PRENOTAZIONE
   ======================================== */

.form-checkbox {
    margin-bottom: 1.2rem !important;
}

.checkbox-label {
    display: flex !important;
    align-items: flex-start;
    cursor: pointer;
    font-weight: 400 !important;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
    gap: 0.8rem;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-custom {
    display: inline-block;
    min-width: 22px;
    width: 22px;
    height: 22px;
    border: 2px solid #ccc;
    border-radius: 5px;
    background: white;
    transition: all 0.3s ease;
    margin-top: 2px;
    flex-shrink: 0;
    position: relative;
}

.checkbox-label:hover .checkbox-custom {
    border-color: #00395d;
}

.checkbox-label input[type="checkbox"]:checked ~ .checkbox-custom {
    background: #00395d;
    border-color: #00395d;
}

.checkbox-label input[type="checkbox"]:checked ~ .checkbox-custom::after {
    content: "✓";
    position: absolute;
    color: white;
    font-weight: bold;
    font-size: 16px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.checkbox-text {
    flex: 1;
}

.checkbox-text small {
    display: block;
    color: #888;
    font-size: 0.85rem;
    margin-top: 0.2rem;
}

/* ========================================
   PAGINE SERVIZIO DETTAGLIO
   ======================================== */

.servizio-hero {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #f8f9fa 100%);
}

.breadcrumb {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 2rem;
}

.breadcrumb a {
    color: #00395d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #55bcb5;
}

.breadcrumb span {
    color: #00395d;
    font-weight: 600;
}

.servizio-hero h1 {
    font-size: 3rem;
    color: #00395d;
    margin-bottom: 1rem;
}

.servizio-intro {
    font-size: 1.2rem;
    color: #666;
    max-width: 700px;
}

.servizio-content {
    padding: 5rem 0;
    background: white;
}

.servizio-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.servizio-main {
    max-width: 100%;
}

.servizio-block {
    margin-bottom: 3rem;
    opacity: 0;
}

.servizio-block.is-visible {
    animation: fadeInUp 1s ease-out forwards;
}

.servizio-block h2 {
    font-size: 2rem;
    color: #00395d;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.servizio-block h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #00395d 0%, #55bcb5 100%);
}

.servizio-block p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
}

.intro-large {
    font-size: 1.15rem !important;
    line-height: 1.9 !important;
    color: #00395d !important;
    font-weight: 500;
}

.servizio-subtitle {
    font-size: 1.5rem;
    color: #00395d;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Liste servizio */
.servizio-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.servizio-list li {
    padding: 1rem 0 1rem 2.5rem;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #555;
}

.servizio-list li:last-child {
    border-bottom: none;
}

.servizio-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #00395d;
    font-weight: 700;
    font-size: 1.3rem;
}

.servizio-list-check {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.servizio-list-check li {
    padding: 1.2rem 0 1.2rem 3rem;
    position: relative;
    background: #f8f9fa;
    margin-bottom: 1rem;
    border-radius: 8px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #555;
}

.servizio-list-check li::before {
    content: "✓";
    position: absolute;
    left: 1rem;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    background: linear-gradient(135deg, #00395d 0%, #55bcb5 100%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.servizio-highlight {
    background: linear-gradient(135deg, #f8f9fa 0%, #f8f9fa 100%);
    padding: 2.5rem;
    border-radius: 10px;
    border-left: 4px solid #00395d;
}

.servizio-highlight h2 {
    margin-top: 0;
}

/* Grids */
.vantaggi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.vantaggio-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.vantaggio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: #00395d;
}

.vantaggio-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #00395d 0%, #55bcb5 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.vantaggio-card h3 {
    font-size: 1.2rem;
    color: #00395d;
    margin-bottom: 1rem;
}

.vantaggio-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.location-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.location-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 10px;
    text-align: center;
    border: 2px solid #f0f0f0;
    transition: all 0.3s ease;
}

.location-card:hover {
    border-color: #00395d;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.location-card svg {
    color: #00395d;
    margin-bottom: 1.5rem;
}

.location-card h3 {
    font-size: 1.3rem;
    color: #00395d;
    margin-bottom: 1rem;
}

.location-card p {
    font-size: 1rem;
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* Processo e Formazione */
.processo-list,
.formazione-list {
    margin-top: 2rem;
}

.processo-item,
.formazione-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(0, 57, 93, 0.2);
}

.processo-item:last-child,
.formazione-item:last-child {
    border-bottom: none;
}

.processo-numero {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #00395d 0%, #55bcb5 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.formazione-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #00395d 0%, #55bcb5 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.formazione-icon svg {
    color: white;
}

.processo-content h3,
.formazione-content h3 {
    font-size: 1.2rem;
    color: #00395d;
    margin-bottom: 0.5rem;
}

.processo-content p,
.formazione-content p {
    font-size: 1rem;
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* Sidebar */
.servizio-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-box {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.sidebar-box h3 {
    font-size: 1.3rem;
    color: #00395d;
    margin-bottom: 1rem;
}

.sidebar-box p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.sidebar-box .btn {
    width: 100%;
    margin-bottom: 1rem;
    text-align: center;
}

.sidebar-box .btn:last-child {
    margin-bottom: 0;
}

.sidebar-info {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.sidebar-info:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sidebar-info svg {
    color: #00395d;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.sidebar-info strong {
    display: block;
    font-size: 1rem;
    color: #00395d;
    margin-bottom: 0.3rem;
}

.sidebar-info p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

.sidebar-info a {
    color: #00395d;
    text-decoration: none;
}

.sidebar-info a:hover {
    color: #55bcb5;
}

.sidebar-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-left: 4px solid #ffc107;
}

.sidebar-warning h3 {
    color: #856404;
}

.sidebar-warning p {
    color: #856404;
    margin-bottom: 1rem;
}

.sidebar-warning p:last-child {
    margin-bottom: 0;
}

.sidebar-warning strong {
    color: #856404;
    font-weight: 700;
}

.sidebar-cta {
    background: linear-gradient(135deg, #00395d 0%, #55bcb5 100%);
    color: white;
}

.sidebar-cta h3 {
    color: white;
}

.sidebar-cta p {
    color: white;
    opacity: 0.95;
}

.sidebar-cta .link-arrow {
    color: white;
    font-weight: 600;
}

.sidebar-cta .link-arrow:hover {
    transform: translateX(5px);
}

.sidebar-info-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #f8f9fa 100%);
}

.info-box-item {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 57, 93, 0.2);
}

.info-box-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-box-item strong {
    display: block;
    font-size: 1rem;
    color: #00395d;
    margin-bottom: 0.5rem;
}

.info-box-item p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background-color: var(--secondary-color);
    color: var(--bg-white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer h3,
.footer h4 {
    color: var(--bg-white);
    margin-bottom: 1rem;
}

.footer p,
.footer a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.footer a:hover {
    color: var(--bg-white);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-social {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 2rem;
}

.footer-social h4 {
    color: var(--bg-white);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-icons a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: #00395d;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 57, 93, 0.4);
}

.social-icons svg {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.footer-bottom a {
    margin: 0 0.5rem;
}

/* ========================================
   ANIMAZIONI SCROLL
   ======================================== */

.animate-from-left,
.animate-from-right,
.animate-fade-in {
    opacity: 0;
    transition: none;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-from-left.is-visible {
    animation: slideInLeft 1.2s ease-out forwards;
}

.animate-from-right.is-visible {
    animation: slideInRight 1.2s ease-out forwards;
}

.animate-fade-in.is-visible {
    animation: fadeInUp 1.2s ease-out forwards;
}

.animate-from-left:not(.is-visible) {
    opacity: 0;
    transform: translateX(-100px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.animate-from-right:not(.is-visible) {
    opacity: 0;
    transform: translateX(100px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.animate-fade-in:not(.is-visible) {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.feature-card.is-visible {
    animation: fadeInUp 1s ease-out forwards;
}

.feature-card:nth-child(1).is-visible {
    animation-delay: 0s;
}

.feature-card:nth-child(2).is-visible {
    animation-delay: 0.2s;
}

.feature-card:nth-child(3).is-visible {
    animation-delay: 0.4s;
}

.feature-card:not(.is-visible) {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.about-studio .container.is-visible,
.contact-bottom .container.is-visible {
    animation: fadeInUp 1.2s ease-out forwards;
}

.about-studio .container:not(.is-visible),
.contact-bottom .container:not(.is-visible) {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
    .studio-grid,
    .contatti-grid,
    .vision-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .convenzioni-grid {
        grid-template-columns: 1fr;
    }
    
    .convenzioni-images {
        grid-template-columns: 1fr 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .servizio-grid {
        grid-template-columns: 1fr;
    }
    
    .servizio-sidebar {
        position: relative;
        top: 0;
    }
    
    .vantaggi-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .prenota-content {
        grid-template-columns: 1fr;
    }
    
    .prenota-info-box {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.3rem; }
    
    body {
        overflow-x: hidden;
        width: 100%;
    }
    
    .container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    /* Tablet - 2 colonne */
@media (max-width: 1200px) {
    .services-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* Mobile - 1 colonna */
@media (max-width: 768px) {
    .services-columns {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
    /* Header Mobile */
    .header {
        width: 100%;
        overflow: visible;
        top: 0;  /* ← Default mobile senza banner */
    }
    
    /* Solo home con banner */
    .home-page .header {
        top: 40px;
    }
    
    /* Header mobile quando banner chiuso */
    body.promo-closed .header {
        top: 0;
    }
    
    /* Hero mobile default */
    .studio-hero-banner {
        margin-top: 60px;
    }
    
    /* Solo home con banner */
    .home-page .studio-hero-banner {
        margin-top: 100px;  /* 40px banner + 60px header */
    }
    
    /* Home con banner chiuso */
    body.promo-closed .studio-hero-banner {
        margin-top: 60px;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .nav-wrapper {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }
    
    .logo {
        flex: 0 0 auto;
        max-width: 60%;
    }
    
    .logo-img {
    height: 120px;          
    width: auto;           
    max-width: 250px;      
    display: block;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
        position: relative;
        right: 0;
        z-index: 1002;
        padding: 10px;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background-color: #ffffff;
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
        display: none;
        z-index: 1001;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        padding: 0.5rem 2rem;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu a {
        display: block;
        padding: 0.5rem 0;
        border-bottom: none;
    }
    
    .btn-menu-prenota {
        margin: 0.5rem 2rem;
        text-align: center;
        display: block;
    }
    
    /* Hero Mobile */
    .studio-hero-banner {
        height: 70vh;
        min-height: 500px;
        max-height: 550px;
        margin-top: 100px;
    }
    body.promo-closed .studio-hero-banner {
        margin-top: 60px;
    }
}
    
    .studio-hero-content {
        max-width: 90%;
    }
    
    .studio-hero-title {
        font-size: 2.5rem;
    }
    
    .studio-hero-subtitle {
        font-size: 0.8rem;
        letter-spacing: 3px;
    }
    
    .studio-hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .btn-hero {
        padding: 14px 32px;
        font-size: 0.85rem;
    }
    
    .contatti-hero,
    .prenota-hero {
        padding: 6rem 0 3rem;
    }
    
    .contatti-hero h1,
    .prenota-hero h1 {
        font-size: 2.5rem;
    }
    
    .contatti-intro,
    .prenota-intro {
        font-size: 1rem;
    }
    
    /* Feature Cards Mobile */
    @media (max-width: 768px) {
    .features-cards {
        margin-top: 2rem;
        padding: 0 1rem 3rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    /* Services Mobile */
    .services-columns {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-item img {
        height: 250px;
    }
    
    .service-item h3 {
        font-size: 1.2rem;
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .service-item p {
        padding: 0 1.5rem 1rem;
    }
    
    .service-item .link-arrow {
        padding: 0 1.5rem 1.5rem;
    }
} 
    /* Galleria Mobile */
    .galleria-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .galleria-image {
        height: 200px;
    }
    
    /* News Mobile */
    .news-grid,
    .news-grid-full {
        grid-template-columns: 1fr;
    }
    
    .news-image {
        height: 200px;
    }
    
    /* Contatti Mobile */
    .contatti-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    /* Servizio Dettaglio Mobile */
    .servizio-hero {
        padding: 6rem 0 3rem;
    }
    
    .servizio-hero h1 {
        font-size: 2rem;
    }
    
    .servizio-intro {
        font-size: 1rem;
    }
    
    .servizio-block h2 {
        font-size: 1.5rem;
    }
    
    .servizio-list li,
    .servizio-list-check li {
        font-size: 0.95rem;
    }
    
    .servizio-highlight {
        padding: 1.5rem;
    }
    
    .sidebar-box {
        padding: 1.5rem;
    }
    
    .intro-large {
        font-size: 1rem !important;
    }
    
    .vantaggio-card {
        padding: 1.5rem;
    }
    
    .location-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .location-card {
        padding: 2rem 1.5rem;
    }
    
    .processo-item,
    .formazione-item {
        flex-direction: column;
        gap: 1rem;
        padding: 1.2rem 0;
    }
    
    .processo-numero,
    .formazione-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .processo-content h3,
    .formazione-content h3 {
        font-size: 1.1rem;
    }
    
    .processo-content p,
    .formazione-content p {
        font-size: 0.95rem;
    }
    
    /* Accordion Mobile */
    .accordion-header span {
        font-size: 0.95rem;
    }
    
    /* CTA Mobile */
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
    
    /* Prenota Mobile */
    .prenotazione-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .prenota-form-wrapper {
        padding: 2rem;
    }
    
    .prenota-info-box {
        padding: 2rem;
    }
    
    /* Why Choose Mobile */
    .why-choose-cards {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Cookie Banner */
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

@media (max-width: 480px) {
    .studio-hero-title {
        font-size: 2rem;
    }
    
    .studio-hero-subtitle {
        font-size: 0.75rem;
        letter-spacing: 2px;
    }
    
    .contatti-hero h1,
    .prenota-hero h1 {
        font-size: 2rem;
    }
}

/* ========================================
   FIX LISTE SERVIZI MOBILE
   ======================================== */

@media (max-width: 768px) {
    /* Liste servizi - rimuovi puntini su mobile */
    .lista-servizi-mappa {
        list-style: none;
        padding-left: 0;
    }
    
    .lista-servizi-mappa li {
        margin-bottom: 0.8rem;
        padding-left: 0;
        position: relative;
    }
    
    /* Aggiungi freccia invece del puntino */
    .lista-servizi-mappa li:before {
    content: none;
}

.lista-servizi-mappa li {
    border-left: 3px solid #00395d;
    padding-left: 1rem;
}
    
    /* Link più grande e leggibile */
    .lista-servizi-mappa li a {
        font-size: 0.95rem;
        line-height: 1.6;
        display: inline-block;
    }
}

/* ========================================
   FIX LISTE SERVIZI MOBILE - TUTTE LE PAGINE
   ======================================== */

@media (max-width: 768px) {
    /* Liste servizi - rimuovi puntini e aggiungi bordo laterale */
    .lista-servizi-mappa,
    .formazione-list {
        list-style: none;
        padding-left: 0;
    }
    
    .lista-servizi-mappa li,
    .formazione-list li {
        margin-bottom: 0.8rem;
        padding-left: 1rem;
        position: relative;
        border-left: 3px solid #00395d;
    }
    
    /* Rimuovi qualsiasi simbolo */
    .lista-servizi-mappa li:before,
    .formazione-list li:before {
        content: none;
    }
    
    /* Link più grande e leggibile */
    .lista-servizi-mappa li a,
    .formazione-list li a {
        font-size: 0.95rem;
        line-height: 1.6;
        display: inline-block;
    }
}
/* NEWS HOME - 4 COLONNE FORZATE */
.news-offerte-section .news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Mantieni dimensioni card fisse anche con filtri */
.news-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.news-card {
    width: 100%;
    max-width: 100%;
}

/* Alternativa: forza sempre 4 colonne e lascia spazi vuoti */
.news-grid-full {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}


/* ========================================
   NEWS MOBILE - 1 COLONNA
   ======================================== */

@media (max-width: 768px) {
    /* Home page news */
    .news-offerte-section .news-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    /* Pagina news.html */
    .news-grid-full {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    .news-image {
        height: 200px;
    }
    
    .news-content {
        padding: 1.5rem;
    }
    
    .news-content h3 {
        font-size: 1.1rem;
        min-height: auto;
    }
}
/* ========================================
   PAGINA PRENOTA - DESIGN PROFESSIONALE
   ======================================== */
 
.prenota-form-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #f8f9fa 100%);
}
 
.prenota-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}
 
/* Info Box Laterale */
.prenota-info-box {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    height: fit-content;
    position: sticky;
    top: 100px;
}
 
.info-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #00395d 0%, #55bcb5 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}
 
.info-icon svg {
    stroke: white;
}
 
.prenota-info-box h3 {
    font-size: 1.5rem;
    color: #00395d;
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
}
 
.prenota-info-box ol {
    padding-left: 1.2rem;
    margin-bottom: 2rem;
}
 
.prenota-info-box ol li {
    margin-bottom: 0.8rem;
    color: #666;
    line-height: 1.6;
}
 
.info-contacts,
.info-orari {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}
 
.info-contacts h4,
.info-orari h4 {
    font-size: 1rem;
    color: #00395d;
    margin-bottom: 0.8rem;
    font-weight: 600;
}
 
.info-contacts p,
.info-orari p {
    margin-bottom: 0.5rem;
    color: #666;
    font-size: 0.95rem;
}
 
.info-contacts a {
    color: #00395d;
    font-weight: 600;
    text-decoration: none;
}
 
.info-contacts a:hover {
    text-decoration: underline;
}
 
/* Form Prenotazione */
.prenota-form {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
 
.form-group {
    margin-bottom: 1.8rem;
}
 
.form-group label {
    display: block;
    font-weight: 600;
    color: #00395d;
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
}
 
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    background: #fafafa;
}
 
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00395d;
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 57, 93, 0.1);
}
 
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}
 
.prenota-form button[type="submit"] {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}
 
.prenota-form button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
 
#formMessage {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    font-weight: 500;
    text-align: center;
}
 
#formMessage.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
 
#formMessage.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
 
/* Responsive */
@media (max-width: 968px) {
    .prenota-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .prenota-info-box {
        position: static;
        order: 2;
    }
    
    .prenota-form {
        order: 1;
    }
}
 
@media (max-width: 768px) {
    .prenota-form-section {
        padding: 3rem 0;
    }
    
    .prenota-info-box,
    .prenota-form {
        padding: 2rem 1.5rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.9rem 1rem;
        font-size: 16px; /* Previene zoom iOS */
    }
}
 

.search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    align-items: flex-start;
    justify-content: center;
    padding-top: 100px;
    backdrop-filter: blur(5px);
}

.search-modal.active {
    display: flex;
}

.search-modal-content {
    background: white;
    width: 90%;
    max-width: 700px;
    border-radius: 16px;
    padding: 3rem 2rem 2rem;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-height: 80vh;
    overflow-y: auto;
}

.search-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.search-close:hover {
    color: #00395d;
}

.search-header {
    text-align: center;
    margin-bottom: 2rem;
}

.search-header h2 {
    color: #00395d;
    font-size: 1.8rem;
    font-family: 'Inter', sans-serif;
    margin-bottom: 0.5rem;
}

.search-header p {
    color: #666;
    font-size: 0.95rem;
}

.search-input-wrapper {
    position: relative;
    margin-bottom: 2rem;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

#searchInput {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

#searchInput:focus {
    border-color: #00395d;
    box-shadow: 0 0 0 3px rgba(0, 57, 93, 0.1);
}

.search-results {
    margin-top: 1rem;
}

.search-hint {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 2rem 0;
}

.search-result-item {
    display: block;
    padding: 1rem;
    border-radius: 8px;
    text-decoration: none;
    color: #00395d;
    transition: background 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.search-result-item:hover {
    background: #f8f9fa;
}

.search-result-title {
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: #00395d;
}

.search-result-category {
    display: inline-block;
    font-size: 0.75rem;
    background: #00395d;
    color: white;
    padding: 2px 10px;
    border-radius: 20px;
    margin-bottom: 0.3rem;
}

.search-result-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

.search-no-results {
    text-align: center;
    padding: 2rem 0;
    color: #999;
}

@media (max-width: 768px) {
    .search-modal-content {
        padding: 2rem 1rem 1rem;
        margin: 0 1rem;
    }
}


/* ========================================
   UTILITY CLASSES
   ======================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* ========================================
   ACCESSIBILITÀ - Skip Link
   ======================================== */

.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: #00395d;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    z-index: 100000;
    font-weight: 600;
    border-radius: 0 0 8px 0;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid #55bcb5;
    outline-offset: 2px;
}

/* ========================================
   ACCESSIBILITÀ - Focus visibile globale
   ======================================== */

*:focus {
    outline: 3px solid #00395d;
    outline-offset: 2px;
}

/* Focus più visibile per elementi interattivi */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus,
[tabindex]:focus {
    outline: 3px solid #00395d;
    outline-offset: 2px;
    box-shadow: 0 0 0 5px rgba(0, 57, 93, 0.2);
}

/* Focus per i link nel menu navigation */
.nav-menu a:focus,
.nav-menu button:focus {
    outline: 3px solid #55bcb5;
    outline-offset: 2px;
    background: rgba(0, 57, 93, 0.05);
}

/* Focus per i pulsanti principali */
.btn:focus,
.btn-primary:focus,
.btn-secondary:focus,
.btn-menu-prenota:focus {
    outline: 3px solid #55bcb5;
    outline-offset: 3px;
}

/* Focus per le card cliccabili */
.servizio-card:focus-within,
.news-card:focus-within {
    outline: 3px solid #00395d;
    outline-offset: 2px;
}

/* Rimuovi outline solo per click mouse, mantieni per tastiera */
*:focus:not(:focus-visible) {
    outline: none;
}

*:focus-visible {
    outline: 3px solid #00395d;
    outline-offset: 2px;
}

/* ========================================
   ACCESSIBILITÀ - Legenda asterischi form
   ======================================== */

.form-legend {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1.5rem;
    text-align: right;
    font-style: italic;
}

.form-legend span {
    color: #d9534f;
    font-weight: 700;
    font-style: normal;
}

/* ========================================
   ACCESSIBILITÀ - Classi utility
   ======================================== */

/* Nasconde visivamente ma resta accessibile a screen reader */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Fix contrasto hero title */
.studio-hero-title {
    color: #FFFFFF !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

.about-subtitle,
.contact-subtitle,
.section-subtitle {
    color: #00395d !important;
    font-weight: 700;
}

/* Fix contrasto news tags */
.news-tag {
    color: #FFFFFF !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.tag-intestino {
    background: #00395d !important; /* Marrone scuro - era troppo chiaro */
}

.tag-estetica {
    background: #00395d !important; /* Rosa scuro */
}

.tag-specialistica {
    background: #00395d !important; /* Blu scuro */
}

.tag-promo {
    background: #00395d !important; /* Verde scuro */
}

/* Fix contrasto link cookie */
.cookie-banner a,
.cookie-content a {
    color: #FFFFFF !important;
    text-decoration: underline !important;
    font-weight: 700;
}

.cookie-banner a:hover,
.cookie-content a:hover {
    color: #55bcb5 !important;
}

/* 1. Hero description - solo text shadow, no background */
.studio-hero-description {
    color: #FFFFFF !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9), 0 0 20px rgba(0, 0, 0, 0.6);
    background-color: transparent !important;
    padding: 0 !important;
    display: block !important;
}

/* Hero content - allineamento centrato e verticale corretto */
.studio-hero-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 1.5rem;
}

/* Pulsante hero sotto al testo */
.studio-hero-content .btn,
.studio-hero-content .btn-hero {
    margin-top: 1rem !important;
}
/* Fix link cookie banner */
.cookie-banner {
    background-color: #00395d !important;
}

.cookie-banner p,
.cookie-content p {
    color: #FFFFFF !important;
    background-color: transparent !important;
}

.cookie-banner a,
.cookie-content a {
    color: #FFFFFF !important;
    background-color: #00395d !important;
    text-decoration: underline !important;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
}

.cookie-banner a:hover,
.cookie-content a:hover {
    color: #55bcb5 !important;
    background-color: #00395d !important;
}

/* Alternativa: solo box dietro il contenuto */
.studio-hero-overlay {
    background: rgba(0, 0, 0, 0.2) !important; /* leggero overlay generico */
}

.studio-hero-content {
    background-color: rgba(0, 57, 93, 0.7) !important;
    backdrop-filter: blur(8px);
    padding: 2.5rem 2rem !important;
    border-radius: 12px;
    max-width: 700px;
    margin: 0 auto;
}

/* Fix pulsante hero - visibile su sfondo scuro */
.studio-hero-content .btn-hero,
.studio-hero-content .btn {
    background-color: #FFFFFF !important;
    color: #00395d !important;
    border: 2px solid #FFFFFF !important;
    padding: 14px 32px !important;
    font-weight: 700 !important;
    margin-top: 1.5rem !important;
    display: inline-block !important;
    text-decoration: none !important;
}

.studio-hero-content .btn-hero:hover,
.studio-hero-content .btn:hover {
    background-color: #55bcb5 !important;
color: #00395d !important;
border: 2px solid #55bcb5 !important;
}

/* ========================================
   FIX HERO MOBILE - Pulsante centrato
   ======================================== */

@media (max-width: 768px) {
    .studio-hero-banner {
        min-height: auto;
        padding-top: 140px; 
    }
    
    .studio-hero-content {
        padding: 2rem 1.5rem !important;
        gap: 1.5rem;
    }
    
    /* Pulsante con margin-bottom adeguato */
    .studio-hero-content .btn-hero,
    .studio-hero-content .btn {
        margin-top: 1rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    /* Più aria attorno alla descrizione */
    .studio-hero-description {
        margin-bottom: 0.5rem !important;
    }
}

/* Fix hamburger non cliccabile */
@media (max-width: 768px) {
    .header {
        position: fixed;
        z-index: 9999;
        pointer-events: auto;
    }

    .nav-menu {
        z-index: 99999 !important;
    }

    .mobile-menu-toggle {
        z-index: 100000 !important;
        pointer-events: auto !important;
    }

    .prenota-info-box {
        position: static !important;
        z-index: 1 !important;
    }

    .prenota-form {
        position: relative;
        z-index: 1;
    }

    .search-modal {
        z-index: 999999 !important;
    }
}

/* Breadcrumbs */
.breadcrumbs {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    z-index: 10;
    padding: 0.5rem 0;
}
.breadcrumbs ol {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.5rem;
    font-size: 0.75rem;
}
.breadcrumbs li::after {
    content: "›";
    margin-left: 0.5rem;
    color: rgba(255,255,255,0.5);
}
.breadcrumbs li:last-child::after {
    content: "";
}
.breadcrumbs a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
}
.breadcrumbs a:hover {
    color: #ffffff;
}
.breadcrumbs li:last-child span {
    color: rgba(255,255,255,0.9);
}

/* ============================================
   COLORE LINK GLOBALE - Brand Studio Tuccillo
   ============================================ */
a {
    color: #00395d;
    text-decoration: underline;
    transition: color 0.3s ease;
}

a:hover,
a:focus {
    color: #00395d;
}

/* Navbar, bottoni e logo: MAI sottolineati */
.nav-menu a,
.btn,
.btn-hero,
.btn-scopri,
.btn-menu-prenota,
.hero-actions a,
.logo a,
.social-icons a {
    text-decoration: none !important;
}

/* Footer link */
.footer a {
    color: rgba(255, 255, 255, 0.8);
}
.footer a:hover {
    color: #ffffff;
}

/* Forza sottolineatura sui link nelle card servizi */
.reparto-card ul li a {
    color: #00395d !important;
    text-decoration: underline !important;
}
.reparto-card ul li a:hover {
    color: #00395d !important;
}

/* ============================================
   FIX GLOBALE: Hero mobile - bottone visibile
   Applicato a tutte le pagine con .studio-hero-banner
   ============================================ */
@media (max-width: 768px) {
    .studio-hero-overlay {
        padding-top: 60px;
        padding-bottom: 1.5rem;
    }
    .studio-hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.6rem;
    }
    .studio-hero-subtitle {
        font-size: 0.65rem;
        margin-bottom: 0;
    }
    .studio-hero-title {
        font-size: 1.5rem;
        margin-bottom: 0.3rem;
    }
    .studio-hero-description {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 0.5rem;
    }
    .hero-actions {
        margin-top: 0.5rem;
    }
    .hero-actions .btn.btn-hero {
        background-color: #ffffff !important;
        color: #00395d !important;
        padding: 0.85rem 1.8rem;
        font-weight: 700;
        border-radius: 6px;
        border: 2px solid #fff;
        box-shadow: 0 4px 15px rgba(255,255,255,0.25);
    }
}
/* ============================================
   FIX GLOBALE: Hero mobile - bottone visibile
   Applicato a tutte le pagine con .studio-hero-banner
   ============================================ */
@media (max-width: 768px) {
    .studio-hero-overlay {
        padding-top: 60px;
        padding-bottom: 1.5rem;
    }
    .studio-hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.6rem;
    }
    .studio-hero-subtitle {
        font-size: 0.65rem;
        margin-bottom: 0;
    }
    .studio-hero-title {
        font-size: 1.5rem;
        margin-bottom: 0.3rem;
    }
    .studio-hero-description {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 0.5rem;
    }
    .hero-actions {
        margin-top: 0.5rem;
    }
    .hero-actions .btn.btn-hero {
        background-color: #ffffff !important;
        color: #00395d !important;
        padding: 0.85rem 1.8rem;
        font-weight: 700;
        border-radius: 6px;
        border: 2px solid #fff;
        box-shadow: 0 4px 15px rgba(255,255,255,0.25);
    }
}
/* ============================================
   FOOTER MOBILE - Contenuto centrato
   ============================================ */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-info,
    .footer-links,
    .footer-orari {
        text-align: center;
        align-items: center;
    }
    .footer-links ul {
        padding: 0;
        list-style: none;
    }
    .footer-social {
        text-align: center;
    }
    .social-icons {
        justify-content: center;
    }
    .footer-bottom {
        text-align: center;
    }
}
@media (max-width: 768px) {
    .footer-links ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0;
        padding: 0;
        list-style: none;
    }
    .footer-links ul li {
        display: inline;
    }
    .footer-links ul li::after {
        content: "|";
        margin: 0 0.5rem;
        color: rgba(255, 255, 255, 0.4);
    }
    .footer-links ul li:last-child::after {
        content: "";
    }
}


/* ============================================
   CTA Banner mobile - Bottone più alto
   ============================================ */
@media (max-width: 768px) {
    .cta-overlay {
        padding: 2rem 1.5rem;
    }
    .cta-content {
        gap: 0.8rem;
    }
    .cta-content h2 {
        font-size: 1.4rem;
        margin-bottom: 0.3rem;
    }
    .cta-content p {
        font-size: 0.85rem;
        line-height: 1.4;
        margin-bottom: 0.5rem;
    }
    .cta-content .btn {
        margin-top: 0.5rem;
    }
}

/* ============================================
   FIX: Zero spazio tra contenuto e sidebar su mobile
   ============================================ */
@media (max-width: 768px) {
    .servizio-grid {
        display: flex;
        flex-direction: column;
        gap: 0 !important;
    }
    .servizio-main {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
    .servizio-sidebar {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    .servizio-content {
        padding-bottom: 0;
    }
    .servizio-content .container {
        gap: 0;
    }
}


/* ============================================
   FAQ SECTION - Studio Sanitario Tuccillo
   Palette: bianco, nero, blu (footer/logo), verde-azzurro (logo)
   ============================================ */

.faq-section {
  background: #ffffff;
  padding: 4rem 2rem;
  margin: 0;
  border-top: 2px solid #e8e8e8;
}

.faq-section h2 {
  text-align: center;
  font-size: 2rem;
  color: #000000;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.faq-section h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: #55bcb5; /* verde-azzurro del logo */
  margin: 1rem auto 2.5rem;
  border-radius: 2px;
}

/* Container FAQ centrato */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Singola FAQ */
.faq-item {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: #55bcb5; /* verde-azzurro */
}

.faq-item[open] {
  border-color: #55bcb5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Domanda */
.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 600;
  color: #000000;
  list-style: none;
  gap: 1rem;
  transition: background 0.2s ease;
}

.faq-item__question:hover {
  background: #f5f5f5;
}

/* Rimuove il triangolo nativo */
.faq-item__question::-webkit-details-marker {
  display: none;
}

.faq-item__question::marker {
  display: none;
  content: '';
}

/* Freccia */
.faq-item__question::after {
  content: '▼';
  font-size: 0.65rem;
  color: #55bcb5; /* verde-azzurro */
  transition: transform 0.3s ease;
  min-width: 1rem;
  text-align: center;
}

.faq-item[open] .faq-item__question::after {
  transform: rotate(180deg);
}

/* Focus accessibile */
.faq-item__question:focus-visible {
  outline: 3px solid #55bcb5;
  outline-offset: -3px;
  border-radius: 12px;
}

/* Risposta */
.faq-item__answer {
  padding: 0 1.5rem 1.5rem;
  color: #333333; /* nero leggero per leggibilità */
  font-size: 0.95rem;
  line-height: 1.8;
  border-top: 1px solid #e8e8e8;
  padding-top: 1.25rem;
}

.faq-item__answer p {
  margin: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .faq-section {
    padding: 3rem 1rem;
  }

  .faq-section h2 {
    font-size: 1.5rem;
  }

  .faq-item__question {
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
  }

  .faq-item__answer {
    padding: 0 1.25rem 1.25rem;
    padding-top: 1rem;
    font-size: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-item,
  .faq-item__question::after {
    transition: none;
  }
}


/* === FIX BARRA BIANCA IN FONDO ALLA PAGINA === */

/* Assicura che html e body coprano sempre almeno il 100% del viewport */
html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Il footer si "attacca" sempre al fondo */
.footer {
    margin-top: auto;
}

/* Rimuovi eventuali margini fantasma sull'ultimo elemento prima del footer */
.newsletter-section:last-of-type {
    margin-bottom: 0;
    padding-bottom: 80px;
}


/* ============================================
   FIX: Rimozione spazio vuoto banner promozionale
   Studio Sanitario Tuccillo
   ============================================ */


/* 
   OPZIONE B: Se l'header ha position sticky/fixed con top 
   che compensava il banner, riportalo a 0
*/

/* ===== Card cliccabile su tutta l'area ===== */
.news-card {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 57, 93, 0.15);
}
/* Mantiene i link interni cliccabili e sopra l'overlay */
.news-card a {
    position: relative;
    z-index: 2;
}

/* ===== Prezzo scontato con X rossa — versione robusta ===== */
.prezzo-vecchio {
    display: inline-block !important;
    color: #888 !important;
    font-weight: 500 !important;
    margin-right: 8px !important;
    text-decoration: none !important;
    /* Linea rossa diagonale realizzata con gradiente di sfondo:
       non puo' essere tagliata da overflow e non dipende da ::after */
    background-image: linear-gradient(-15deg, transparent 44%, #e74c3c 44%, #e74c3c 56%, transparent 56%) !important;
    background-repeat: no-repeat !important;
    background-size: 100% 100% !important;
    padding: 0 2px !important;
}
.prezzo-nuovo {
    display: inline-block !important;
    color: #00395d !important;
    font-weight: 700 !important;
}
