/* ==========================================================================
   STILI SPECIFICI DELLA HOME PAGE (INDEX.CSS) - CORE REVISION iOS 26
   ========================================================================== */

/* --- CONFIGURAZIONE VARIABILI ULTRA-MODERNE --- */
:root {
    --ios-radius: 28px; /* Border-radius importante e marcato stile Apple */
    --ios-radius-sm: 16px;
    --glass-bg: rgba(255, 255, 255, 0.45); /* Sfondo div opacità ridotta a meno della metà */
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
    --blur-strength: 20px; /* Sfocatura profonda stile iOS */
    
    /* Palette Cromatica Neutra Consona al Fashion Studio (Zero Verde) */
    --text-primary: #000000;    /* Contrasto assoluto per titoli */
    --text-secondary: #222222;  /* Contrasto pulito e leggibile per paragrafi */
    --accent-dark: #111111;
}

/* --- HERO IMMERSIVA AD ALTA RESPONSIVITÀ --- */
#hero-immersive-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    z-index: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-zoom-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    animation: slowZoomEffect 20s infinite alternate ease-in-out;
    will-change: transform;
}

.hero-zoom-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center center; 
}

.hero-overlay-cover {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(240,240,242,0.5) 100%);
}

.caption-hero {
    position: relative;
    z-index: 3;
    text-align: center;
    width: 100%;
    padding: 0 10%;
    box-sizing: border-box;
}

.caption-hero h1 {
    font-size: clamp(28px, 7vw, 72px);
    font-weight: 800;
    letter-spacing: clamp(4px, 1.2vw, 12px);
    line-height: 1.1;
    margin: 0;
    color: var(--text-primary);
    text-shadow: 0 4px 30px rgba(255, 255, 255, 0.8);
    animation: iosHeaderFadeIn 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-indicator {
    font-size: clamp(20px, 3.5vw, 32px);
    margin-top: 30px;
    color: var(--text-primary);
    animation: bounceEffect 2s infinite;
    display: inline-block;
}

.main-content-wrapper {
    margin-top: 100vh;
    margin-top: 100dvh;
}

/* --- CONTENITORI BASE E STRUTTURE PAGE --- */
.page {
    position: relative;
    z-index: 5;
    padding: 40px 0;
}

/* --- GLASSMORPHISM GENERALE (STILE IPHONE iOS 26) --- */
.glass-panel {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(var(--blur-strength)) saturate(190%);
    -webkit-backdrop-filter: blur(var(--blur-strength)) saturate(190%);
    border: 1px solid var(--glass-border);
    border-radius: var(--ios-radius);
    box-shadow: var(--glass-shadow);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
                background-color 0.4s ease;
}

/* Hover elastico interattivo moderno sui pannelli */
.glass-panel:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.55) !important;
}

/* --- CAROSELLO PER IMMAGINI VERTICALI (LABORATORIO) --- */
.vertical-carousel-container {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    aspect-ratio: 2 / 3;
    position: relative;
    overflow: hidden;
    padding: 0;
}

.vertical-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    z-index: 1;
    transform: scale(1.08) translateY(10px);
    transition: opacity 0.9s cubic-bezier(0.25, 1, 0.5, 1), 
                transform 0.9s cubic-bezier(0.25, 1, 0.5, 1);
}

.vertical-slide.active {
    opacity: 1;
    z-index: 2;
    transform: scale(1) translateY(0);
}

.vertical-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--ios-radius);
}

.carousel-dots-vertical {
    position: absolute;
    bottom: 20px;
    right: 25px;
    z-index: 10;
    display: flex;
    gap: 12px;
    background: rgba(0, 0, 0, 0.15);
    padding: 8px 14px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.carousel-dots-vertical .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s ease;
}

.carousel-dots-vertical .dot.active {
    background: var(--text-primary);
    transform: scale(1.5);
}

/* --- BILANCIAMENTO E CONTRASTO TIPOGRAFICO DEI DIV --- */
.text-center-box { 
    padding: clamp(40px, 6vw, 80px) clamp(25px, 4vw, 50px); 
    text-align: center; 
}

/* Massimo contrasto e leggibilità p vs h */
.lead-text { 
    font-size: clamp(15px, 2.5vw, 18px); 
    line-height: 1.7; 
    margin-bottom: 30px; 
    color: var(--text-secondary); 
    font-weight: 400;
    letter-spacing: -0.2px;
}

.main-statement { 
    font-size: clamp(20px, 3.5vw, 26px); 
    font-weight: 700; 
    color: var(--text-primary);
    letter-spacing: -0.5px;
    border-top: 1px solid rgba(0, 0, 0, 0.08); 
    padding-top: 30px; 
    line-height: 1.3;
}

