/* =========================================
   VARIABILI & RESET
   ========================================= */
:root {
    --bg-primary: #0a0a0a;
    --bg-asfalto: #161616;
    --bg-asfalto-light: #202020;
    --accent-terra: #B09277;
    --accent-oro: #D4AF37;
    --accent-oro-hover: #F3E5AB;
    --text-light: #F2F2F2;
    --text-muted: #999999;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-smooth: color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                         background-color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                         border-color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                         transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                         opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                         box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                         filter 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-light);
    font-family: var(--font-body);
    line-height: 1.6;
    font-weight: 300;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-light);
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition-smooth);
}

/* ACCESSIBILITY: KEYBOARD FOCUS */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--accent-oro);
    outline-offset: 4px;
}

.text-center {
    text-align: center;
}

/* =========================================
   NAVBAR (Condivisa dal sito madre, aggiornata Premium)
   ========================================= */
.navbar { position: fixed; top: 0; left: 0; width: 100%; background-color: rgba(10,10,10,0.6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); z-index: 1000; border-bottom: 1px solid rgba(255,255,255,0.05); transition: var(--transition-smooth); }
.nav-container { display: flex; justify-content: space-between; align-items: center; max-width: 1100px; margin: 0 auto; padding: 15px 5%; }
.nav-logo { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--accent-oro); letter-spacing: 2px; text-shadow: 0 0 10px rgba(212, 175, 55, 0.3); }
.nav-links { display: flex; list-style: none; gap: 30px; }
.nav-links a { font-size: 0.95rem; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); text-shadow: 0 1px 2px rgba(0,0,0,0.8); }
.nav-links a:hover, .nav-links a.active { color: #fff; text-shadow: 0 0 8px rgba(255,255,255,0.5); }

/* DROPDOWN MENU */
.dropdown { position: relative; }
.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(15, 17, 21, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    min-width: 220px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 9999;
}
.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-content li {
    list-style: none;
    margin: 0;
    padding: 0;
}
.dropdown-content a {
    display: block;
    padding: 12px 20px;
    color: var(--text-light);
    font-size: 0.9rem;
    text-transform: none;
    transition: background 0.2s, color 0.2s;
}
.dropdown-content a:hover, .dropdown-content a.active {
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--accent-oro);
}

@media (max-width: 900px) {
    .dropdown-content {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent;
        padding-left: 20px;
        min-width: 100%;
    }
    .dropdown > a {
        pointer-events: none;
        opacity: 0.6;
    }
}

/* =========================================
   LAYOUT & COMPONENTS
   ========================================= */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

.accent-line {
    width: 60px;
    height: 2px;
    background-color: var(--accent-oro);
    margin-bottom: 2rem;
}

/* =========================================
   BUTTONS & LINKS
   ========================================= */
.cta-button {
    display: inline-block;
    background-color: transparent;
    color: var(--accent-oro);
    padding: 16px 36px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    border: 1px solid var(--accent-oro);
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.1);
    position: relative;
    overflow: hidden;
}

.cta-button::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg) translateY(-100%);
    transition: transform 0.6s ease;
}

.cta-button:hover::after {
    transform: rotate(45deg) translateY(100%);
}

.cta-button:hover {
    background-color: rgba(212, 175, 55, 0.1);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
    transform: translateY(-3px);
    border-color: var(--accent-oro-hover);
    color: var(--accent-oro-hover);
}

.secondary-link {
    display: inline-block;
    color: var(--accent-terra);
    font-size: 1rem;
    border-bottom: 1px solid var(--accent-terra);
    padding-bottom: 3px;
    margin-top: 20px;
}

.secondary-link:hover {
    color: #fff;
    border-bottom-color: #fff;
}

.cta-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
}

.cta-group-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    margin-top: 30px;
}

/* =========================================
   STICKY CTA
   ========================================= */
.sticky-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

.sticky-cta.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cta-button-small {
    display: inline-block;
    background-color: transparent;
    color: var(--accent-oro);
    border: 1px solid var(--accent-oro);
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 4px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    transition: var(--transition-smooth);
}

