:root {
    --gold-primary: #D4AF37;
    --gold-soft: #E3C86E;
    --deep-gold: #B18700;
    --bg-black: #0F0F10;
    --bg-charcoal: #161616;
    --bg-ink: #1D1C1A;
    --text-white: #F7F3F8;
    --text-muted: rgba(247, 243, 248, 0.68);
    --font-serif: 'Cinzel', serif;
    --font-sans: 'Manrope', sans-serif;
    
    /* Spacing fluido */
    --spacing-xs: clamp(0.5rem, 1vw, 0.75rem);
    --spacing-sm: clamp(1rem, 2vw, 1.5rem);
    --spacing-md: clamp(1.5rem, 3vw, 2.5rem);
    --spacing-lg: clamp(2rem, 4vw, 4rem);
    --spacing-xl: clamp(3rem, 6vw, 6rem);
    --spacing-xxl: clamp(4rem, 8vw, 8rem);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

html { 
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background: radial-gradient(1200px 600px at 10% 0%, #1b1a17 0%, transparent 60%),
                radial-gradient(1000px 700px at 100% 20%, #141211 0%, transparent 55%),
                var(--bg-black);
    color: var(--text-white);
    font-family: var(--font-sans);
    line-height: 1.7;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 5rem clamp(1rem, 5vw, 5rem);
    width: 100%;
}

.gold-text { color: var(--gold-primary); }
.muted { color: var(--text-muted); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: clamp(12px, 2vw, 16px) clamp(24px, 4vw, 40px);
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: clamp(1px, 0.2vw, 2px);
    transition: transform 0.35s ease, background 0.35s ease, color 0.35s ease;
    cursor: pointer;
    background: transparent;
    font-size: clamp(0.75rem, 1.5vw, 0.85rem);
    font-weight: 400;
    white-space: nowrap;
    min-height: 48px; /* Touch-friendly */
}

.btn:hover {
    background: var(--gold-primary);
    color: var(--bg-black);
    transform: translateY(-2px);
}

.btn-filled {
    background: var(--gold-primary);
    color: var(--bg-black);
}

/* CTA Group for buttons */
.cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    align-items: center;
}

/* Nav styles moved to header-nav.js web component */

.hero {
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height per mobile */
    display: flex;
    align-items: center;
    padding: clamp(100px, 15vh, 140px) 0 clamp(40px, 8vh, 80px);
    background: linear-gradient(120deg, rgba(12,12,12,0.9) 35%, rgba(12,12,12,0.5) 60%, transparent 75%),
                url('hero_image.webp') center/cover no-repeat;
    background-attachment: fixed;
}

.hero-content {
    max-width: 820px;
    width: 100%;
}

.hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 8vw, 6.2rem);
    line-height: 1.1;
    margin-bottom: clamp(16px, 3vw, 22px);
    font-weight: 600;
}

.hero p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin-bottom: clamp(24px, 4vw, 40px);
    max-width: 640px;
    line-height: 1.6;
}

section {
    padding: clamp(60px, 12vw, 120px) 0;
}

.section-tag {
    font-size: clamp(0.7rem, 1.5vw, 0.8rem);
    text-transform: uppercase;
    letter-spacing: clamp(3px, 1vw, 6px);
    color: var(--gold-primary);
    display: block;
    margin-bottom: clamp(12px, 2vw, 20px);
    font-weight: 500;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
    gap: clamp(30px, 6vw, 80px);
    align-items: center;
}

