﻿/* Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â
   SEZIONE 1 â€” CSS
   Prefisso: .s1- / #s1-
   Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â */

/* â”€â”€ Contenitore principale â”€â”€ */
#s-section1 {
    height: 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    overflow: hidden;
    background: var(--black);
}

/* â”€â”€ Carosello â”€â”€ */
#s1-carousel {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

#s1-track {
    display: flex;
    height: 100%;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.s1-slide {
    width: 100vw;
    min-width: 100vw;
    height: 100%;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--black);
}

/* Slide 6 â€” scroll interno (canvas + tech) */
#s1-s6 {
    overflow-y: auto;
    overflow-x: hidden;
    align-items: center;
    scrollbar-width: thin;
    scrollbar-color: rgba(196,97,42,0.3) transparent;
}
#s1-s6::-webkit-scrollbar { width: 3px; }
#s1-s6::-webkit-scrollbar-track { background: transparent; }
#s1-s6::-webkit-scrollbar-thumb { background: rgba(196,97,42,0.3); border-radius: 2px; }

/* â”€â”€ Frecce navigazione â”€â”€ */
.s1-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
    width: 52px;
    height: 52px;
    background: rgba(8,8,8,0.85);
    border: 1px solid rgba(245,237,224,0.12);
    color: rgba(245,237,224,0.6);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s, background 0.3s, color 0.3s, opacity 0.3s;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.s1-arrow:hover {
    border-color: var(--terracotta);
    background: rgba(196,97,42,0.14);
    color: var(--terracotta);
}
.s1-arrow svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.5; }
#s1-prev { left: 1.2rem; }
#s1-next { right: 1.2rem; }
.s1-arrow[disabled] { opacity: 0.08; pointer-events: none; }

/* â”€â”€ Nav dots + counter â”€â”€ */
.s1-nav {
    position: absolute;
    bottom: 1.6rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 1.4rem;
}
.s1-dots-row { display: flex; gap: 0.55rem; align-items: center; }
.s1-dot {
    width: 5px;
    height: 5px;
    background: rgba(245,237,224,0.18);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}
.s1-dot.active {
    background: var(--terracotta);
    transform: scale(1.9);
}
#s1-counter {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.56rem;
    letter-spacing: 0.28em;
    color: rgba(245,237,224,0.18);
    text-transform: uppercase;
    white-space: nowrap;
}

/* Hint swipe mobile */
.s1-swipe-hint {
    position: absolute;
    bottom: 3.8rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 49;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.5rem;
    letter-spacing: 0.3em;
    color: rgba(245,237,224,0.1);
    text-transform: uppercase;
    white-space: nowrap;
    pointer-events: none;
    display: none;
}
@media (pointer: coarse) { .s1-swipe-hint { display: block; } }

/* â”€â”€ Tipografia comune â”€â”€ */
.s1-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62rem;
    letter-spacing: 0.35em;
    color: var(--terracotta);
    text-transform: uppercase;
    display: block;
    margin-bottom: 1rem;
}
.s1-slide-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2.2rem, 4vw, 4.5rem);
    font-weight: 300;
    line-height: 1.1;
    color: var(--cream);
    margin-bottom: 1.4rem;
}
.s1-slide-sub {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.25rem;
    line-height: 1.7;
    color: rgba(245,237,224,0.6);
    margin-bottom: 1rem;
}
.s1-body-text {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.05rem;
    line-height: 1.9;
    color: rgba(245,237,224,0.7);
    margin-bottom: 1.2rem;
}
.s1-caption {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 0.18em;
    color: rgba(245,237,224,0.25);
    text-transform: uppercase;
    display: block;
    margin-top: 1.2rem;
}
.s1-btn {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--cream);
    background: transparent;
    border: 1px solid rgba(245,237,224,0.22);
    padding: 0.7rem 1.8rem;
    cursor: pointer;
    transition: border-color 0.3s, background 0.3s;
    position: relative;
    overflow: hidden;
}
.s1-btn:hover {
    border-color: var(--terracotta);
    background: rgba(196,97,42,0.08);
}

/* â”€â”€ Layout a due colonne â”€â”€ */
.s1-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    height: 100%;
    gap: 0;
}
.s1-slide-col-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 4rem 4rem 5rem;
    overflow: hidden;
}
.s1-slide-col-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 5rem 4rem 3rem;
    overflow: hidden;
}

/* Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â SLIDE 1 Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â */
#s1-s1 { background: #060606; display: grid; grid-template-columns: 1fr 1fr; }
#s1-s1 .s1-slide-col-left { background: transparent; }
.s1-highlight {
    color: var(--terracotta);
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.6em;
    font-weight: 300;
    letter-spacing: -0.02em;
}
.s1-last-event {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: rgba(245,237,224,0.4);
    margin-top: 0.8rem;
    line-height: 1.7;
}
.s1-last-event span { color: rgba(245,237,224,0.7); }
.s1-fallback {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(245,237,224,0.45);
    border-left: 2px solid rgba(196,97,42,0.4);
    padding-left: 1rem;
    margin-top: 1rem;
    font-style: italic;
}
.s1-map-wrap {
    width: 100%;
    height: 72vh;
    border: 1px solid var(--terracotta);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}
.s1-map-hint {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.5rem;
    letter-spacing: 0.12em;
    color: rgba(245,237,224,0.25);
    margin-top: 0.6rem;
    text-align: center;
}
.s1-link {
    color: var(--terracotta);
    text-decoration: none;
    border-bottom: 1px solid rgba(196,97,42,0.4);
    transition: border-color 0.2s, color 0.2s;
}
.s1-link:hover { color: var(--ochre); border-color: var(--ochre); }
#s1-map { width: 100%; height: 100%; background: #060e18; touch-action: none; }
#s1-map-canvas { width: 100%; height: 100%; display: block; background: #080808; }
.s1-map-wrap { overscroll-behavior: contain; }
.s1-popup .leaflet-popup-content-wrapper {
    background: rgba(8,8,8,0.95);
    border: 1px solid rgba(196,97,42,0.35);
    border-radius: 2px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.7);
    color: var(--cream);
    padding: 0;
}
.s1-popup .leaflet-popup-tip { background: rgba(8,8,8,0.95); }
.s1-popup .leaflet-popup-content { margin: 0; }
.s1-popup-inner { padding: 0.9rem 1.1rem; min-width: 180px; }
.s1-popup-mag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--terracotta);
    letter-spacing: -0.02em;
    display: block;
    margin-bottom: 0.4rem;
}
.s1-popup-loc {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 0.95rem;
    color: var(--cream);
    display: block;
    margin-bottom: 0.3rem;
}
.s1-popup-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 0.1em;
    color: rgba(245,237,224,0.35);
    text-transform: uppercase;
    display: block;
}

/* Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â SLIDE 2 Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â */
#s1-s2 { background: var(--charcoal); display: flex; }
.s1-def-text {
    flex: 0 0 44%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4.5rem 3rem 3rem 5rem;
    border-right: 1px solid rgba(245,237,224,0.05);
}
.s1-def-visual {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 2.5rem 2rem 1.5rem;
    gap: 1.5rem;
}
.s1-branch-svg-wrap { width: 100%; max-width: none; }
.s1-branch-svg { width: 100%; height: auto; overflow: visible; }
.s1-branch-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: none;
}

/* â”€â”€ Reid popup â”€â”€ */
.s1-reid-trigger {
    background: none; border: none; padding: 0;
    font: inherit; display: inline;
    color: var(--terracotta);
    cursor: pointer;
    border-bottom: 1px solid rgba(196,97,42,0.45);
    transition: color 0.2s, border-color 0.2s;
}
.s1-reid-trigger:hover { color: var(--ochre); border-color: var(--ochre); }
.s1-reid-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 980;
    display: none;
}
.s1-reid-overlay.open { display: block; }
.s1-reid-popup {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 981;
    background: #0c0e14;
    border: 1px solid rgba(196,97,42,0.4);
    border-radius: 3px;
    padding: 2rem 2.2rem;
    max-width: 420px;
    width: calc(100vw - 4rem);
    box-shadow: 0 12px 48px rgba(0,0,0,0.8);
    display: none;
}
.s1-reid-popup.open { display: block; }
.s1-reid-popup-close {
    position: absolute; top: 0.8rem; right: 0.9rem;
    background: none; border: none; color: rgba(245,237,224,0.35);
    font-size: 1rem; cursor: pointer; padding: 0.2rem 0.4rem;
    transition: color 0.2s;
}
.s1-reid-popup-close:hover { color: var(--cream); }
.s1-reid-popup-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.35rem; font-weight: 600;
    color: var(--cream); margin: 0 0 0.2rem;
}
.s1-reid-popup-dates {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.58rem; letter-spacing: 0.15em;
    color: var(--terracotta); margin: 0 0 1rem;
    text-transform: uppercase;
}
.s1-reid-popup-body {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.95rem; line-height: 1.6;
    color: rgba(245,237,224,0.75); margin: 0 0 1.1rem;
}
.s1-reid-popup-geo {
    display: flex; flex-direction: column; gap: 0.25rem;
    border-top: 1px solid rgba(245,237,224,0.07);
    padding-top: 0.8rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.52rem; letter-spacing: 0.1em;
    color: rgba(245,237,224,0.3);
}

/* Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â SLIDE 3 Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â */
#s1-s3 {
    background: #050709;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
}
.s1-canvas-wrap {
    width: 100%;
    height: 65vh;
    position: relative;
    overflow: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
#s1-fault-canvas {
    width: 100%;
    height: 100%;
    display: block;
    flex: 1;
    min-height: 0;
    border: 1px solid rgba(245, 237, 224, 0.05);
}
.s1-canvas-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(196, 97, 42, 0.7);
    min-height: 1.2rem;
    margin-bottom: 0.6rem;
}
.s1-phase-list {
    list-style: none;
    padding: 0;
    margin: 0.4rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}
.s1-phase-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.6rem 0.9rem;
    border: 1px solid rgba(245, 237, 224, 0.07);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    color: rgba(245, 237, 224, 0.3);
    transition: border-color 0.35s, color 0.35s, background 0.35s;
    cursor: default;
    position: relative;
}
.s1-phase-item::before {
    content: attr(data-phase);
    font-size: 0.55rem;
    width: 18px;
    height: 18px;
    border: 1px solid rgba(245, 237, 224, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color 0.35s, background 0.35s, color 0.35s;
    color: rgba(245, 237, 224, 0.25);
}
.s1-phase-item.active {
    border-color: rgba(196, 97, 42, 0.45);
    color: var(--cream);
    background: rgba(196, 97, 42, 0.06);
}
.s1-phase-item.active::before {
    border-color: var(--terracotta);
    background: var(--terracotta);
    color: #fff;
}
.s1-years-counter {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.58rem;
    letter-spacing: 0.18em;
    color: rgba(58, 126, 196, 0.6);
    position: absolute;
    top: 2.5rem;
    right: 2.5rem;
    z-index: 5;
}
.s1-canvas-footer {
    margin-top: 0.7rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.s1-canvas-note {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.52rem;
    letter-spacing: 0.14em;
    color: rgba(245, 237, 224, 0.15);
    text-transform: uppercase;
}


#s1-s3 .s1-body-text {
    font-size: 1.05rem;
    line-height: 1.85;
}
/* Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â SLIDE 4 Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â */
#s1-s4 {
    background: var(--charcoal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(196,97,42,0.2) transparent;
}
.s1-slide-inner {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding: 3.5rem 4rem;
    display: flex;
    flex-direction: column;
    gap: 2.6rem;
}
#s1-s4 .s1-slide-inner {
    max-width: none;
    width: 100%;
    display: grid;
    grid-template-columns: 36% 1fr;
    gap: 0 4rem;
    padding: 3rem 5.5rem;
    align-items: center;
    align-content: center;
    height: 100%;
}
.s1-s4-text {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}
#s1-s4 .s1-tool-wrap  { margin-top: 0; align-self: center; }
.s1-tool-wrap {
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
    align-items: center;
    margin-top: 0.4rem;
    width: 100%;
}
.s1-slider-hint {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.9rem; line-height: 1.55; font-style: italic;
    color: rgba(245,237,224,0.45);
    border-left: 2px solid rgba(196,97,42,0.35);
    padding-left: 0.9rem;
    margin-bottom: 1.4rem;
}
.s1-sliders-col { display: flex; flex-direction: column; gap: 2rem; width: 100%; }
.s1-slider-group { display: flex; flex-direction: column; gap: 0.55rem; }
.s1-slider-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(245, 237, 224, 0.35);
}
.s1-slider-track-wrap { position: relative; }
.s1-sliders-col input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 2px;
    background: rgba(245, 237, 224, 0.1);
    outline: none;
    cursor: pointer;
    border-radius: 1px;
}
.s1-sliders-col input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--terracotta);
    border: 2px solid var(--charcoal);
    cursor: pointer;
    transition: transform 0.15s ease, background 0.2s;
    box-shadow: 0 0 0 3px rgba(196, 97, 42, 0.18);
}
.s1-sliders-col input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.25); background: var(--cream); }
.s1-sliders-col input[type="range"]::-moz-range-thumb {
    width: 14px; height: 14px; border-radius: 50%;
    background: var(--terracotta); border: 2px solid var(--charcoal);
    cursor: pointer;
}
.s1-slider-ticks { display: flex; justify-content: space-between; margin-top: 0.4rem; }
.s1-slider-ticks span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.48rem;
    letter-spacing: 0.04em;
    color: rgba(245, 237, 224, 0.22);
    text-align: center;
    flex: 1;
}
.s1-slider-ticks span:first-child { text-align: left; }
.s1-slider-ticks span:last-child  { text-align: right; }
.s1-slider-val {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    color: var(--terracotta);
    margin-top: 0.25rem;
    min-height: 1.2em;
    transition: color 0.3s;
}
.s1-mag-val { font-size: 1.35rem; letter-spacing: -0.01em; font-weight: 400; }
.s1-slider-desc {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(245, 237, 224, 0.42);
    font-style: italic;
    margin-top: 0.2rem;
    min-height: 2.4em;
    transition: opacity 0.35s ease;
}
.s1-energy-col { display: flex; align-items: center; justify-content: center; width: 100%; }
.s1-energy-wrap { display: flex; flex-direction: column; align-items: center; gap: 0.7rem; width: 100%; }
.s1-energy-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(245, 237, 224, 0.35);
    display: block;
    text-align: center;
}
.s1-energy-tank {
    position: relative;
    width: 110px;
    height: 280px;
    border: 1px solid rgba(245, 237, 224, 0.12);
    background: rgba(0, 0, 0, 0.35);
    overflow: visible;
    flex-shrink: 0;
}
.s1-energy-fill {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(to top, #4CAF50 0%, var(--terracotta) 50%, var(--blood) 100%);
    transition: height 0.45s cubic-bezier(0.4, 0, 0.2, 1), background 0.45s ease;
    will-change: height;
}
.s1-paganica-marker {
    position: absolute;
    bottom: 81.54%;
    left: 0; right: 0;
    border-top: 1px dashed rgba(245, 237, 224, 0.45);
    pointer-events: none;
    z-index: 10;
}
.s1-paganica-marker span {
    position: absolute;
    left: calc(100% + 6px);
    top: -0.65em;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.46rem;
    letter-spacing: 0.08em;
    color: rgba(245, 237, 224, 0.55);
    white-space: nowrap;
    line-height: 1;
}
.s1-energy-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.54rem;
    letter-spacing: 0.06em;
    color: rgba(245, 237, 224, 0.35);
    text-align: center;
    line-height: 1.55;
    min-height: 2.4em;
    transition: color 0.3s;
}

/* Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â SLIDE 5 Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â */
#s1-s5 { background: var(--black); }
.s1-s5-wrap {
    width: 100%;
    max-width: 1240px;
    padding: 1.8rem 2.5rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
#s1-s5 .s1-narrative-block { margin: 0.5rem 0; }
#s1-s5 .s1-s5-grid { gap: 0 2.5rem; }
.s1-s5-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2.5rem;
}
.s1-s5-title-col { display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.s1-s5-photo-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}
.s1-s5-photo {
    width: 220px;
    height: 150px;
    object-fit: cover;
    border-radius: 2px;
    border: 1px solid rgba(196,97,42,0.25);
    display: block;
}
.s1-s5-photo[src=""] { display: none; } /* nasconde segnaposto vuoto */
.s1-s5-photo-caption {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.5rem;
    letter-spacing: 0.12em;
    color: rgba(245,237,224,0.2);
}
#s1-s5 { align-items: center; }
.s1-s5-wrap { padding-top: 2.5rem; }
.s1-s5-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 3rem;
    align-items: start;
}
.s1-s5-col { display: flex; flex-direction: column; }

/* Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â SLIDE 6 â€” 2 colonne Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â */

#s1-s6 { background: var(--black); }
.s1-s6-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3.5rem;
    width: 100%;
    max-width: none;
    padding: 3rem 4rem;
    box-sizing: border-box;
    align-items: start;
}
.s1-s6-canvas-col, .s1-s6-tech-col {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}
.s1-s6-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--cream);
    margin: 0;
    line-height: 1.2;
}
.s1-narrative-block { margin: 1.6rem 0; }
.s1-narrative-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 0.7rem;
    font-weight: 500;
}
.s1-divider { border: none; border-top: 1px solid rgba(245,237,224,0.08); margin: 0.4rem 0; }
.s1-photos-row { display: flex; gap: 1.5rem; margin: 2.8rem 0; flex-wrap: wrap; }
.s1-photo-placeholder {
    position: relative;
    background: #101010;
    border: 1px dashed rgba(196, 97, 42, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.s1-photo-landscape { aspect-ratio: 16 / 9; flex: 1 1 55%; min-width: 260px; }
.s1-photo-square    { aspect-ratio: 1 / 1; flex: 0 1 220px; min-width: 160px; }
.s1-photo-placeholder .user-photo {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    display: none;
}
.s1-photo-placeholder .user-photo[src]:not([src=""]) { display: block; }
.s1-photo-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 0.2em;
    color: rgba(245, 237, 224, 0.2);
    text-align: center;
    padding: 0.6rem;
    user-select: none;
}
.s1-canvas-section { margin: 2.4rem 0; }
.s1-canvas-section-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(245, 237, 224, 0.35);
    margin-bottom: 1rem;
}
.s1-canvas-controls { display: flex; align-items: center; gap: 1.4rem; margin-bottom: 0.8rem; }
#s1-paganica-canvas {
    width: 100%; height: 400px; display: block;
    border: 1px solid rgba(245, 237, 224, 0.07);
}
.s1-s6-desc {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-left: 2px solid rgba(196, 97, 42, 0.4);
    background: rgba(196, 97, 42, 0.05);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(245, 237, 224, 0.55);
    font-style: italic;
}
.s1-tech-card-section { margin: 2.4rem 0 3rem; }
.s1-tech-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: rgba(245, 237, 224, 0.06);
    border: 1px solid rgba(245, 237, 224, 0.06);
    margin-bottom: 1rem;
}
.s1-tech-card {
    background: var(--black);
    padding: 1rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    border: 1px solid rgba(196, 97, 42, 0.18);
    transition: border-color 0.25s;
}
.s1-tech-card:hover { border-color: rgba(196, 97, 42, 0.5); }
.s1-tech-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.54rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(245, 237, 224, 0.3);
}
.s1-tech-value { font-size: 0.95rem; font-weight: 600; color: var(--cream); line-height: 1.3; }
.s1-source-caption {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.54rem;
    letter-spacing: 0.14em;
    color: rgba(245, 237, 224, 0.2);
}

/* Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â SLIDE 6 Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â */
#s1-s6 { background: var(--black); }
.s1-transition-wrap {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    max-width: 640px;
    padding: 2rem;
}
.s1-bounce-arrow {
    display: block;
    font-size: 1.8rem;
    color: var(--terracotta);
    animation: s1-bounce 1.6s ease-in-out infinite;
    margin-top: 1rem;
    line-height: 1;
}
@keyframes s1-bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(14px); }
}

/* Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â RESPONSIVE Ã¢â€¢ÂÃ¢â€¢ÂÃ¢â€¢Â */
@media (max-width: 768px) {
    #s1-s3 { grid-template-columns: 1fr; }
    .s1-tool-wrap { grid-template-columns: 1fr; }
    .s1-photos-row { grid-template-columns: 1fr; }
    #s1-s5 .s1-s5-wrap { padding: 2rem 1.5rem; }
    .s1-s5-main { grid-template-columns: 1fr; }
    #s1-zones-map { height: 220px; }
    #s1-s4 { padding: 2rem 1rem; }
}
