/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

:root {
    --black: #000000;
    --white: #FFFFFF;
    --purple: #572375;
    --velvet-plum: #9B467B;
    --orange: #FFA055;
    --sand: #F9E5D2;
    --soft-white: #F7F5F0;
}

/* Nascondi header/footer per splash page */
.page-template-page-home .site-header,
.page-template-page-home .site-footer,
.page-template-page-home #masthead,
.page-template-page-home #colophon {
    display: none !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@keyframes backgroundFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(-10px, -5px) scale(1.02);
    }
    50% {
        transform: translate(5px, -10px) scale(1.01);
    }
    75% {
        transform: translate(-5px, 5px) scale(1.015);
    }
}

@keyframes cornerFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(8px, -8px) rotate(0.5deg);
    }
    66% {
        transform: translate(-5px, 5px) rotate(-0.3deg);
    }
}

.col-6 {
    width: 50%;
}

.velvet-plum {
    color: var(--velvet-plum);
}

.col-left {
    display: flex;
    align-items: center;
    justify-content: center;
}

body,
html {
    height: 100%;
    font-family: "Jost", sans-serif;
}

/* Solo per la splash page */
.page-template-page-home body,
.page-template-page-home html {
    overflow: hidden;
    overflow-y: hidden !important;
}

.splash-container {
    position: relative;
    width: 100vw;
    height: 100svh;
    background: var(--purple);
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.splash-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("images/BG-logo-gradient.png") no-repeat -20px -50px;
    background-size: cover;
    z-index: 5;
}

.corner-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url("images/BG-corner.png") no-repeat top left;
    background-size: contain;
    z-index: 5;
}

.logo-container {
    position: relative;
    width: 50%;
    height: 100vh;
    z-index: 10;
    cursor: default;
    transition: all 0.8s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    transition: all 0.6s ease;
}

.open-panel-btn {
    background-color: var(--soft-white) !important;
    width: 40px !important;
    height: 40px !important;
    position: relative;
    overflow: hidden;
}

.open-panel-btn img {
    width: 40px !important;
    height: 40px !important;
    filter: unset !important;
    max-width: none !important;
    max-height: none !important;
    transition: all 0.3s ease;
    transform-origin: center;
}

.splash-container.panel-open .open-panel-btn img {
    transform: rotate(45deg);
}

.white-panel {
    position: fixed;
    top: 0;
    right: -50%;
    width: 50%;
    height: 100vh;
    background: var(--soft-white);
    z-index: 20;
    display: flex;
    text-align: right;
    align-items: center;
    justify-content: center;
    transition: right 0.8s ease;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
}

.expanded-tagline {
    font-family: "AgencyFB", sans-serif !important;
    font-size: 170px;
    color: var(--purple);
    font-weight: bold;
    line-height: 0.95;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease 0.3s;
}

.white-panel.active {
    right: 0;
}

.white-panel.active .expanded-tagline {
    opacity: 1;
    transform: translateX(0);
}

/* Testo in basso a sinistra del pannello */
.panel-bottom-text {
    position: absolute !important;
    bottom: 30px !important;
    left: 30px !important;
    color: var(--purple);
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease 0.4s;
    z-index: 25;
    max-width: 100%;
    line-height: 1.4;
    text-align: left;
}

.white-panel.active .panel-bottom-text {
    opacity: 1;
    transform: translateY(0);
}

.close-btn {
    position: absolute !important;
    bottom: 30px !important;
    right: 30px !important;
    width: 40px;
    height: 40px;
    padding: 0 !important;
    background: rgba(87, 35, 117, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--purple);
    font-size: 20px;
    transition: all 0.3s ease;
    opacity: 0;
    z-index: 25;
}

.white-panel.active .close-btn {
    opacity: 1;
    transition-delay: 0.5s;
}

.close-btn:hover {
    background: rgba(87, 35, 117, 0.2);
}

/* EMAIL dentro social container */
.email-info a {
    z-index: 10;
    color: var(--soft-white) !important;
    font-size: 0.9rem;
    transition: opacity 0.6s ease !important;
    display: flex;
    align-items: center;
    margin-right: 15px;
    padding-right: 15px;
    text-decoration: none;
}


/* Quando il pannello è aperto */
.splash-container.panel-open .email-info {
    opacity: 0.7;
}

/* SOCIAL CONTAINER - in basso a destra */
.social-container {
    position: absolute;
    bottom: 30px;
    right: 30px;
    z-index: 10;
    display: flex;
    gap: 15px;
    align-items: center;
    transition: transform 0.8s ease, right 0.8s ease;
}

