/* ==========================================================================
   CSS Custom Unificato - Trapianto Capelli
   ========================================================================== */

/* --- Variabili CSS --- */
:root {
    --primary-color: #0F172A;
    --secondary-color: #1E293B;
    --cta-color: #F59E0B;
    --cta-hover: #D97706;
    --bg-light: #F8FAFC;
    --text-dark: #334155;
    --text-light: #64748B;
    --white: #FFFFFF;
    --border-radius: 8px;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --header-height: 90px;
    --font-body: 'Inter', sans-serif;
    --font-heading: 'Inter', sans-serif;
}

/* --- Reset & Base --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition-smooth); }
ul { list-style: none; }

/* --- Utility Classes --- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.bg-primary { background-color: var(--primary-color); }
.bg-light { background-color: var(--bg-light); }
section { padding: 80px 0; }
.section-subtitle { text-align: center; max-width: 800px; margin: 0 auto 50px auto; color: var(--text-light); font-size: 1.1rem; }

/* --- Tipografia --- */
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--primary-color); line-height: 1.2; }
h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 15px; }
h2 { font-size: 2rem; font-weight: 800; margin-bottom: 20px; text-align: center; }
h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 10px; }
p { margin-bottom: 15px; }

/* --- Bottoni --- */
.btn {
    display: inline-block; background-color: var(--cta-color); color: var(--white) !important;
    padding: 16px 32px; font-size: 1.1rem; font-weight: 800; text-transform: uppercase;
    text-decoration: none; border-radius: var(--border-radius); border: none;
    cursor: pointer; transition: var(--transition-smooth); text-align: center; width: 100%;
    box-shadow: 0 4px 6px rgba(245, 158, 11, 0.3);
}
.btn:hover { background-color: var(--cta-hover); transform: translateY(-2px); }

