/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px; /* Body 22px */
    line-height: 1.4;
    color: #2c3e50; /* Blu */
    background-color: #FBFBFB; /* Bianco */
    transition: background-color 1.4s ease;
    overflow-x: hidden;
    width: 100%;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.bold { font-weight: 700; } /* Montserrat Bold */

h2 { font-size: 40px; margin-bottom: 0px; font-weight: 500; }
h3 { font-size: 25px; margin-bottom: 10px; }

/* Header - Blu 2c3e50 con 50% trasparenza */
header {
    background: rgba(44, 62, 80, 0.5);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-links {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.nav-links a {
    text-decoration: none;
    color: #f4f4f4;
    font-size: 24px;
    font-weight: bold;
}

/* Classe per header sopra sezioni scure */
header.header-light .nav-links a, 
header.header-light .separator {
    color: #FBFBFB; /* Bianco */
}

/* Transizione per rendere il cambio colore fluido */
.nav-links a {
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #D35400 !important; /* Diventa arancione al passaggio */
}

.separator {
    color: #f4f4f4;
    font-weight: normal;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;

    /* STATO INIZIALE PER L'ANIMAZIONE */
    opacity: 0;
    transform: scale(1.05); /* Parte leggermente zoomato */
    transition: opacity 3s ease-out, transform 3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero {
    position: relative;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* CLASSE CHE ATTIVEREMO CON JS */
.hero.visible {
    opacity: 1;
    transform: scale(1); /* Torna alla dimensione originale */
}

/* --- ANIMAZIONE ELEMENTI INTERNI (DELAY) --- */

/* Impostiamo lo stato iniziale (invisibile e traslato) */
.hero-logo,
.hero .btn-primary {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.2s ease-out, transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Quando la Hero diventa visibile, attiviamo i delay a cascata */
.hero.visible .hero-logo {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.8s; /* Appare mentre lo sfondo sta finendo il fade-in */
}

.hero.visible .btn-primary {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1.4s; /* Il bottone è l'ultimo elemento */
}

/* Logo Hero: immagine (Monica Pilenghi Logo bianco.png) al posto del testo.
   Usando width relativa (min tra % di viewport e un tetto in px) resta sempre
   leggibile e proporzionata, senza bisogno di media query dedicate. */
.hero-logo {
    display: block;
    width: min(80vw, 900px);
    height: auto;
    margin: 0 auto 40px;
}

/* Pulsanti con raggio*/
.btn-primary {
    background-color: #D35400; /* Arancio */
    color: #FBFBFB;
    padding: 15px 40px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 35px;
    display: inline-block;
    border: none;
}

.btn-primary:hover {
    border: 2px solid #D35400;
    background-color: transparent; /* Rende lo sfondo invisibile */
    color: #D35400;                /* Testo arancio per leggibilità */
    border-color: #D35400;         /* Il bordo resta visibile */
    cursor: pointer;
}

.btn-outline {
    border: 2px solid #D35400;
    color: #D35400; /* Scritta sempre arancio */
    padding: 12px 35px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 35px;
    display: inline-block;
}

.btn-outline:hover {
    background-color: #D35400;
    color: #FBFBFB;                /* Testo arancio per leggibilità */
    cursor: pointer;
}

.btn-primary-orange {
    background-color: #D35400;
    color: #FBFBFB;
    padding: 12px 35px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 35px;
    display: inline-block;
}

.btn-primary-orange:hover {
    border: 2px solid #D35400;
    background-color: transparent; /* Rende lo sfondo invisibile */
    color: #D35400;                /* Testo arancio per leggibilità */
    border-color: #D35400;         /* Il bordo resta visibile */
    cursor: pointer;
}

/* --- STILE TITOLI E SOTTOTITOLI SEZIONI --- */

/* Avviciniamo l'H2 al sottotitolo */
h2 {
    font-size: 40px;
    font-weight: 500;
    margin-bottom: 0px !important; /* Riduce la distanza dal h3 */
    line-height: 1.1;
    color: #2c3e50;
}

/* Modifichiamo il sottotitolo senza toccare la Hero */
h3.section-desc {
    font-weight: 400 !important;   /* Peso leggero (Regular) */
    margin-top: 0 !important;      /* Elimina lo spazio bianco sopra */
    margin-bottom: 20px !important;/* Spazio prima della griglia/contenuto */
    color: #2c3e50;
    text-transform: none !important; /* Evita il tutto maiuscolo della Hero */
    letter-spacing: normal !important; /* Reset dello spazio tra lettere */
    display: block;
    text-align: left; /* Allinea a sinistra come nello screenshot */
}

/* Correzione colore titoli per sezioni scure */
.section-blue h2, 
.section-blue h3.section-desc {
    color: #FBFBFB !important;
}


/* Sections */
section { padding: 100px 0; }
.section-white { background-color: transparent; } /* Tolto colore fisso */
.section-blue { background-color: transparent; color: #FBFBFB; } /* Tolto colore fisso */
.center-btn { text-align: center; margin-top: 50px; }

/* Portfolio Grid Container */
.portfolio-columns-container {
    display: flex;
    align-items: stretch; /* Forza le colonne ad avere la stessa altezza totale */
    gap: 20px;
    max-width: 1200px;
    margin-top: -90px;
    margin-bottom: -90px
}

.portfolio-column {
    flex: 1; /* Le tre colonne hanno la stessa larghezza */
    display: flex;
    flex-direction: column;
    gap: 20px; /* Spazio verticale tra le immagini */
}

.grid-item {
    width: 100%;
    background: #fff;
    overflow: hidden;
    border-radius: 15px;
    border: 1px solid #eee;
}

.grid-item img {
    width: 100%;
    height: auto; /* Mantiene la proporzione originale senza tagli */
    display: block;
    transition: transform 0.6s ease;
}

.grid-item:hover img {
    transform: scale(1.03);
}

/* Stile Citazioni */
.item-quote {
    flex-grow: 1; /* Fondamentale: riempie lo spazio vuoto per allineare il fondo */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    min-height: 180px;
}

.item-quote p {
    font-family: 'Caveat', cursive;
    font-size: 24px;
    text-align: center;
    margin: 0;
}

/* Mobile: una sola colonna */
@media (max-width: 768px) {
    .portfolio-columns-container {
        flex-direction: column;
    }
}

/* About */
.about-content { 
    display: flex; 
    gap: 50px; 
    align-items: center; /* Centra verticalmente il testo rispetto all'immagine */
}

.about-image { 
    flex: 1; 
    height: 500px; /* Regola l'altezza come preferisci */
    overflow: hidden; /* Taglia l'eccedenza dell'immagine */
    border-radius: 10px; /* Opzionale: per ammorbidire gli angoli */
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Riempie il box ritagliando la foto correttamente */
    display: block;
}

.about-text { 
    flex: 1; 
}

/* ==========================================================================
   METODO (Box Icone Moderni)
   ========================================================================== */

.metodo-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 25px; 
    margin-bottom: 40px;
}

.metodo-card {
    text-align: left;
    background: #ffffff;
    border: 2px solid #2c3e50; /* Bordo completo blu */
    border-radius: 16px;
    padding: 30px 24px;
    box-shadow: 0 4px 20px rgba(44, 62, 80, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Effetto Hover elegante */
.metodo-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(44, 62, 80, 0.08);
    border-color: rgba(211, 84, 0, 0.3); /* Tratto arancione sfumato */
}

/* Contenitore dell'icona */
.card-icon { 
    width: 56px; 
    height: 56px; 
    background: rgba(211, 84, 0, 0.08); /* Sfondo arancione trasparente */
    color: #D35400; /* Colore icona arancione */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: background 0.3s ease, color 0.3s ease;
}

.card-icon svg {
    width: 28px;
    height: 28px;
}

/* Cambia colore icona all'hover della card */
.metodo-card:hover .card-icon {
    background: #D35400;
    color: #ffffff;
}

/* Titoli ed estratti brevi */
.metodo-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #2c3e50;
    text-transform: none;
    letter-spacing: normal;
}

.metodo-card p {
    font-size: 14.5px;
    line-height: 1.6;
    color: #5a6b7c;
}

/* Responsive per Tablet e Mobile */
@media (max-width: 992px) {
    .metodo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .metodo-grid {
        grid-template-columns: 1fr;
    }
}

/* --- SEZIONE RICONOSCIMENTI (CAROSELLO CIRCOLARE CONTINUO) --- */
#riconoscimenti .section-desc {
    margin-bottom: 20px !important;
}

.logos-carousel-container {
    width: 100%;
    max-width: 1200px; /* Si adatta al container generale del sito */
    margin: 60px auto;
    overflow: hidden; /* Nasconde i loghi che escono lateralmente dalla visuale */
    position: relative;
}

.logos-grid {
    display: flex; /* Dispone tutti i loghi su una sola riga continua */
    flex-wrap: nowrap;
    align-items: start;
    width: max-content; /* Permette alla riga di allungarsi all'infinito */
    will-change: transform;
}

.logo-box {
    /* Mostra esattamente 5 elementi dividendo lo spazio del container (1200px / 5 = 240px) */
    width: 240px; 
    flex-shrink: 0; /* Impedisce ai box di rimpicciolirsi */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 15px; /* Spazio protettivo laterale tra un brand e l'altro */
}

.logo-box img {
    max-width: 100%;
    height: 80px; /* Altezza fissa per tenere i loghi allineati geometricamente */
    object-fit: contain;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    margin-bottom: 15px;
}

.logo-box img:hover {
    opacity: 1;
}

.logo-caption {
    font-size: 14px;
    line-height: 1.4;
    color: #FBFBFB;
    margin: 0;
    font-weight: 500;
}

/* Ottimizzazione responsive per Smartphone */
@media (max-width: 768px) {
    .logo-box {
        width: 160px; /* Più piccoli sui telefoni per mostrarne almeno 2 o 3 contemporaneamente */
    }
}

/* Sistemazione responsive per smartphone */
@media (max-width: 768px) {
    .logos-grid {
        grid-template-columns: 1fr; /* Una sola colonna sui dispositivi mobili */
        gap: 40px;
    }
}

/* Contact Section */
.contact-flex { 
    display: flex; 
    gap: 100px; 
}

.contact-info h2 { 
    color: #D35400; 
    line-height: 1; 
}

.contact-list { 
    list-style: none; 
    margin-top: 50px; 
}

.contact-list li { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    margin-bottom: 20px; 
    font-size: 18px; 
    color: #2c3e50;
}

.contact-list img { 
    width: 25px; 
}

/* Stile per i link cliccabili (Email, LinkedIn, Mappe) */
.contact-link {
    color: #2C3E50;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: #D35400;
    opacity: 0.8;
}

/* Form */
.contact-form { 
    flex: 1; 
    padding-top: 120px;
}

.contact-form form { 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
}

.contact-form input, 
.contact-form textarea {
    width: 100%; /* Forza i campi a tutta larghezza */
    background: transparent;
    border: none;
    border-bottom: 1px solid #2c3e50;
    color: #2c3e50;
    padding: 10px;
    font-size: 18px;
    font-family: inherit;
}

.contact-form input:focus, 
.contact-form textarea:focus {
    outline: none;
    border-bottom: 2px solid #D35400;
}

/* Fix per il pulsante Invia */
.contact-form .btn-primary {
    width: fit-content;    /* Largo quanto il testo */
    align-self: flex-start; /* Allineato a sinistra */
    margin-top: 10px;      /* Spazio extra sopra il pulsante */
    cursor: pointer;
}

/* Assicuriamoci che l'immagine e il testo siano ben allineati */
.contact-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

/* Footer */
footer {
    background: #2c3e50;
    color: #FBFBFB;
    padding: 60px 0;
    text-align: center;
}
.footer-logo { font-size: 24px; margin-bottom: 20px; }
.footer-nav a { color: #888; text-decoration: none; margin: 0 10px; font-size: 14px; }
.footer-nav a:hover {
    color: #D35400; /* Arancione per coerenza */
}

/* ==========================================================================
   STILI HAMBURGER MENU (BASE DESKTOP)
   ========================================================================== */

/* Layout dell'header */
.header-container {
    display: flex;
    align-items: center;
    justify-content: center; /* Centrato su desktop */
    position: relative;
    padding: 0 20px; /* Dà aria ai lati di sicurezza per tutto l'header */
}

/* Nascondiamo il tasto hamburger su schermi grandi */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    z-index: 1100; /* Sta sopra al menu aperto */
    padding: 10px; /* Aumenta l'area di tap per mobile senza ingrandire le linee */
    box-sizing: content-box; /* Mantiene la dimensione interna delle linee a 30x21px */
}

.hamburger-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #FBFBFB;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

/* Animazione Hamburger a "X" quando è attivo */
.hamburger-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}
.hamburger-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}


/* ==========================================================================
   RESPONSIVE DESIGN (Media Queries ordinate dal più grande al più piccolo)
   ========================================================================== */

/* 1. Sotto i 1100px: Attivazione Menu Hamburger e tendina a destra */
@media (max-width: 1100px) {
    .header-container {
        justify-content: center;
        position: relative;
    }

    .hamburger-btn {
        display: flex;
        position: absolute;
        right: 15px; /* Spazio dal bordo destro */
        top: 50%;
        transform: translateY(-50%);
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: calc(100% + 15px); /* Spazio sotto l'header */
        right: 15px;            /* Allineato a destra con il tasto hamburger */
        left: auto;             /* Rimuove l'allineamento a sinistra */
        transform: none;        /* Rimuove la centratura */
        width: min(85vw, 280px); /* Larghezza ideale per un menu a destra */
        background: #2c3e50;
        border-radius: 16px;
        padding: 16px 0;
        gap: 0;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        text-align: right; /* Testo allineato a destra per seguire il layout */
    }

    .nav-links a {
        display: block;
        padding: 12px 24px;
        font-size: 17px;
        color: #FBFBFB;
    }

    .separator {
        display: none; /* Non serve più: i link sono impilati */
    }
}

/* 2. Per Tablet e Smartphone (sotto i 1024px) */
@media (max-width: 1024px) {
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .metodo-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-flex { gap: 50px; }
}

/* 3. Per Smartphone (sotto i 768px) */
@media (max-width: 768px) {
    .hero-logo { width: min(85vw, 500px); margin-bottom: 30px; }

    .about-content, .contact-flex {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .contact-form { padding-top: 0; }
    .about-image { height: 300px; }

    .portfolio-grid, .metodo-grid, .logos-grid {
        grid-template-columns: 1fr;
    }
    
    .item-large { grid-column: span 1; grid-row: span 1; }

    .contact-info h2 { font-size: 35px; }
    .contact-list li { justify-content: center; }
    .contact-list { margin-top: 30px; }
}

/* 4. Per Smartphone piccoli (sotto i 480px) */
@media (max-width: 480px) {
    .container { padding: 0 16px; }

    .hero-logo { width: min(88vw, 380px); }

    .btn-primary, .btn-outline, .btn-primary-orange {
        padding: 12px 24px;
        font-size: 16px;
    }

    h2 { font-size: 30px; }
    h3.section-desc { font-size: 18px; }

    .contact-info h2 { font-size: 28px; }
    .metodo-card { padding: 24px 18px; }
}


/* ==========================================================================
   STILI COMPONENTI EXTRA
   ========================================================================== */

.propositive-link {
    color: #FAFAFA;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.propositive-link:hover {
    color: #D35400;
    text-decoration: underline;
}

/* --- SOTTOSEZIONI PORTFOLIO --- */

/* Stile per i titoli delle sottosezioni (Sport, Casa, ecc.) */
.portfolio-subsection-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0px;      /* Spazio stacco dalla sezione precedente */
    margin-bottom: 30px;   /* Spazio prima che inizino le immagini */
    border-left: 4px solid #D35400; /* Un tocco di arancione a sinistra del titolo */
    padding-left: 15px;
    text-align: left;
    display: block;
    width: 100%;
}

/* Forziamo il reset dei margini negativi per evitare sovrapposizioni tra le 3 griglie */
#portfolio .portfolio-columns-container {
    margin-top: 0 !important;
    margin-bottom: 40px !important;
}

/* Correzione per il link ProPositivə®: avevi messo un colore bianco invisibile */
.propositive-link {
    color: #D35400 !important; /* Arancione visibile sullo sfondo blu */
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}
.propositive-link:hover {
    color: #FBFBFB !important; /* Diventa bianco al passaggio */
    text-decoration: underline;
}

/* --- STILI CAROSELLI PORTFOLIO INFINITI --- */

.portfolio-carousel-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin-bottom: 50px;
    padding: 10px 0;
}

