/* ========================================
   FONDERIA TREVISO - Stylesheet
   Tema: Carbonio Ardente
   ======================================== */

:root {
    --color-bg: #060606;
    --color-bg-alt: #0d0a07;
    --color-surface: #141210;
    --color-text: #f0ebe3;
    --color-text-muted: #8a8278;
    --color-primary: #c45d26;
    --color-primary-dark: #a0441a;
    --color-accent: #ff6b1a;
    --color-fire-glow: rgba(196, 93, 38, 0.4);
    --color-white: #ffffff;
    --font-heading: 'Space Grotesk', 'Oswald', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c45d26' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* overflow-x a livello radice: senza, un contenuto largo (griglie min-content,
   regioni di scroll) espande la layout viewport e Safari iOS rimpicciolisce
   TUTTA la pagina (shrink-to-fit). clip non crea scroll container (sticky safe). */
html, body {
    overflow-x: clip;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   NAVBAR
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s var(--transition-smooth);
}

.navbar.scrolled {
    background: rgba(6, 6, 6, 0.92);
    backdrop-filter: blur(20px);
    padding: 12px 0;
    border-bottom: 1px solid rgba(196, 93, 38, 0.15);
    box-shadow: 0 0 30px rgba(196, 93, 38, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.nav-logo:hover img {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-menu a {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text);
    position: relative;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s var(--transition-smooth);
    box-shadow: 0 0 8px var(--color-fire-glow);
}

.nav-menu a:hover {
    color: var(--color-primary);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--color-text);
    transition: all 0.3s ease;
}

/* ========================================
   HERO
   ======================================== */

.hero {
    position: relative;
    height: 100vh;
    /* mobile: vh include la toolbar del browser; svh/dvh la compensano */
    height: 100svh;
    height: 100dvh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video-container {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(6, 6, 6, 0.35) 0%,
        rgba(6, 6, 6, 0.7) 50%,
        rgba(6, 6, 6, 0.95) 100%
    );
    z-index: 2;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(196, 93, 38, 0.15) 100%);
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 48px 40px;
    max-width: 900px;
    background: rgba(6, 6, 6, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 16px;
    border: 1px solid rgba(196, 93, 38, 0.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(196, 93, 38, 0.08);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 0.95;
    margin-bottom: 24px;
    color: var(--color-white);
}

.hero-title .line {
    display: block;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 1s var(--transition-smooth) forwards;
}

.hero-title .line:nth-child(1) { animation-delay: 0.3s; }
.hero-title .line:nth-child(2) { animation-delay: 0.5s; }
.hero-title .line:nth-child(3) { animation-delay: 0.7s; }

.hero-title .line-small {
    font-family: var(--font-heading);
    font-size: clamp(0.9rem, 2vw, 1.3rem);
    font-weight: 500;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: 8px;
    color: var(--color-primary);
}

.hero-title .line-big {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3.5rem, 12vw, 9rem);
    font-weight: 400;
    letter-spacing: 0.06em;
    line-height: 0.85;
    margin-top: 4px;
    color: #ffffff;
    opacity: 1;
    transform: translateY(0);
    text-shadow:
        0 3px 0 rgba(0,0,0,0.7),
        0 0 30px rgba(196, 93, 38, 0.5),
        0 0 80px rgba(255, 107, 26, 0.2);
    animation: forgeGlow 3s ease-in-out infinite alternate;
    -webkit-text-stroke: 1.5px rgba(0,0,0,0.3);
}

@keyframes forgeGlow {
    0% { text-shadow: 0 2px 0 rgba(0,0,0,0.6), 0 0 15px rgba(196,93,38,0.35), 0 0 40px rgba(255,107,26,0.1); }
    100% { text-shadow: 0 2px 0 rgba(0,0,0,0.6), 0 0 25px rgba(196,93,38,0.5), 0 0 60px rgba(255,107,26,0.2); }
}



.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    font-weight: 300;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 48px;
    animation: fadeInUp 1s var(--transition-smooth) 1s forwards;
    opacity: 0;
}

/* ========================================
   HERO BADGE - Apertura stagione
   ======================================== */