.cta-button-small:hover {
    background-color: rgba(212, 175, 55, 0.1);
    border-color: var(--accent-oro-hover);
    color: var(--accent-oro-hover);
    transform: scale(1.05);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-image: url('hero_background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(10,10,10,0.7) 0%, rgba(10,10,10,0.95) 100%);
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(176, 146, 119, 0.15) 0%, transparent 70%);
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 100px;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    color: var(--text-light);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.kicker::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background-color: var(--accent-oro);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-oro);
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 2rem;
    line-height: 1.1;
    text-transform: uppercase;
    text-shadow: 0 10px 20px rgba(0,0,0,0.8);
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.hero-image-wrapper img {
    animation: float 6s ease-in-out infinite;
    position: relative;
    z-index: 3;
}

.hero .subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    opacity: 0.85;
    margin: 0 0 3.5rem 0;
    max-width: 600px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.8);
    line-height: 1.8;
}

/* =========================================
   HOOK SECTION (PROLOGO)
   ========================================= */
.hook-section {
    padding: 120px 0;
    display: flex;
    justify-content: center;
}

.hook-text {
    max-width: 750px;
}

.quote-style {
    font-size: 2.2rem;
    font-style: italic;
    color: #fff;
    text-align: center;
}

.hook-text .accent-line {
    margin: 2rem auto 3rem auto;
}

.hook-text p {
    font-size: 1.2rem;
    color: #CCC;
    text-align: left;
    margin-bottom: 1.8rem;
}

/* =========================================
   PILLARS (IL CONFLITTO)
   ========================================= */
.pillars-section {
    background-color: var(--bg-primary);
    padding: 120px 0;
    position: relative;
}

.pillars-section::before {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(110, 31, 43, 0.08) 0%, transparent 60%);
    top: 0;
    left: -200px;
    z-index: 0;
    pointer-events: none;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 1;
}

.pillar {
    background: rgba(255,255,255,0.02);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 50px 40px;
    border: 1px solid rgba(255,255,255,0.05);
    border-top: 3px solid var(--accent-oro);
    border-radius: 8px;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pillar:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 20px rgba(212, 175, 55, 0.2);
    border-color: rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
}

.icon-gold {
    color: var(--accent-oro);
    font-size: 2rem;
    margin-bottom: 15px;
}

.pillar h3 {
    font-size: 1.6rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    min-height: 4rem;
}

.pillar p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* =========================================
   SOCIAL PROOF (PRIME VOCI)
   ========================================= */
.social-proof-section {
    padding: 100px 0;
    background-color: var(--bg-primary);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.review {
    padding: 40px;
    background: linear-gradient(135deg, var(--bg-asfalto-light) 0%, var(--bg-asfalto) 100%);
    border-left: 3px solid var(--accent-terra);
    border-radius: 4px;
}

.review p {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.review cite {
    font-size: 0.95rem;
    color: var(--accent-terra);
    font-style: normal;
    font-weight: 500;
}

/* =========================================
   FILOSOFIA DELL'OPERA
   ========================================= */
.philosophy-section {
    background-color: #1A1D20;
    padding: 120px 0;
    text-align: center;
    border-top: 1px solid #2a2d30;
    border-bottom: 1px solid #2a2d30;
}

.philosophy-content {
    max-width: 800px;
    margin: 0 auto;
}

.philosophy-section blockquote {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--accent-terra);
    font-style: italic;
    line-height: 1.3;
    margin-bottom: 40px;
}

.philosophy-section p {
    font-size: 1.2rem;
    color: #CCC;
}

/* =========================================
   ACCOSTATO A...
   ========================================= */
.targeting-section {
    padding: 80px 0;
    text-align: center;
}

.targeting-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-style: italic;
    max-width: 700px;
    margin: 0 auto;
}

/* =========================================
   L'AUTORE
   ========================================= */
.author-section {
    padding: 40px 0 100px 0;
}

.author-grid {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 900px;
    margin: 0 auto;
}

.author-image img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 50%;
    filter: grayscale(100%) contrast(1.1);
    transition: filter 0.6s ease;
}

.author-image img:hover {
    filter: grayscale(0%) contrast(1);
}

.author-info h2 {
    font-size: 2.5rem;
}

.author-info p {
    color: #CCC;
    font-size: 1.1rem;
}

/* =========================================
   MICRO-FAQ (ACCORDION)
   ========================================= */
.faq-section {
    padding: 60px 0 120px 0;
}