.portfolio-carousel-track {
    display: flex;
    gap: 20px;
    width: max-content;
    will-change: transform;
}

.portfolio-carousel-track .grid-item {
    width: auto;               /* Si adatta alla larghezza naturale dell'immagine */
    min-width: unset;          /* Rimuove i vincoli di larghezza minima */
    height: 320px;             /* Define un'altezza di riferimento pulita per la riga */
    flex-shrink: 0;
    border-radius: 16px;       /* Il raggio d'curvatura che volevi */
    overflow: hidden;
    background: transparent;   /* Via lo sfondo bianco/box vuoto */
    border: none;              /* Rimuove eventuali bordi */
    box-shadow: none;          /* Rimuove ombra dal box */
}

.portfolio-carousel-track .grid-item img {
    width: auto;               /* Mantiene la proporzione naturale in base all'altezza */
    height: 100%;              /* Tutte le foto avranno la stessa altezza, ma larghezze diverse */
    object-fit: contain;       /* Mostra l'immagine intera SENZA TAGLI */
    display: block;
    border-radius: 16px;       /* Applica il raggio direttamente all'immagine */
    padding: 0;
}

/* Effetto al passaggio del mouse sull'immagine */
.portfolio-carousel-track .grid-item:hover img {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

/* Adattamento per dispositivi mobili */
@media (max-width: 768px) {
    .portfolio-carousel-track .grid-item {
        height: 220px;         /* Un po' più piccole su smartphone */
    }
}

/* ==========================================================================
   DECORAZIONI DI SFONDO PORTFOLIO
   ========================================================================== */

#portfolio {
    position: relative;
    overflow: hidden;
}