/* Quando il pannello è aperto, sposta i social a sinistra (SOLO DESKTOP) */
.splash-container.panel-open .social-container {
    transform: translateX(-25%);
    right: 50%;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.social-link img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

/* MOBILE COMPLETO - max 992px */
@media (max-width: 992px) {

    /* Blocco scroll mobile */
    body,
    html {
        overflow: hidden !important;
        overflow-y: hidden !important;
        height: 100svh !important;
        position: relative;
        touch-action: none !important;
    }

    .col-6 {
        width: 100%;
    }
    .splash-overlay{
        width:150%;
    }
    /* Layout container mobile */
    .splash-container {
        flex-direction: column;
        justify-content: flex-start;
        height: 100svh;
       
    }

    /* Logo container mobile */
    .logo-container {
        width: 100%;
        height: 50svh;
        /* Metà superiore */
        transition: all 0.8s ease;
    }

    /* Logo si sposta in alto quando pannello aperto */
    .splash-container.panel-open .logo-container {
        transform: translateY(-10%);
        height: 50svh;
    }

    /* PANNELLO BIANCO MOBILE - dal basso */
    .white-panel {
        position: fixed;
        width: 100% !important;
        height: 50svh !important;
        top: auto !important;
        bottom: -50svh !important;
        /* Nascosto sotto */
        right: 0 !important;
        left: 0 !important;
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        align-items: center;
        text-align: center;
        transition: bottom 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
        z-index: 20;
    }

    /* Pannello attivo - si apre dal basso */
    .white-panel.active {
        bottom: 0 !important;
        /* Si apre completamente */
        right: 0 !important;
        top: auto !important;
    }

    /* Tagline mobile */
    .expanded-tagline {
        font-size: 120px !important;
        text-align: center;
        margin: 0;
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.6s ease 0.2s;
    }

    .white-panel.active .expanded-tagline {
        opacity: 1;
        transform: translateY(0);
    }

    /* Testo in basso mobile - centrato */
    .panel-bottom-text {
        position: relative !important;
        bottom: unset !important;
        left: unset !important;
        transform: translateX(0) translateY(0) !important;
        text-align: center !important;
        font-size: 0.75rem !important;
        max-width: 90% !important;
        line-height: 1.3 !important;
        opacity: 0;
        transition: all 0.6s ease 0.4s;
    }

    .white-panel.active .panel-bottom-text {
        opacity: 1;
        transform: translateX(0) translateY(0) !important;
    }

    /* Close button mobile */
    .close-btn {
        position: absolute !important;
        bottom: 15px !important;
        right: 15px !important;
        width: 40px !important;
        height: 40px !important;
        opacity: 0;
        transition: all 0.3s ease 0.5s;
    }

    .white-panel.active .close-btn {
        opacity: 1;
    }

    /* SOCIAL CONTAINER MOBILE */
    .social-container {
        position: fixed !important;
        /* Sempre visibili */
        bottom: 25px !important;
        right: 50% !important;
        transform: translateX(50%) !important;
        left: auto !important;
        flex-direction: row;
        gap: 12px;
        z-index: 30;
        /* Sopra tutto */
        transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    /* Social quando pannello aperto - si spostano a metà schermo */
    .splash-container.panel-open .social-container {
        bottom: 50svh !important;
        /* A metà dello schermo */
        transform: translateX(50%) translateY(-50%) !important;
        right: 50% !important;
    }

    /* Email mobile con separatore */
    .email-info {
        margin-right: 8px;
        padding-right: 8px;
    }

    .email-info a {
        font-size: 0.95rem !important;
        margin-right: 8px;
        padding-right: 8px;
        color: var(--soft-white) !important;
    }

    /* Social link mobile */
    .social-link {
        width: 35px !important;
        height: 35px !important;
    }

    .social-link img {
        width: 16px !important;
        height: 16px !important;
    }

    .open-panel-btn img {
        width: 40px !important;
        height: 40px !important;
    }
}

/* PORTRAIT MOBILE */
@media (max-width: 992px) and (orientation: portrait) {
    .expanded-tagline {
        font-size: 80px !important;
    }

    .social-link {
        width: 40px !important;
        height: 40px !important;
    }

    .social-link img {
        width: 20px !important;
        height: 20px !important;
    }

    .open-panel-btn img {
        width: 40px !important;
        height: 40px !important;
    }
}