.studio-two-col { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 35px; 
    align-items: center; 
}

.content-info-box { 
    padding: 45px 35px; 
}

.content-info-box p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}
.content-info-box p:last-child { margin-bottom: 0; }

.highlight-border { 
    border-left: 4px solid var(--text-primary); 
    padding-left: 20px; 
    margin: 25px 0; 
    font-style: normal; 
    font-weight: 500;
    color: var(--text-primary);
}

/* --- GRIGLIA FLUSSO DI LAVORO (STEPS) --- */
.heading-margin { 
    text-align: center; 
    margin-bottom: 40px; 
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 800;
    color: var(--text-primary);
}

.steps-grid { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 22px; 
}

.step-box { 
    padding: 35px 30px; 
    position: relative;
    overflow: hidden;
}

.step-num { 
    font-size: 28px; 
    color: var(--text-primary); 
    margin-bottom: 12px; 
    font-weight: 800;
}

.step-box h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 10px 0;
}

.step-box p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.steps-summary { 
    margin-top: 35px; 
    padding: 40px; 
    text-align: center; 
}

.steps-summary p {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

/* BOTTONE INTERATTIVO FLUIDO iOS */
.btn-news { 
    display: inline-block; 
    padding: 12px 30px; 
    border: 1px solid var(--glass-border); 
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--ios-radius-sm);
    font-weight: 700; 
    text-transform: uppercase; 
    font-size: 12px; 
    letter-spacing: 1.5px; 
    color: var(--text-primary);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-news:hover { 
    background: var(--text-primary); 
    color: #ffffff !important; 
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* --- STACK DEI LINK INTERNI --- */
.links-vertical-stack { 
    display: flex; 
    flex-direction: column; 
    gap: 18px; 
}

.stacked-link-item { 
    padding: 24px 30px; 
    font-weight: 700; 
    font-size: 14px; 
    letter-spacing: 0.5px; 
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stacked-link-item:hover { 
    padding-left: 40px; 
    background: rgba(255, 255, 255, 0.75) !important;
}

.text-center { text-align: center; }

/* --- SISTEMA NATIVO DI ANIMAZIONI D'INGRESSO INTERSECTION OBSERVER --- */
.reveal-on-scroll {
    opacity: 0 !important;
    transform: translateY(40px) scale(0.96);
    will-change: transform, opacity;
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Ripristino con reveal cinematico dinamico */
.reveal-on-scroll.is-revealed {
    opacity: 1 !important; /* Mantiene visibilità cristallina e trasparenze controllate */
    transform: translateY(0) scale(1);
}

/* Effetto di microritardo sequenziale sequenziato (Stile sblocco iPhone) */
.steps-grid .step-box:nth-child(1) { transition-delay: 0.06s; }
.steps-grid .step-box:nth-child(2) { transition-delay: 0.12s; }
.steps-grid .step-box:nth-child(3) { transition-delay: 0.18s; }
.steps-grid .step-box:nth-child(4) { transition-delay: 0.24s; }
.steps-grid .step-box:nth-child(5) { transition-delay: 0.30s; }

/* --- CORE ANIMATIONS KEYFRAMES --- */
@keyframes slowZoomEffect {
    0% { transform: scale(1); }
    100% { transform: scale(1.12); }
}

@keyframes bounceEffect {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

@keyframes iosHeaderFadeIn {
    0% { opacity: 0; transform: translateY(20px); filter: blur(5px); }
    100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* --- DISPOSITIVI MOBILE & STRUTTURE RESPONSIVE --- */
@media (max-width: 480px) and (orientation: portrait) {
    .caption-hero { padding: 0 6%; }
    .hero-zoom-bg img { object-position: center 30%; }
    .glass-panel { --ios-radius: 22px; } /* Arrotondamento armonico leggermente più compatto su schermi piccoli */
    .text-center-box { padding: 45px 20px; }
    .content-info-box { padding: 35px 22px; }
}

@media (max-height: 500px) and (orientation: landscape) {
    #hero-immersive-section { height: 100vh; }
    .caption-hero h1 { font-size: 24px; letter-spacing: 3px; }
    .scroll-indicator { margin-top: 8px; font-size: 16px; }
}

@media (min-width: 768px) {
    .studio-two-col { grid-template-columns: 1fr 1fr; gap: 50px; }
    .steps-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
}

@media (min-width: 1024px) {
    .steps-grid { grid-template-columns: repeat(5, 1fr); gap: 16px; }
}