.bg-decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

#portfolio .container {
    position: relative;
    z-index: 1;
}

.decor {
    position: absolute;
    opacity: 0.55;
    will-change: transform;
}

/* Su tablet/mobile nascondiamo solo i due cerchi con riempimento blu pieno
   (shape-circle-a e shape-circle-b): sono gli unici a creare un blocco di
   colore compatto che, sovrapponendosi al titolo/sottotitolo su schermi
   stretti, ne compromette la leggibilità. Le altre forme (solo contorni,
   senza riempimento) restano visibili anche su mobile. */
@media (max-width: 991px) {
    .shape-circle-a,
    .shape-8-expanded,
    .shape-7-a,
    .shape-13-b,
    .shape-15-c,
    .shape-13-a,
    .shape-11,
    .shape-circle-b {
        display: none;
    }
}

/* --- POSIZIONAMENTI E DIMENSIONI (DISTRIBUITI DALL'ALTO IN BASSO) --- */

/* 1. Shape 1 (a) - In alto centro */
.shape-1-a { top: 1%; left: 37%; width: 250px; height: 250px; }
.shape-1-a .circle-outer { transform-origin: 100px 100px; animation: rotateSlow 25s linear infinite; }
.shape-1-a .circle-orbit { transform-origin: 100px 100px; animation: orbitInner 12s linear infinite; }