.hero-badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
    border-radius: 50px;
    padding: 10px 24px;
    margin: -20px 0 28px;
    background: rgba(255, 107, 26, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 0 30px rgba(255, 107, 26, 0.15);
    animation: fadeInUp 1s var(--transition-smooth) 1.1s forwards, heroBadgePulse 2.4s ease-in-out 2.2s infinite;
    opacity: 0;
}

@keyframes heroBadgePulse {
    0%, 100% { box-shadow: 0 0 30px rgba(255, 107, 26, 0.15); }
    50% { box-shadow: 0 0 45px rgba(255, 107, 26, 0.35); }
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s var(--transition-smooth) 1.2s forwards;
    opacity: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.4s var(--transition-smooth);
    position: relative;
    overflow: hidden;
    border: none;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-bg);
    box-shadow: 0 0 20px rgba(196, 93, 38, 0.3);
}

.btn-primary:hover {
    background: var(--color-accent);
    box-shadow: 0 0 40px rgba(255, 107, 26, 0.5);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--color-text);
    border: 1px solid rgba(240, 235, 227, 0.3);
}

.btn-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: 0 0 20px rgba(196, 93, 38, 0.15);
    transform: translateY(-2px);
}

.hero-social {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    animation: fadeInUp 1s var(--transition-smooth) 1.4s forwards;
    opacity: 0;
}

.hero-social a {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(240, 235, 227, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    transition: all 0.3s ease;
}

.hero-social a:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: 0 0 20px rgba(196, 93, 38, 0.3);
    transform: translateY(-3px);
}

.hero-social svg {
    width: 20px;
    height: 20px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 3;
    animation: fadeInUp 1s var(--transition-smooth) 1.8s forwards;
    opacity: 0;
}

.scroll-indicator span {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.scroll-indicator .mouse {
    width: 24px;
    height: 36px;
    border: 1px solid rgba(240, 235, 227, 0.3);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator .mouse::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 2px;
    animation: scrollMouse 2s ease infinite;
    box-shadow: 0 0 8px var(--color-fire-glow);
}

@keyframes scrollMouse {
    0% { top: 8px; opacity: 1; }
    50% { top: 18px; opacity: 0.5; }
    100% { top: 8px; opacity: 1; }
}

/* Heat haze overlay */
.heat-haze {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 0.15;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='h'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.015' numOctaves='2' result='t'/%3E%3CfeDisplacementMap in='SourceGraphic' in2='t' scale='10' xChannelSelector='R' yChannelSelector='G'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23h)' opacity='0'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
    animation: hazeShift 8s ease-in-out infinite alternate;
}

@keyframes hazeShift {
    0% { opacity: 0.08; }
    100% { opacity: 0.18; }
}

/* ========================================
   SECTION HEADERS
   ======================================== */

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 16px;
    position: relative;
}

.section-label::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--color-primary);
    margin: 12px auto 0;
    box-shadow: 0 0 10px var(--color-fire-glow);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.2;
}

/* ========================================
   ABOUT
   ======================================== */

.about {
    background: var(--color-bg-alt);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(to bottom, var(--color-bg), transparent);
    pointer-events: none;
    z-index: 2;
}

.about-grid {
    display: grid;
    /* minmax(0,..): i grid item hanno min-width:auto e il min-content
       (es. la riga statistiche) forzava il track a ~406px anche su mobile */
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 80px;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid rgba(240, 235, 227, 0.08);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    text-shadow: 0 0 20px var(--color-fire-glow);
}

.stat-label {
    font-size: 13px;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
    margin-top: 4px;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 8px;
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.about-image-accent {
    position: absolute;
    top: 20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--color-primary);
    border-radius: 8px;
    z-index: -1;
    opacity: 0.25;
    filter: drop-shadow(0 0 10px var(--color-fire-glow));
}

/* ========================================
   EXPERIENCE
   ======================================== */

.experience {
    background: var(--color-bg);
    position: relative;
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
}

.exp-card {
    background: var(--color-surface);
    border: 1px solid rgba(240, 235, 227, 0.05);
    border-radius: 12px;
    padding: 48px 32px;
    text-align: center;
    transition: all 0.4s var(--transition-smooth);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.exp-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(196, 93, 38, 0.06), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
}

.exp-card:hover::before {
    left: 100%;
}

.exp-card:hover {
    transform: translateY(-8px) rotateX(2deg) rotateY(-2deg);
    border-color: rgba(196, 93, 38, 0.25);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(196, 93, 38, 0.1);
}

