/**
Theme Name: fucine
Author: Enrico Baravoglia
Author URI: https://www.fucine.it
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fucine
Template: astra
*/

/* --- RESET completo --- */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow-x: hidden !important;
}

body.page, body.page .site, body.page .site-content, body.page .ast-container, body.page #primary, body.page .entry-content, body.page #content, body.page .ast-separate-container .ast-article-single {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

body, .info-content, #info-panel h2, #info-panel h3, #info-panel p, #info-panel a {
    font-family: 'Dosis', sans-serif !important;
}

/* --- Sezione video fullscreen --- */
#fucine-fullscreen-video {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    background: #000;
    z-index: -1;
}

#fucine-fullscreen-video video {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 1;
}

/* --- Logo centrale --- */
#fucine-fullscreen-video .overlay {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    pointer-events: none !important;
}

#fucine-fullscreen-video .logo {
    width: 191px;
    height: 65px;
    opacity: 0.95;
    animation: fadeInUp 1.5s ease-in-out 0.3s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(25px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* --- Pulsante INFO  --- */
a.bottom-right-box {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px) brightness(0.9);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2147483647;
    transition: all 0.25s ease-in-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    text-decoration: none;
    cursor: pointer;
}

a.bottom-right-box:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: scale(1.08);
}

.arrow-icon {
    width: 26px;
    height: 26px;
    display: block;
    transition: transform 0.3s ease;
}

a.bottom-right-box:hover .arrow-icon {
    transform: translateX(2px);
}

/* --- Pannello informativo nascosto --- */
#info-panel {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px) brightness(0.9);
    color: #fff;
    overflow: hidden;
    z-index: 2147483648;
    transform-origin: bottom right;
    transform: scale(1);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    pointer-events: none;
}

/* --- Griglia due righe x due colonne perfettamente allineata --- */
.two-columns {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    margin-top: 1.5rem;
}

.line {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.col-1, .col-2 {
    flex: 1 1 45%;
    min-width: 200px;
}

/* --- Allineamento titoli e testi per coerenza visiva --- */
.col-1 h3, .col-2 h3 {
    margin-top: 0;
    margin-bottom: 0.4rem;
}

/* --- Stato attivo: espansione verso il logo --- */
#info-panel.active {
    width: 45vw;
    height: 60vh;
    bottom: 22.5vh;
    right: 27.5vw;
    border-radius: 24px;
    opacity: 1;
    pointer-events: auto;
    transition: all 0.9s cubic-bezier(0.25, 1, 0.3, 1);
    padding: 15px 0;
}

/* --- Contenuto interno --- */
.info-content {
    opacity: 0;
    transition: opacity 0.6s ease 0.4s;
    text-align: left;
    padding: 40px 55px;
    overflow-y: auto;
    height: 100%;
    line-height: 1.6;
}

#info-panel.active .info-content {
    opacity: 1;
}

#info-panel h2 {
    font-size: 30px;
    margin-bottom: 25px;
    color: #fff;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.26);
    padding-bottom: 20px;
    font-weight: 500;
}

#info-panel h3 {
    font-size: 22px;
    font-weight: 500;
    margin-top: 1.2rem;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    color: #ffffff;
}

#info-panel p {
    font-size: 16px;
    color: #ffffff;
    margin: 0.3rem 0;
}

#info-panel a {
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

#info-panel a:hover {
    border-bottom-color: rgba(255, 255, 255, 0.8);
}

/* --- Mobile tweaks --- */
@media (max-width: 620px) {
    #fucine-fullscreen-video .logo {
        width: 150px;
        height: auto;
    }

    a.bottom-right-box, #info-panel {
        width: 46px;
        height: 46px;
        bottom: 16px;
        right: 16px;
        border-radius: 10px;
    }

    .arrow-icon {
        width: 22px;
        height: 22px;
    }

    #info-panel.active {
        width: 80vw;
        height: 65vh;
        top: 17vh;
        bottom: 17vh;
        right: 10vw;
        left: 10vw;
    }

    .info-content {
        padding: 30px;
    }

    .two-columns {
        flex-direction: column;
        gap: 10px;
    }

    #info-panel h2 {
        font-size: 30px;
        margin-bottom: 25px;
        text-align: left;
    }

    #info-panel h3 {
        font-size: 24px;
    }

    #info-panel p {
        font-size: 17px;
    }

    .line {
        flex-direction: column;
        gap: 12px;
    }
}

/* --- small tablet tweaks --- */
@media (min-width: 620px) and (max-width: 768px) {
  
    #info-panel.active {
        width: 70vw;
        height: auto;
        top: 20vh;
        right: 10vw;
        left: 10vw;
    }

    .info-content {
        padding: 30px;
        font-size: 0.95rem;
    }

    .two-columns {
        flex-direction: column;
        gap: 10px;
    }

    #info-panel h3 {
        font-size: 24px !important;
    }

    .col-1, .col-2 {
        min-width: 190px;
    }
}

/* --- big tablet tweaks --- */
@media (min-width: 768px) and (max-width: 1100px) {
  
    #info-panel.active {
        width: 60vw;
        height: auto;
        top: 30%;
        right: 10vw;
        left: 10vw;
        bottom: unset;
    }

    .info-content {
        padding: 30px;
        font-size: 0.95rem;
    }

    .two-columns {
        flex-direction: column;
        gap: 10px;
    }

    #info-panel h3 {
        font-size: 24px !important;
    }

    .col-1, .col-2 {
        min-width: 190px;
    }
}

/* --- Giant tweaks --- */

/* --- Giant tweaks --- */
@media (min-width: 1600px) and (max-width: 5000px) {
    #info-panel.active {
        width: 40vw;
        height: auto;
        top: 30%;
        right: 10vw;
        left: 10vw;
        bottom: unset;
    }

    .info-content {
        font-size: 0.95rem;
    }

    .two-columns {
        flex-direction: column;
        gap: 10px;
    }
}

/* --- Video Credits --- */
#video-credit {
    position: fixed;
    bottom: 20px;
    left: 30px;
    font-size: 13px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: rgba(255, 255, 255, 0.85);
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 20;
    pointer-events: none;
    /* non interferisce con click */
    backdrop-filter: blur(4px);
    padding: 4px 8px;
    border-radius: 4px;
}

#video-credit.visible {
    opacity: 1;
}