/* 2. Old Shape 1 (a) - In alto a sinistra (standard) */
.shape-circle-a { top: 3%; left: -50px; width: 280px; height: 280px; }
.shape-circle-a .circle-outer { transform-origin: 100px 100px; animation: rotateSlow 25s linear infinite; }
.shape-circle-a .circle-inner { transform-origin: 100px 100px; animation: rotateReverse 18s linear infinite; }

/* 3. Old Shape 2 (a) - In alto centro (standard 250px) */
.shape-dots {
    top: -40px;
    right: -40px;
    width: 250px;
    height: 250px;
    animation: floatVertical 12s ease-in-out infinite alternate;
}

.dot-a {
    animation: dotPulseA 3s ease-in-out infinite alternate;
}

.dot-b {
    animation: dotPulseB 3s ease-in-out infinite alternate;
}

/* 4. Shape 8 Espansa (3x3 quadrati) */
.shape-8-expanded { top: 10%; right: 20%; width: 160px; height: 160px; animation: floatVertical 9s ease-in-out infinite alternate-reverse; }

/* 5. Shape 7 (a) - Fascia 22% destra */
.shape-7-a { top: 22%; right: 12%; width: 160px; height: 160px; animation: rotateSlow 30s linear infinite; }

/* 6. Old Shape 3 (a) - Fascia 32% sinistra (standard 200px) */
.shape-square-a { 
    top: 32%; 
    left: -40px; 
    width: 200px; 
    height: 200px; 
    transform: rotate(45deg); 
    transform-origin: center;
    animation: floatRhombusA 8s ease-in-out infinite alternate; 
}

