/*
 Theme Name:   Prismal Child
 Description:  Tema child per il tema Prismal con Hero visibile su mobile
 Author:       BenBoat
 Template:     prismal
 Version:      1.0.1
*/

/* ================================================================
   1. RIPRISTINO E FIX HERO SU MOBILE
   ================================================================ */

/* Forza la visibilità dell'Hero su ogni dispositivo */
#hero, 
.wp-block-kubio-hero, 
[data-kubio="kubio/hero"],
.style-KFTMhA6WOVh-outer {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    min-height: 300px !important; /* Assicura uno spazio minimo su mobile */
    position: relative !important;
    z-index: 1 !important;
}

/* Forza la riproduzione del video background su mobile */
.wp-block-kubio-hero video,
.kubio-video-background video {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    object-fit: cover !important;
}

/* ================================================================
   2. UNIFORMAZIONE MENU MOBILE (STILE TOUR)
   ================================================================ */

/* FORZA LO SFONDO BIANCO */
div[data-kubio="kubio/menu-offscreen"],
div[data-kubio="kubio/menu-offscreen-content"],
.kubio-offscreen,
.kubio-offscreen-content {
    background-color: #ffffff !important;
    background-image: none !important;
}

/* POSIZIONAMENTO LOGO NEL MENU */
div[data-kubio="kubio/logo"] {
    order: -1 !important; 
    margin-bottom: 20px !important;
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
    padding-top: 20px !important;
}

/* VOCI DI MENU: TESTO BLU E SEPARATORI */
.kubio-menu ul li {
    border-bottom: 1px solid #0056b3 !important; 
    list-style: none !important;
}

.kubio-menu ul li a {
    color: #0056b3 !important; 
    padding: 18px 25px !important;
    display: block !important;
    text-decoration: none !important;
    font-weight: bold !important;
}

.kubio-menu ul li:last-child {
    border-bottom: none !important;
}

/* EFFETTO ONDA IN FONDO AL MENU */
div[data-kubio="kubio/menu-offscreen-content"]::after {
    content: "";
    display: block;
    width: 100%;
    height: 80px;
    background-color: #0056b3;
    opacity: 0.1;
    margin-top: auto;
    clip-path: polygon(0 100%, 100% 100%, 100% 0, 0 80%);
    pointer-events: none;
}

/* BURGER ICON (L'INTERRUTTORE ESTERNO) */
.kubio-menu-mobile-toggle {
    background-color: #ffffff !important;
    border: 2px solid #0056b3 !important;
    padding: 5px !important;
}

/* RIMOZIONE COPYRIGHT KUBIO */
.kubio-offscreen [data-kubio="kubio/copyright"] {
    display: none !important;
}








/* ================================================================
   FOOTER ONDA SINGOLA - STILE PULITO
   ================================================================ */

.custom-onda-footer {
    position: relative;
    background-color: #0056b3 !important; /* Il tuo blu */
    width: 100%;
    margin-top: 0; /* L'onda è interna, non serve margine esterno eccessivo */
    padding-top: 60px; /* Spazio per allontanare il contenuto dall'inizio dell'onda */
}

.wave-divider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px; /* Altezza dell'onda */
}

/* Gestione Colonne */
.footer-content-wrapper {
    position: relative;
    z-index: 2;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    align-items: flex-start;
}

.footer-col {
    flex: 1;
    min-width: 280px;
    padding: 20px;
    color: #ffffff !important;
}

/* Fix per l'immagine del logo nel footer */
.footer-col img {
    max-width: 220px !important;
    height: auto !important;
}

/* Stile testi e widget */
.footer-col p, .footer-col li {
    color: rgba(255,255,255,0.8) !important;
    font-size: 15px;
}

.footer-bottom {
    text-align: center;
    padding: 30px 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    font-size: 13px;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-col { width: 100%; }
    .wave-divider svg { height: 40px; } /* Onda più piccola su mobile */
    .custom-onda-footer { padding-top: 40px; }
}





Certamente! Per rendere il movimento più energico e visibile, dobbiamo ridurre la durata dell'animazione nel CSS. Più basso è il numero di secondi, più veloce sarà l'onda.

Ecco il codice CSS aggiornato con tempi dimezzati per un effetto più dinamico:

CSS
/* ================================================================
   FOOTER ONDE ANIMATE - VERSIONE VELOCE
   ================================================================ */

.custom-onda-footer {
    position: relative;
    background-color: #0056b3 !important;
    width: 100%;
    margin-top: 100px;
    padding-bottom: 20px;
    clear: both;
}

.waves-animation-container {
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 100px;
    line-height: 0;
    overflow: hidden;
}

.waves-svg {
    position: relative;
    width: 100%;
    height: 100px;
}

/* ANIMAZIONE ACCELERATA */
.moving-waves > use {
    animation: move-forever 10s cubic-bezier(.55,.5,.45,.5) infinite; /* Ridotto da 25s a 10s */
}

/* Velocità differenziate per ogni livello d'onda */
.moving-waves > use:nth-child(1) { 
    animation-delay: -1s; 
    animation-duration: 4s; /* Molto veloce */
}
.moving-waves > use:nth-child(2) { 
    animation-delay: -2s; 
    animation-duration: 6s; /* Media */
}
.moving-waves > use:nth-child(3) { 
    animation-delay: -3s; 
    animation-duration: 8s; /* Moderata */
}
.moving-waves > use:nth-child(4) { 
    animation-delay: -4s; 
    animation-duration: 12s; /* L'onda blu di base, più fluida */
}

@keyframes move-forever {
    0% { transform: translate3d(-90px,0,0); }
    100% { transform: translate3d(85px,0,0); }
}

/* Layout e Widget */
.footer-content-wrapper {
    position: relative;
    z-index: 5;
    padding-top: 20px;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    align-items: flex-start;
}

.footer-col {
    flex: 1;
    min-width: 280px;
    padding: 20px;
    color: #ffffff !important;
}

.footer-col img {
    max-width: 200px !important;
    height: auto !important;
    margin-bottom: 15px;
}

.footer-bottom {
    text-align: center;
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .waves-animation-container { top: -60px; height: 60px; }
    .waves-svg { height: 60px; }
    .footer-inner { flex-direction: column; text-align: center; }
}


/* ================================================================
   ONDE ANIMATE PER SEZIONE CTA
   ================================================================ */

#cta {
    position: relative;
    background-color: #0056b3 !important; /* Forza il blu BenBoat */
    padding-top: 120px !important; /* Spazio per le onde */
    overflow: visible !important; /* Permette alle onde di uscire sopra */
}

/* Colore testi nella CTA per farli leggere sul blu */
#cta h2, #cta p {
    color: #ffffff !important;
}

/* Contenitore Onde CTA */
.waves-cta-container {
    position: absolute;
    top: -100px; /* Le onde fluttuano sopra l'inizio della sezione */
    left: 0;
    width: 100%;
    height: 100px;
    line-height: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 10;
}

/* Riutilizziamo le animazioni che abbiamo già creato per il footer */
#cta .moving-waves > use {
    animation: move-forever 10s cubic-bezier(.55,.5,.45,.5) infinite;
}

#cta .moving-waves > use:nth-child(1) { animation-duration: 4s; }
#cta .moving-waves > use:nth-child(2) { animation-duration: 6s; }
#cta .moving-waves > use:nth-child(3) { animation-duration: 8s; }
#cta .moving-waves > use:nth-child(4) { animation-duration: 12s; }

/* Responsive */
@media (max-width: 768px) {
    #cta {
        padding-top: 80px !important;
    }
    .waves-cta-container {
        top: -60px;
        height: 60px;
    }
}