.faq-accordion {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--bg-asfalto);
    border: 1px solid #333;
    margin-bottom: 15px;
    border-radius: 4px;
    overflow: hidden;
}

.faq-item summary {
    padding: 20px;
    font-size: 1.2rem;
    font-weight: 500;
    cursor: pointer;
    list-style: none; /* Rimuove la freccia di default */
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent-terra);
    transition: var(--transition-smooth);
}

.faq-item[open] summary::after {
    content: '-';
    transform: rotate(180deg);
}

.faq-item[open] summary {
    background-color: var(--bg-asfalto-light);
    border-bottom: 1px solid #333;
}

.faq-content {
    padding: 20px;
    color: #CCC;
    background-color: var(--bg-primary);
}

/* =========================================
   FOOTER & CTA FINALE (MOCKUP)
   ========================================= */
.footer-cta {
    background-color: var(--bg-asfalto);
    padding: 100px 0 30px 0;
    border-top: 2px solid var(--accent-oro);
}

.footer-grid {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-mockup {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.footer-mockup img {
    max-width: 100%;
    height: auto;
    width: 350px;
    border-radius: 4px;
    box-shadow: -15px 25px 40px rgba(0,0,0,0.8);
    transform: perspective(1000px) rotateY(5deg);
    transition: var(--transition-smooth);
}

.footer-mockup img:hover {
    transform: perspective(1000px) rotateY(0deg) translateY(-5px);
}

.footer-text {
    flex: 1;
}

.footer-heading {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 15px;
    line-height: 1.1;
}

.footer-sub {
    font-size: 1.2rem;
    color: var(--text-muted);
}

/* =========================================
   FOOTER GLOBALE (Allineato al sito principale)
   ========================================= */
.main-footer { 
    background-color: #08090A; 
    padding: 60px 0 30px 0; 
    border-top: 1px solid #1A1C23; 
    margin-top: 60px;
}
.footer-content { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 40px; 
}
.footer-brand h2 { 
    font-size: 2rem; 
    color: #fff; 
    margin-bottom: 5px; 
}
.footer-brand p { 
    color: var(--text-muted); 
    font-size: 0.9rem; 
    margin: 0; 
}
.footer-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.footer-links a { 
    color: var(--text-muted); 
    font-size: 0.9rem;
    font-weight: 500; 
    text-decoration: none;
    transition: color 0.3s ease;
    margin: 0;
}
.footer-links a:hover { 
    color: var(--accent-oro); 
}
.footer-bottom { 
    border-top: 1px solid #111; 
    padding-top: 30px; 
    color: #555; 
    font-size: 0.8rem; 
    text-align: center;
    margin-top: 0;
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 900px) {
    .footer-grid {
        flex-direction: column;
        text-align: center;
    }
    .footer-mockup {
        justify-content: center;
        margin-bottom: 40px;
    }
    .cta-group-left {
        align-items: center;
    }
}

/* Nav toggle button base (hidden on desktop) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}
.nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--accent-oro);
    transition: var(--transition-smooth);
}

@media (max-width: 768px) {
    .hero { min-height: 80vh; }
    .author-grid {
        flex-direction: column;
        text-align: center;
    }
    .author-info .accent-line {
        margin: 1rem auto 2rem auto;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .footer-links a {
        margin-left: 0;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }
    .footer-heading {
        font-size: 2.2rem;
    }
    .sticky-cta {
        bottom: 20px;
        right: 20px;
        /* Assicurarsi che non copra contenuti interattivi */
        z-index: 99;
    }
    
    /* MOBILE MENU FIXES */
    .nav-toggle {
        display: flex;
    }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 320px;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 24px;
        padding: 100px 30px;
        transition: right 0.3s ease;
        z-index: 999;
        background-color: rgba(10, 10, 10, 0.98);
        border-left: 1px solid rgba(255,255,255,0.05);
    }
    .nav-links.open {
        right: 0;
    }
    
    /* Enforce single column for grids */
    .pillars-grid, .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    /* Fix forms to prevent iOS zoom */
    input, select, textarea {
        font-size: 16px !important;
        width: 100%;
    }
}

/* =========================================
   ANIMATIONS (JS OBSERVER TRIGGERED)
   ========================================= */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.5s; }