.shape-square-a .square-blue {
    transform-origin: center;
    animation: pulseSquare 5s ease-in-out infinite alternate;
}

.shape-square-a .square-orange { 
    transform-origin: center;
    animation: shiftOrange 4s ease-in-out infinite alternate; 
}

/* 7. Shape 15 (a) - Fascia 40% sinistra */
.shape-15-a { top: 40%; left: 8%; width: 180px; height: 180px; animation: rotateReverse 25s linear infinite; }

/* 8. Shape 1 (b) - Fascia 48% destra (seconda copia) */
.shape-1-b { top: 48%; right: -30px; width: 230px; height: 230px; }
.shape-1-b .circle-outer { transform-origin: 100px 100px; animation: rotateSlow 20s linear infinite; }
.shape-1-b .circle-orbit { transform-origin: 100px 100px; animation: orbitInner 10s linear infinite reverse; }

/* 9. Old Shape 1 (b) - Fascia 54% sinistra (PIÙ GRANDE 360px) */
.shape-circle-b { top: 54%; left: 18%; width: 360px; height: 360px; }
.shape-circle-b .circle-outer { transform-origin: 100px 100px; animation: rotateSlow 35s linear infinite; }
.shape-circle-b .circle-inner { transform-origin: 100px 100px; animation: rotateReverse 22s linear infinite; }