/* ================= HEADER & NAV ================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 999;
    background: var(--white);
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: var(--transition-smooth);
}

.header-inner { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.desktop-only { display: none; }

.menu-toggle { background: transparent; border: none; cursor: pointer; width: 30px; height: 20px; position: relative; z-index: 1001; }
.hamburger, .hamburger::before, .hamburger::after { display: block; width: 100%; height: 2px; background-color: var(--primary-color); transition: var(--transition-smooth); position: absolute; }
.menu-toggle.is-active .hamburger { background-color: transparent !important; }
.menu-toggle.is-active .hamburger::before, .menu-toggle.is-active .hamburger::after { background-color: var(--primary-color); }
.hamburger::before { content: ''; top: -8px; }
.hamburger::after { content: ''; bottom: -8px; }
.menu-toggle.is-active .hamburger::before { transform: translateY(8px) rotate(45deg); }
.menu-toggle.is-active .hamburger::after { transform: translateY(-8px) rotate(-45deg); }

.mobile-menu-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background-color: var(--white); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: var(--transition-smooth); z-index: 1000; }
.mobile-menu-overlay.is-open { opacity: 1; visibility: visible; }
.mobile-nav ul { text-align: center; }
.mobile-nav li { margin-bottom: 2rem; }
.mobile-link { font-weight: 800; font-size: 2rem; color: var(--primary-color); }

/* ================= HERO SECTION & FORM ================= */
.hero { background-color: var(--primary-color); color: var(--white); padding: calc(var(--header-height) + 40px) 0 60px 0; }
.hero h1 { color: var(--white); }
.hero .subheadline { font-size: 1.2rem; margin-bottom: 30px; color: #CBD5E1; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }

.hero-trust-box { display: flex; align-items: center; gap: 20px; margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); }
.hero-trust-imgs { display: flex; }
.hero-trust-imgs img { width: 75px; height: 75px; border-radius: 50%; object-fit: cover; border: 3px solid var(--primary-color); box-shadow: 0 4px 8px rgba(0,0,0,0.3); position: relative; }
.hero-trust-imgs img:hover { transform: translateY(-3px) scale(1.05); z-index: 10; }
.hero-trust-imgs img:not(:first-child) { margin-left: -25px; }
.hero-trust-text { font-size: 1.05rem; color: #CBD5E1; line-height: 1.4; }
.hero-trust-text strong { color: var(--white); font-size: 1.15rem; }

.lead-form-box { background: var(--white); padding: 30px; border-radius: var(--border-radius); color: var(--text-dark); box-shadow: 0 10px 25px rgba(0,0,0,0.2); }
.lead-form-box h3 { text-align: center; margin-bottom: 20px; color: var(--primary-color); }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 5px; font-size: 0.9rem; }
.form-group input { width: 100%; padding: 12px; border: 1px solid #CBD5E1; border-radius: 4px; font-size: 1rem; transition: var(--transition-smooth); }
.form-group input:focus { border-color: var(--cta-color); outline: none; }
.form-error { color: #EF4444; font-size: 0.8rem; display: none; margin-top: 5px; }
.microcopy { text-align: center; font-size: 0.8rem; color: var(--text-light); margin-top: 15px; }
.trust-badges { display: flex; justify-content: center; gap: 15px; margin-top: 20px; }
.trust-badge { display: flex; align-items: center; font-size: 0.8rem; font-weight: 600; }

/* ================= GRIGLIE E COMPONENTI ================= */
.antonio-grid { display: grid; grid-template-columns: 1fr; gap: 30px; align-items: center; background: var(--white); padding: 40px; border-radius: var(--border-radius); box-shadow: 0 4px 15px rgba(0,0,0,0.05); margin-bottom: 40px; }
.antonio-content h3 { font-size: 1.8rem; color: var(--cta-color); margin-bottom: 15px; }
.antonio-content ul { list-style: none; margin-top: 20px; }
.antonio-content ul li { position: relative; padding-left: 30px; margin-bottom: 15px; font-weight: 600; }
.antonio-content ul li::before { content: '✔'; position: absolute; left: 0; color: #10B981; font-size: 1.2rem; }

.timeline { display: flex; flex-direction: column; gap: 20px; max-width: 800px; margin: 0 auto; }
.timeline-item { background: var(--white); padding: 25px; border-left: 5px solid var(--cta-color); border-radius: 0 var(--border-radius) var(--border-radius) 0; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.timeline-day { font-weight: 800; font-size: 1.3rem; color: var(--cta-color); margin-bottom: 10px; display: inline-block; text-transform: uppercase; letter-spacing: 1px; }

.features-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.feature-card { background: var(--white); padding: 20px; border-radius: var(--border-radius); box-shadow: 0 2px 5px rgba(0,0,0,0.05); display: flex; align-items: flex-start; gap: 15px; }
.feature-icon { font-size: 2rem; flex-shrink: 0; }
.feature-text h4 { margin-bottom: 5px; color: var(--primary-color); }
.feature-text p { margin-bottom: 0; font-size: 0.9rem; color: var(--text-light); }

/* Container per affiancare i video */
.video-grid-wrapper {
    display: grid;
    grid-template-columns: 1fr; /* Di base (mobile), i video sono impilati in 1 colonna */
    gap: 30px;
    max-width: 1000px; /* Leggermente più largo per ospitare due video comodamente */
    margin: 0 auto 50px auto;
}

.video-wrapper { 
    border-radius: var(--border-radius); 
    overflow: hidden; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); 
    background-color: #000; 
    position: relative; 
    width: 100%;
}

.video-wrapper video { 
    width: 100%; 
    display: block; 
    max-height: 70vh; /* Su mobile evita che un video verticale occupi tutto lo schermo */
    object-fit: cover; /* Assicura che i video riempiano il contenitore senza deformarsi */
}

/* ================= MEDIA QUERIES DESKTOP (1024px+) ================= */
/* Scorri verso il basso fino al blocco desktop esistente e aggiungi questa regola */
@media (min-width: 1024px) {
    /* ... le altre regole che hai già ... */

    /* Aggiungi questa per la griglia video su desktop */
    .video-grid-wrapper {
        grid-template-columns: 1fr 1fr; /* Due colonne uguali su schermi larghi */
        gap: 40px;
    }
}

.choice-divider { text-align: center; margin: -20px auto 40px auto; position: relative; max-width: 800px; z-index: 1; }
.choice-divider::before { content: ''; position: absolute; top: 50%; left: 5%; right: 5%; height: 1px; background-color: #CBD5E1; z-index: -1; }
.choice-divider span { background-color: var(--bg-light); padding: 0 20px; color: var(--text-light); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; }

/* ================= SLIDER & LIGHTBOX ================= */
.slider-container { position: relative; width: 100%; overflow: hidden; padding-bottom: 10px; }
.slider-track { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none; scroll-behavior: smooth; }
.slider-track::-webkit-scrollbar { display: none; }
.slider-item { flex: 0 0 100%; scroll-snap-align: center; background: var(--white); border-radius: var(--border-radius); overflow: hidden; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.gallery-img-single img { width: 100%; height: auto; object-fit: cover; cursor: zoom-in; transition: opacity 0.3s; }
.gallery-img-single img:hover { opacity: 0.9; }
.gallery-caption { padding: 15px; text-align: center; font-weight: 600; font-size: 0.9rem; }

.nav-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(15, 23, 42, 0.75); color: var(--white); border: none; width: 45px; height: 45px; border-radius: 50%; cursor: pointer; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 6px rgba(0,0,0,0.3); transition: var(--transition-smooth); z-index: 10; }
.nav-btn:hover { background: var(--cta-color); transform: translateY(-50%) scale(1.05); }
.prev-btn { left: 10px; }
.next-btn { right: 10px; }

.lightbox { display: none; position: fixed; z-index: 9999; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.95); align-items: center; justify-content: center; flex-direction: column; opacity: 0; transition: opacity 0.3s ease; }
.lightbox.show { display: flex; opacity: 1; }
.lightbox img { max-width: 95%; max-height: 85vh; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.close-lightbox { position: absolute; top: 20px; right: 30px; color: var(--white); font-size: 2.5rem; cursor: pointer; font-weight: 300; }

/* ================= FAQ & TESTIMONIANZE ================= */
.faq { background-color: var(--white); }
.accordion-item { border-bottom: 1px solid #E2E8F0; }
.accordion-header { width: 100%; text-align: left; padding: 20px 0; background: none; border: none; font-size: 1.1rem; font-weight: 600; color: var(--primary-color); cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.accordion-content { padding-bottom: 20px; display: none; color: var(--text-light); }
.accordion-content.active { display: block; }
.accordion-header::after { content: '+'; font-size: 1.5rem; }
.accordion-header.active::after { content: '-'; }

.testimonial-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
.testimonial-card { background: var(--white); padding: 30px; border-radius: var(--border-radius); box-shadow: 0 4px 6px rgba(0,0,0,0.05); font-style: italic; position: relative; }
.testimonial-author { margin-top: 15px; font-weight: 800; font-style: normal; color: var(--primary-color); }

/* ================= FOOTER & BOTTOM CTA ================= */
.bottom-cta { background-color: var(--primary-color); color: var(--white); text-align: center; }
.bottom-cta h2 { color: var(--white); }

.site-footer { padding: 60px 0 20px; background-color: #020617; color: #94A3B8; }
.footer-grid { display: flex; flex-direction: column; gap: 40px; margin-bottom: 40px; }
.micro-payoff { font-size: 0.95rem; color: #CBD5E1; margin-top: 15px; }
.footer-heading { font-size: 1rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1.5rem; color: var(--white); }
.footer-links ul li, .footer-contact p { font-size: 0.9rem; margin-bottom: 0.8rem; }
.footer-links ul li a:hover, .footer-contact p a:hover { color: var(--cta-color); }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.8rem; }
.footer-logo-link { display: block; margin-bottom: 1rem; }
.footer-logo-img { max-width: 180px; height: auto; }

.sticky-mobile-cta { position: fixed; bottom: 0; left: 0; width: 100%; background: var(--white); padding: 15px; box-shadow: 0 -2px 10px rgba(0,0,0,0.1); z-index: 99; display: none; }


/* ================= MEDIA QUERIES MOBILE / TABLET ================= */
@media (max-width: 767px) {
    .sticky-mobile-cta { display: block; }
    body { padding-bottom: 80px; } 
}

@media (max-width: 1023px) {
    .site-branding { display: flex; align-items: center; justify-content: center; z-index: 10; }
    .logo-img { max-height: 55px !important; width: auto; object-fit: contain; }
}

@media (min-width: 768px) {
    .desktop-only { display: block; }
    .footer-grid { flex-direction: row; justify-content: space-between; }
}

/* ================= MEDIA QUERIES DESKTOP (1024px+) ================= */
@media (min-width: 1024px) {

    :root { --header-height: 110px; }
    
    /* Regole Header Desktop */
    .header-inner { display: flex; justify-content: center; align-items: center; gap: 30px; }
    .site-branding { display: flex; align-items: center; justify-content: center; z-index: 10; margin: 0 15px; }
    .logo-img { max-height: 75px; width: auto; object-fit: contain; }
    .nav-left, .nav-right { flex: 0 1 auto; }
    .nav-left ul, .nav-right ul { display: flex; gap: 20px; }
    .menu-toggle { display: none !important; }

    .site-header nav ul li a { position: relative; padding-bottom: 6px; font-size: 0.95rem; font-weight: 600; color: var(--primary-color); transition: color 0.4s ease; }
    .site-header nav ul li a::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 0; height: 2px; background-color: var(--cta-color); transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
    .site-header nav ul li a:hover { color: var(--cta-color); }
    .site-header nav ul li a:hover::after { width: 100%; }

    /* Regole Griglie Landing Page Desktop */
    h1 { font-size: 3.5rem; }
    .hero-grid { grid-template-columns: 1.2fr 0.8fr; }
    .antonio-grid { grid-template-columns: 0.8fr 1.2fr; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonial-grid { grid-template-columns: repeat(3, 1fr); }
    .slider-container { max-width: 800px; margin: 0 auto; }
    .gallery-img-single img { max-height: 650px; object-fit: cover; object-position: top; }
}