.story-visual {
    background: url('./imgs/10.jpeg') center/cover;
    background-position: top;
    height: clamp(400px, 60vw, 640px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.quote-card {
    position: absolute;
    bottom: clamp(12px, 3vw, 24px);
    left: clamp(12px, 3vw, 24px);
    right: clamp(12px, 3vw, auto);
    max-width: min(90%, 360px);
    background: rgba(18, 18, 18, 0.92);
    backdrop-filter: blur(8px);
    border-left: 3px solid var(--gold-primary);
    padding: clamp(14px, 3vw, 20px) clamp(16px, 3vw, 24px);
    font-style: italic;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.quote-card strong { 
    font-style: normal;
    font-weight: 500;
}

.stats-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: clamp(12px, 2vw, 20px);
    margin-top: clamp(24px, 4vw, 40px);
}

.stat {
    padding: clamp(18px, 3vw, 26px);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 4px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.stat:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.04);
}

.stat h3 {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 6px;
    font-weight: 600;
}

.stat p {
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
}

.franchising {
    background: linear-gradient(180deg, #131313 0%, #0f0f10 100%);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: clamp(16px, 2vw, 20px);
    margin-top: clamp(40px, 6vw, 60px);
}

.feature-item {
    background: var(--bg-charcoal);
    padding: clamp(24px, 4vw, 36px);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 4px;
    transition: transform 0.35s ease, border 0.35s ease;
}

.feature-item:hover {
    transform: translateY(-8px);
    border-color: rgba(212, 175, 55, 0.5);
}

.feature-item h3 {
    font-family: var(--font-serif);
    font-size: clamp(1.2rem, 2.5vw, 1.4rem);
    margin-bottom: clamp(12px, 2vw, 16px);
    color: var(--gold-soft);
    font-weight: 600;
}

.feature-item ul {
    list-style: none;
    font-size: clamp(0.85rem, 1.8vw, 0.95rem);
    color: var(--text-muted);
}

.feature-item li {
    margin-bottom: clamp(8px, 1.5vw, 10px);
    position: relative;
    padding-left: 22px;
    line-height: 1.6;
}

.feature-item li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--gold-primary);
}

.methodology {
    background: var(--bg-ink);
}

.method-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: clamp(20px, 3vw, 30px);
    margin-top: clamp(40px, 6vw, 60px);
}