/* 10. Shape 11 - Fascia 60% centro-destra */
.shape-11 { top: 60%; right: 15%; width: 220px; height: 220px; animation: rotateSlow 40s linear infinite; }

/* 11. Shape 13 (a) - Fascia 66% destra */
.shape-13-a { top: 66%; right: 5%; width: 140px; height: 140px; animation: rotateReverse 28s linear infinite; }

/* 12. Old Shape 3 (b) - Fascia 72% sinistra (PIÙ PICCOLO 130px) */
.shape-square-b { 
    top: 72%; 
    left: -30px; 
    width: 130px; 
    height: 130px; 
    transform: rotate(45deg); 
    transform-origin: center;
    animation: floatRhombusB 6s ease-in-out infinite alternate-reverse; 
}

.shape-square-b .square-blue {
    transform-origin: center;
    animation: pulseSquare 4s ease-in-out infinite alternate-reverse;
}

.shape-square-b .square-orange { 
    transform-origin: center;
    animation: shiftOrange 3s ease-in-out infinite alternate-reverse; 
}

/* 13. Shape 7 (b) - Fascia 86% sinistra (seconda copia) */
.shape-7-b { top: 86%; left: 35%; width: 150px; height: 150px; animation: rotateSlow 22s linear infinite reverse; }