.exp-card:hover .exp-icon {
    color: var(--color-accent);
    text-shadow: 0 0 20px rgba(255, 107, 26, 0.5);
}

.exp-icon {
    font-size: 2.5rem;
    margin-bottom: 24px;
    color: var(--color-primary);
    transition: all 0.4s ease;
    text-shadow: 0 0 10px rgba(196, 93, 38, 0.2);
}

.exp-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--color-white);
}

.exp-card p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ========================================
   MENU PREVIEW
   ======================================== */

.menu-preview {
    background: var(--color-bg-alt);
    position: relative;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.menu-card {
    background: var(--color-surface);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(240, 235, 227, 0.05);
    transition: all 0.4s ease;
    position: relative;
}

.menu-card:hover {
    transform: translateY(-6px);
    border-color: rgba(196, 93, 38, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(196, 93, 38, 0.08);
}

.menu-card img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.menu-card:hover img {
    transform: scale(1.08);
}

.menu-card-body {
    padding: 24px;
}

.menu-card-body h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 6px;
}

.menu-card-body p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 12px;
}

.menu-card-body .price {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary);
    text-shadow: 0 0 10px rgba(196, 93, 38, 0.2);
}

.menu-cta {
    text-align: center;
    margin-top: 48px;
}

/* ========================================
   PROGRAMMA SERATE
   ======================================== */

.programma {
    background: var(--color-bg);
    position: relative;
}

.programma-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.programma-card {
    background: var(--color-surface);
    border-radius: 16px;
    padding: 48px;
    border: 1px solid rgba(240, 235, 227, 0.05);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.programma-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    opacity: 0.7;
    box-shadow: 0 0 20px var(--color-fire-glow);
}

.programma-card:hover {
    transform: translateY(-6px);
    border-color: rgba(196, 93, 38, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(196, 93, 38, 0.08);
}

.programma-card .day {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 8px;
    text-shadow: 0 0 20px var(--color-fire-glow);
}

.programma-card .tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 20px;
    padding: 4px 12px;
    border: 1px solid rgba(255, 107, 26, 0.3);
    border-radius: 4px;
    background: rgba(255, 107, 26, 0.05);
}

.programma-card p {
    color: var(--color-text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
}

.programma-card ul {
    list-style: none;
    margin-top: 16px;
}

.programma-card ul li {
    padding: 8px 0;
    color: var(--color-text);
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(240, 235, 227, 0.05);
    display: flex;
    align-items: center;
    gap: 10px;
}

.programma-card ul li::before {
    content: '\\2726';
    color: var(--color-primary);
    font-size: 0.7rem;
}

/* ========================================
   GALLERY
   ======================================== */

.gallery {
    background: var(--color-bg-alt);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4 / 3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s var(--transition-smooth);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6, 6, 6, 0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
}

/* ========================================
   SHARE — Condividi (gallery + eventi)
   ======================================== */

.gallery-cell {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gallery-cell .gallery-item {
    flex: 1;
}

.share-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.event-card-body .share-row {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(240, 235, 227, 0.07);
}

.share-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-right: 2px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(240, 235, 227, 0.14);
    background: rgba(240, 235, 227, 0.04);
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 0;
}

.share-btn svg {
    width: 15px;
    height: 15px;
}

.share-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
}

.share-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(16px);
    background: var(--color-surface);
    border: 1px solid rgba(196, 93, 38, 0.4);
    border-radius: 999px;
    padding: 12px 24px;
    color: var(--color-text);
    font-size: 0.85rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    z-index: 3000;
    max-width: 90vw;
    text-align: center;
    pointer-events: none;
}

.share-toast.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Fallback embed Instagram bloccati (ad-blocker / privacy tool) */
.ig-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 100%;
    min-height: 300px;
    background: linear-gradient(160deg, rgba(196, 93, 38, 0.16), rgba(6, 6, 6, 0.6));
    border: 1px dashed rgba(196, 93, 38, 0.35);
    border-radius: 8px;
    padding: 24px;
    text-align: center;
}

.ig-fallback svg {
    width: 34px;
    height: 34px;
    color: var(--color-primary);
}