.method-card {
    text-align: center;
    padding: clamp(24px, 4vw, 32px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    background: rgba(0, 0, 0, 0.25);
    border-radius: 4px;
    transition: transform 0.3s ease, border 0.3s ease;
}

.method-card:hover {
    transform: translateY(-6px);
    border-color: rgba(212, 175, 55, 0.4);
}

.method-circle {
    width: clamp(90px, 15vw, 110px);
    height: clamp(90px, 15vw, 110px);
    border: 2px solid var(--gold-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto clamp(16px, 3vw, 24px);
    font-family: var(--font-serif);
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    font-weight: 600;
}

.method-card h3 {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    margin-bottom: clamp(8px, 1.5vw, 12px);
    font-weight: 600;
}

.method-card p {
    font-size: clamp(0.85rem, 1.6vw, 0.95rem);
}

.product-highlight {
    background: linear-gradient(135deg, #0f0f10 0%, #171513 50%, #0f0f10 100%);
}

.product-banner {
    padding: clamp(40px, 8vw, 80px);
    text-align: center;
    border: 1px solid rgba(212, 175, 55, 0.25);
    background: rgba(20, 20, 20, 0.6);
    border-radius: 4px;
}

.product-banner h2 {
    font-size: clamp(2rem, 5vw, 3rem);
}

.product-banner p {
    font-size: clamp(0.95rem, 2vw, 1.05rem);
}

/* Footer styles moved to footer-component.js web component */

/* Timeline Styles per sezione Premi */
.timeline {
    max-width: 900px;
    margin: 0 auto;
}

.timeline-wrapper {
    border-left: 2px solid var(--gold-primary);
    padding-left: clamp(20px, 4vw, 40px);
    position: relative;
}

.timeline-item {
    margin-bottom: clamp(30px, 5vw, 50px);
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-year {
    font-family: var(--font-serif);
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    color: var(--gold-primary);
    display: block;
    margin-bottom: clamp(4px, 1vw, 8px);
    font-weight: 600;
}

.timeline-title {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    margin-bottom: clamp(4px, 1vw, 8px);
    font-weight: 500;
}

.timeline-description {
    font-size: clamp(0.85rem, 1.6vw, 0.95rem);
}

/* Quote/Blockquote Styles */
.philosophy-section {
    background: linear-gradient(135deg, #0f0f10 0%, #1a1612 100%);
}

.philosophy-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.philosophy-quote {
    border-left: 3px solid var(--gold-primary);
    padding-left: clamp(16px, 3vw, 30px);
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    line-height: 1.7;
    font-style: italic;
    margin-bottom: clamp(12px, 2vw, 20px);
    text-align: left;
}

/* Academy Info Box */
.academy-info {
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: clamp(30px, 5vw, 50px);
    margin-top: clamp(40px, 6vw, 60px);
    text-align: center;
    border-radius: 4px;
}

.academy-info h3 {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: clamp(16px, 2vw, 20px);
    font-weight: 600;
}

.academy-info p {
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    line-height: 1.7;
}

/* Utility Classes */
.text-center { text-align: center; }
.max-w-sm { max-width: 640px; margin-left: auto; margin-right: auto; }
.max-w-md { max-width: 820px; margin-left: auto; margin-right: auto; }
.max-w-lg { max-width: 900px; margin-left: auto; margin-right: auto; }

/* ========================================
   MEDIA QUERIES - Mobile First Approach
   ======================================== */

/* Mobile Small (320px - 479px) */
@media (max-width: 479px) {
    html { font-size: 14px; }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .cta-group {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-group .btn {
        margin-left: 0 !important;
    }
    
    .timeline-wrapper {
        padding-left: 20px;
    }
    
    .timeline-dot {
        left: -24px;
    }
    
    .story-visual {
        height: 300px;
    }
}

/* Mobile (480px - 767px) */
@media (min-width: 480px) and (max-width: 767px) {
    html { font-size: 15px; }
    
    .story-visual {
        height: 350px;
    }
}

/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    html { font-size: 16px; }
    
    .hero {
        background-attachment: scroll; /* Migliore performance su tablet */
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .method-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop Small (1024px - 1199px) */
@media (min-width: 1024px) {
    .grid-2 {
        grid-template-columns: 1fr 1fr;
    }
    
    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .method-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .stats-strip {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop (1200px - 1599px) */
@media (min-width: 1200px) {
    html { font-size: 16px; }
}

/* Large Desktop (1600px - 2559px) */
@media (min-width: 1600px) {
    html { font-size: 17px; }
    
    .container {
        max-width: 1800px;
    }
    
    section {
        padding: 140px 0;
    }
    
    .hero {
        padding: 160px 0 100px;
    }
}

/* 4K and Ultra-Wide (2560px+) */
@media (min-width: 2560px) {
    html { font-size: 20px; }
    
    .container {
        max-width: 2200px;
    }
    
    section {
        padding: 160px 0;
    }
    
    .hero {
        min-height: 90vh;
        padding: 180px 0 120px;
    }
    
    .hero h1 {
        font-size: 7rem;
    }
    
    .hero p {
        font-size: 1.5rem;
    }
    
    .story-visual {
        height: 800px;
    }
    
    .stat h3 {
        font-size: 2.5rem;
    }
    
    .method-circle {
        width: 140px;
        height: 140px;
        font-size: 2rem;
    }
    
    .feature-item {
        padding: 48px;
    }
    
    .product-banner {
        padding: 120px;
    }
}

/* 8K Displays (3840px+) */
@media (min-width: 3840px) {
    html { font-size: 24px; }
    
    .container {
        max-width: 3000px;
    }
    
    section {
        padding: 200px 0;
    }
}

/* Print Styles */
@media print {
    * {
        background: white !important;
        color: black !important;
    }
    
    .hero {
        background: none !important;
    }
    
    header-nav,
    mobile-menu,
    .btn {
        display: none !important;
    }
}

/* Gallery Section */
.gallery-section {
    background: var(--bg-charcoal);
    padding: clamp(60px, 10vw, 100px) 0;
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(20px, 2.5vw, 30px);
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 1;
    background: var(--bg-ink);
}

.gallery-item-large {
    /* Tutti gli elementi hanno la stessa dimensione */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive Gallery */
@media (max-width: 768px) {
    .photo-gallery {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: clamp(12px, 2vw, 16px);
    }
}

@media (max-width: 480px) {
    .photo-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* Reduce Motion per Accessibilità */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .hero {
        background-attachment: scroll;
    }
}

/* Dark Mode Support (già dark di default) */
@media (prefers-color-scheme: light) {
    /* Opzionale: variante light se necessario in futuro */
}

/* High Contrast Mode per Accessibilità */
@media (prefers-contrast: high) {
    :root {
        --gold-primary: #FFD700;
        --text-white: #FFFFFF;
    }
    
    .btn,
    .feature-item,
    .method-card,
    .stat {
        border-width: 2px;
    }
}