/* 14. Old Shape 2 (b) - Fascia 84% centro-destra (PIÙ PICCOLA 160px) */
.shape-dots-b { 
    top: 84%; 
    left: 4%; 
    width: 150px; 
    height: 150px; 
    opacity: 0.75; 
    animation: floatVertical 10s ease-in-out infinite alternate-reverse; 
}

/* 15. Shape 15 (b) - Fascia 90% destra (seconda copia) */
.shape-15-b { top: 90%; right: 4%; width: 200px; height: 200px; animation: rotateSlow 32s linear infinite; }

/* 16. Shape 13 (b) - Fascia 96% sinistra (seconda copia) */
.shape-13-b { top: 96%; left: -20px; width: 150px; height: 150px; animation: rotateReverse 20s linear infinite; }

/* 17. Shape 13 (c) - Quadrato Target (Fascia 19% a sinistra) */
.shape-13-c { 
    top: -50px; 
    left: 12%; 
    width: 130px; 
    height: 130px; 
    animation: floatVertical 8s ease-in-out infinite alternate;
}

.shape-13-c circle:first-of-type {
    transform-origin: 60px 60px;
    animation: rotateSlow 20s linear infinite;
}

/* 18. Shape 15 (c) - Cerchio Solare (Fascia 27% centro-sinistra) */
.shape-15-c { 
    top: 27%; 
    left: 16%; 
    width: 150px; 
    height: 150px; 
}

.shape-15-c .solar-inner {
    transform-origin: 70px 70px;
    animation: rotateReverse 22s linear infinite;
}

.shape-15-c .solar-outer {
    transform-origin: 70px 70px;
    animation: rotateSlow 30s linear infinite;
}

/* ==========================================================================
   ANIMAZIONI
   ========================================================================== */
/* Rotazione base (45deg) + leggera oscillazione */
@keyframes floatRhombusA {
    0% {
        transform: rotate(45deg) translateY(0px);
    }
    100% {
        transform: rotate(51deg) translateY(-10px);
    }
}

/* Pulsazione del livello blu sottostante */
@keyframes pulseSquare {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1.08);
        opacity: 1;
    }
}

/* Scostamento diagonale del livello arancione */
@keyframes shiftOrange {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translate(8px, -8px) scale(1.04);
        opacity: 1;
    }
}

@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotateReverse {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

@keyframes orbitInner {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulseSoft {
    0% { transform: rotate(45deg) scale(1); }
    100% { transform: rotate(45deg) scale(1.12); }
}

@keyframes shiftOrange {
    0% {
        transform: translate(0px, 0px);
        opacity: 0.8;
    }
    100% {
        transform: translate(6px, -6px);
        opacity: 1;
    }
}

@keyframes floatVertical {
    0% { transform: translateY(0px); }
    100% { transform: translateY(20px); }
}

@keyframes dotPulseA {
    0% {
        opacity: 0.85;
        r: 2.2px;
    }
    100% {
        opacity: 0.25;
        r: 1.2px;
    }
}

@keyframes dotPulseB {
    0% {
        opacity: 0.25;
        r: 1.2px;
    }
    100% {
        opacity: 0.85;
        r: 2.2px;
    }
}

/* Rotazione base (45deg) + oscillazione inversa per il rombo piccolo */
@keyframes floatRhombusB {
    0% {
        transform: rotate(45deg) translateY(0px);
    }
    100% {
        transform: rotate(39deg) translateY(-8px);
    }
}