.ig-fallback span {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.ig-fallback a {
    display: inline-block;
    margin-top: 6px;
    padding: 10px 22px;
    border-radius: 999px;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.25s ease;
}

.ig-fallback a:hover {
    background: var(--color-primary);
    color: var(--color-bg);
}

.ig-blocked-note {
    margin-top: 18px;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-align: center;
}

.ig-blocked-note a {
    color: var(--color-primary);
    text-decoration: none;
    border-bottom: 1px dotted var(--color-primary);
}

/* ========================================
   EVENTS
   ======================================== */

.events {
    background: var(--color-bg);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.event-card {
    background: var(--color-surface);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(240, 235, 227, 0.05);
    transition: all 0.4s ease;
    position: relative;
}

.event-card:hover {
    transform: translateY(-6px);
    border-color: rgba(196, 93, 38, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(196, 93, 38, 0.08);
}

.event-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.event-card:hover img {
    transform: scale(1.05);
}

.event-card-body {
    padding: 24px;
}

.event-card-body .date {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 8px;
    text-shadow: 0 0 8px rgba(196, 93, 38, 0.2);
}

.event-card-body h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 12px;
}

.event-card-body p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ========================================
   INSTAGRAM
   ======================================== */

.insta-embed-section {
    background: var(--color-bg-alt);
    padding: 100px 0;
}

/* ========================================
   CONTACT / FOOTER
   ======================================== */

.contact {
    background: var(--color-bg);
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 24px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-info-item svg {
    width: 22px;
    height: 22px;
    color: var(--color-primary);
    flex-shrink: 0;
    margin-top: 2px;
    filter: drop-shadow(0 0 6px var(--color-fire-glow));
}

.contact-info-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 4px;
}

.contact-info-item p,
.contact-info-item a {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.contact-info-item a:hover {
    color: var(--color-primary);
}

.contact-map {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(240, 235, 227, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.contact-map iframe {
    width: 100%;
    height: 400px;
    border: none;
    filter: grayscale(0.6) contrast(1.1);
}

/* FAQ */
.faq {
    background: var(--color-bg-alt);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid rgba(240, 235, 227, 0.08);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    background: none;
    border: none;
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--color-primary);
}

.faq-question svg {
    width: 20px;
    height: 20px;
    color: var(--color-primary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding-bottom: 24px;
}

.faq-answer p {
    color: var(--color-text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
}

.faq-answer a {
    color: var(--color-primary);
    text-decoration: underline;
}

/* Footer */
.footer {
    background: var(--color-bg);
    position: relative;
    padding: 80px 0 0;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    opacity: 0.4;
    box-shadow: 0 0 20px var(--color-fire-glow);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand img {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
    margin-bottom: 20px;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    max-width: 300px;
}

.footer-links h4,
.footer-contact h4,
.footer-social h4 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 24px;
    letter-spacing: 0.05em;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-contact p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.footer-contact a {
    color: var(--color-primary);
    font-weight: 500;
}

.footer-contact a:hover {
    text-decoration: underline;
}

.footer-social .social-links {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(240, 235, 227, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: 0 0 15px rgba(196, 93, 38, 0.2);
    transform: translateY(-2px);
}

.footer-social svg {
    width: 18px;
    height: 18px;
}

.footer-bottom {
    border-top: 1px solid rgba(240, 235, 227, 0.06);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* ========================================
   SOUND TOGGLE
   ======================================== */

.sound-toggle {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-surface);
    border: 1px solid rgba(240, 235, 227, 0.1);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(196, 93, 38, 0.1);
}

.sound-toggle:hover {
    border-color: var(--color-primary);
    box-shadow: 0 0 25px rgba(196, 93, 38, 0.3);
    transform: scale(1.1);
}

.sound-toggle.active {
    animation: soundPulse 2s ease-in-out infinite;
}

@keyframes soundPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(196, 93, 38, 0.4); }
    50% { box-shadow: 0 0 0 12px rgba(196, 93, 38, 0); }
}

.sound-toggle svg {
    width: 20px;
    height: 20px;
}

/* ========================================
   SPOTLIGHT CURSOR (global)
   ======================================== */

.spotlight-cursor {
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    background: radial-gradient(circle 350px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(196, 93, 38, 0.04), transparent 70%);
    transition: background 0.1s linear;
}

/* ========================================
   DIVIDERS
   ======================================== */

.section-divider {
    position: relative;
    height: 80px;
    overflow: hidden;
    background: var(--color-bg);
}

.section-divider svg {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 80px;
}

.section-divider .divider-fill {
    fill: var(--color-bg-alt);
}

.section-divider.alt .divider-fill {
    fill: var(--color-bg);
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Glitch */
.hero-title .line.glitch::before {
    animation: glitch1 0.3s ease forwards;
    color: var(--color-accent);
    z-index: -1;
}

.hero-title .line.glitch::after {
    animation: glitch2 0.3s ease forwards;
    color: var(--color-primary);
    z-index: -2;
}

@keyframes glitch1 {
    0% { opacity: 0; clip-path: inset(40% 0 60% 0); transform: translate(-3px, 0); }
    20% { opacity: 0.8; clip-path: inset(20% 0 50% 0); transform: translate(3px, 0); }
    40% { opacity: 0.4; clip-path: inset(60% 0 20% 0); transform: translate(-2px, 0); }
    60% { opacity: 0.8; clip-path: inset(30% 0 40% 0); transform: translate(2px, 0); }
    80% { opacity: 0.3; clip-path: inset(50% 0 30% 0); transform: translate(-1px, 0); }
    100% { opacity: 0; clip-path: inset(0 0 0 0); transform: translate(0, 0); }
}

@keyframes glitch2 {
    0% { opacity: 0; clip-path: inset(60% 0 30% 0); transform: translate(3px, 0); }
    20% { opacity: 0.6; clip-path: inset(40% 0 20% 0); transform: translate(-3px, 0); }
    40% { opacity: 0.3; clip-path: inset(20% 0 60% 0); transform: translate(2px, 0); }
    60% { opacity: 0.7; clip-path: inset(50% 0 40% 0); transform: translate(-2px, 0); }
    80% { opacity: 0.2; clip-path: inset(30% 0 50% 0); transform: translate(1px, 0); }
    100% { opacity: 0; clip-path: inset(0 0 0 0); transform: translate(0, 0); }
}

/* Neon button glow */
.btn-primary::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, var(--color-primary), var(--color-accent), var(--color-primary));
    background-size: 200% 200%;
    border-radius: 6px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: neonGlow 3s ease infinite;
}

.btn-primary:hover::before {
    opacity: 0.5;
}

@keyframes neonGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* FAQ glow */
.faq-item.active {
    border-color: rgba(196, 93, 38, 0.2);
    box-shadow: 0 0 30px rgba(196, 93, 38, 0.05);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .experience-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    /* su schermi bassi (telefono in landscape) 700px fissi tagliavano il contenuto */
    .hero {
        min-height: 480px;
    }
    .hero-content {
        padding: 32px 20px;
    }
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        height: 100dvh;
        background: rgba(6, 6, 6, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 100px 40px;
        gap: 24px;
        transition: right 0.4s var(--transition-smooth);
        z-index: 999;
        border-left: 1px solid rgba(196, 93, 38, 0.1);
    }
    .nav-menu.active {
        right: 0;
    }
    .about-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 48px;
    }
    /* 4 statistiche in fila debordano a dx su 390px (il 4° restava tagliato):
       su mobile diventano griglia 2x2 */
    .about-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 28px 16px;
        margin-top: 36px;
        padding-top: 36px;
    }
    /* iOS zooma da solo al focus su input con font < 16px */
    input, select, textarea {
        font-size: 16px;
    }
    .experience-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .exp-card {
        padding: 32px 24px;
    }
    .menu-grid {
        grid-template-columns: 1fr;
    }
    .programma-grid {
        grid-template-columns: 1fr;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .events-grid {
        grid-template-columns: 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .spotlight-cursor {
        display: none;
    }
}

@media (max-width: 480px) {
    .experience-grid {
        grid-template-columns: 1fr;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .hero-title .line-big {
        font-size: 1.2em;
    }
    .btn {
        padding: 14px 28px;
        font-size: 12px;
    }
}

/* Domain text styling */
.nav-domain {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: lowercase;
    color: var(--color-primary);
    margin-left: 12px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}
.nav-logo:hover .nav-domain {
    opacity: 1;
}

.footer-domain {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--color-primary);
    margin: 8px 0;
    text-transform: lowercase;
}

@media (max-width: 768px) {
    .nav-domain {
        display: none;
    }
}
