/*
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
*/

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,800&family=Inter:wght@400&display=swap');


/* =========================================================
   GLOBALE
   ========================================================= */

.cta-arrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
} /* CTA con freccia */

.cta-arrow::after {
    content: "→";
    display: inline-block;
    line-height: 1;
    color: currentColor;
    transform: translateX(0);
} /* Freccia CTA */

.cta-arrow:hover::after {
    animation: bressan-arrow 1.4s ease-in-out infinite;
} /* Animazione freccia al passaggio */

@keyframes bressan-arrow {
    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(5px);
    }
} /* Animazione CTA */


/* =========================================================
   MENU
   ========================================================= */

#site-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background-color: #f6f3ee;
    box-shadow: none;
    transition: box-shadow 0.3s ease;
} /* Header */

#site-header.is-scrolled {
    box-shadow: 0 5px 18px rgba(23, 20, 22, 0.06);
} /* Ombra durante lo scroll */

#site-header .site-navigation ul.menu > li > a {
    color: var(--e-global-color-primary);
    transition: color 0.25s ease;
} /* Link menu principale */

#site-header .site-navigation ul.menu > li > a:hover {
    color: var(--e-global-color-accent);
} /* Hover menu */

#site-header .site-navigation ul.menu > li.current-menu-item > a,
#site-header .site-navigation ul.menu > li.current_page_item > a {
    color: var(--e-global-color-accent);
} /* Voce attiva */


/* =========================================================
   FOOTER
   ========================================================= */

#contatti,
#vetrate-artistiche,
#glass-art {
    scroll-margin-top: 90px;
} /* Offset anchor link */

.bressan-footer {
    padding: 72px 24px 24px;
    background-color: #171416;
    color: #ffffff;
} /* Footer */

.bressan-footer__inner {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 0.9fr 0.9fr;
    gap: 80px;
    align-items: start;
} /* Struttura footer */

.bressan-footer__brand h2 {
    margin: 0 0 20px;
    font-family: "Fraunces", serif;
    font-size: clamp(36px, 3vw, 48px);
    font-weight: 600;
    line-height: 1.08;
    color: #ffffff;
} /* Titolo brand */

.bressan-footer__brand p {
    margin: 0;
    font-family: "Inter", sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.72);
} /* Testo brand */

.bressan-footer__column h3 {
    margin: 4px 0 18px;
    font-family: "Inter", sans-serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #ffffff;
} /* Titoli colonne */

.bressan-footer__links,
.bressan-footer__nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
} /* Link footer */

.bressan-footer a {
    font-family: "Inter", sans-serif;
    font-size: 17px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    transition: color 0.25s ease;
} /* Stile link footer */

.bressan-footer a:hover {
    color: var(--e-global-color-accent);
} /* Hover link footer */

.bressan-footer__bottom {
    width: 100%;
    max-width: 1320px;
    margin: 60px auto 0;
    padding-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
} /* Fascia copyright */

.bressan-footer__copyright {
    margin: 0;
    font-family: "Inter", sans-serif;
    font-size: 15px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.52);
} /* Testo copyright */

.bressan-footer__legal {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
} /* Link legali */

.bressan-footer__legal a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    transition: color 0.25s ease, border-color 0.25s ease;
} /* Pulsanti legali */

.bressan-footer__legal a:hover {
    color: var(--e-global-color-accent);
    border-color: var(--e-global-color-accent);
} /* Hover pulsanti legali */


/* =========================================================
   RESTAURI
   SLIDER "IL RESTAURO, DA VICINO"
   ========================================================= */

.restauri-slider {
    position: relative;
    width: 100%;
} /* Slider */

.restauri-slider .gallery {
    position: relative;
    left: 50%;
    display: flex;
    flex-wrap: nowrap;
    width: 100vw;
    max-width: none;
    padding-left: max(24px, calc((100vw - 1320px) / 2));
    padding-right: max(24px, calc((100vw - 1320px) / 2));
    box-sizing: border-box;
    margin: 0;
    gap: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: auto;
    scrollbar-width: none;
    cursor: grab;
    user-select: none;
    transform: translateX(-50%);
    touch-action: pan-y;
} /* Galleria slider */

.restauri-slider .gallery::-webkit-scrollbar {
    display: none;
} /* Scrollbar nascosta */

.restauri-slider .gallery.is-dragging {
    cursor: grabbing;
} /* Stato durante il drag */

.restauri-slider .gallery-item {
    float: none !important;
    flex: 0 0 clamp(460px, 42vw, 620px);
    width: clamp(460px, 42vw, 620px) !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
} /* Singola slide */

.restauri-slider .gallery-icon {
    width: 100%;
    height: 460px;
    overflow: hidden;
} /* Contenitore immagine */

.restauri-slider .gallery-icon a {
    display: block;
    width: 100%;
    height: 100%;
} /* Link immagine */

.restauri-slider .gallery-icon img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    margin: 0;
    object-fit: cover;
    border: 0 !important;
    user-select: none;
    -webkit-user-drag: none;
} /* Immagine slider */

.restauri-slider .gallery-caption {
    margin: 14px 0 0;
    padding: 0;
    font-family: "Inter", sans-serif;
    font-size: 15px;
    line-height: 1.5;
    text-align: left;
    color: #6e6862;
} /* Didascalia */

.restauri-slider__progress {
    position: relative;
    width: min(520px, calc(100% - 48px));
    height: 2px;
    margin: 32px auto 0;
    overflow: hidden;
    background-color: rgba(221, 213, 204, 0.40);
} /* Barra di scorrimento */

.restauri-slider__progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: #ddd5cc;
    transition: left 0.08s linear, width 0.2s ease;
} /* Parte attiva barra */


/* =========================================================
   GALLERY MASONRY
   ========================================================= */

.masonry-gallery .gallery {
    column-count: 3;
    column-gap: 18px;
    margin: 0;
    padding: 0;
} /* Galleria masonry */

.masonry-gallery .gallery-item {
    float: none !important;
    display: inline-block;
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 18px !important;
    padding: 0 !important;
    vertical-align: top;
    break-inside: avoid;
} /* Singolo elemento */

.masonry-gallery .gallery-icon {
    width: 100%;
} /* Contenitore immagine */

.masonry-gallery .gallery-icon img {
    display: block;
    width: 100% !important;
    height: auto !important;
    margin: 0;
    border: 0 !important;
    object-fit: unset;
} /* Immagine */


/* =========================================================
   404
   ========================================================= */

.custom-404 {
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    box-sizing: border-box;
}

.custom-404__inner {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.custom-404__number {
    margin: 0 0 50px;
    font-family: "Fraunces", serif;
    font-size: clamp(120px, 20vw, 280px);
    font-weight: 800;
    line-height: 0.85;
    letter-spacing: -0.04em;
    color: #111111;
}

.custom-404__title {
    margin: 0 0 20px;
    font-family: "Fraunces", serif;
    font-size: clamp(32px, 5vw, 60px);
    font-weight: 800;
    line-height: 1.1;
    color: #111111;
}

.custom-404__text {
    max-width: 650px;
    margin: 0 auto 45px;
    font-family: "Inter", sans-serif;
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 400;
    line-height: 1.6;
    color: #111111;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1024px) {

    #site-header {
        position: sticky;
        top: 0;
        z-index: 9999;
        width: 100%;
        background-color: #f6f3ee;
    } /* Header tablet */

    #site-header .header-inner {
        width: 100%;
        max-width: none !important;
        margin: 0 auto;
        padding: 16px 28px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 76px;
        box-sizing: border-box;
    } /* Contenitore header tablet */

    #site-header .site-branding {
        flex: 0 1 auto;
        margin: 0;
    } /* Branding */

    #site-header .site-title {
        margin: 0;
        line-height: 1;
    } /* Titolo sito */

    #site-header .site-title a {
        display: inline-block;
        font-family: "Fraunces", serif;
        font-size: 27px;
        font-weight: 600;
        line-height: 1;
        color: var(--e-global-color-primary);
        text-decoration: none;
    } /* Nome sito */

    #site-header.menu-dropdown-tablet .site-navigation {
        display: none !important;
    } /* Menu desktop nascosto */

    #site-header.menu-dropdown-tablet .site-navigation-toggle-holder {
        display: flex !important;
        align-items: center;
        margin-left: auto;
    } /* Contenitore hamburger */

    #site-header .site-navigation-toggle {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        margin: 0;
        padding: 0;
        color: var(--e-global-color-primary);
        background: transparent;
        border: 0;
        border-radius: 0;
        cursor: pointer;
        box-shadow: none;
        appearance: none;
        -webkit-appearance: none;
    } /* Pulsante hamburger */

    #site-header .site-navigation-toggle-icon {
        position: relative;
        display: block;
        width: 26px;
        height: 3px;
        background-color: currentColor;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        transition: background-color 0.2s ease;
    } /* Linea centrale hamburger */

    #site-header .site-navigation-toggle-icon::before,
    #site-header .site-navigation-toggle-icon::after {
        content: "";
        position: absolute;
        left: 0;
        display: block;
        width: 26px;
        height: 3px;
        background-color: currentColor;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        transition: top 0.25s ease, transform 0.25s ease;
    } /* Linee superiore e inferiore hamburger */

    #site-header .site-navigation-toggle-icon::before {
        top: -8px;
    } /* Linea superiore hamburger */

    #site-header .site-navigation-toggle-icon::after {
        top: 8px;
    } /* Linea inferiore hamburger */

    #site-header .site-navigation-toggle[aria-expanded="true"] .site-navigation-toggle-icon {
        background-color: transparent;
    } /* Linea centrale nascosta con menu aperto */

    #site-header .site-navigation-toggle[aria-expanded="true"] .site-navigation-toggle-icon::before {
        top: 0;
        transform: rotate(45deg);
    } /* Prima linea X */

    #site-header .site-navigation-toggle[aria-expanded="true"] .site-navigation-toggle-icon::after {
        top: 0;
        transform: rotate(-45deg);
    } /* Seconda linea X */

    #site-header .site-navigation-dropdown {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        margin: 0;
        padding: 0;
        background-color: #f6f3ee;
        border-top: 1px solid rgba(23, 20, 22, 0.08);
        box-shadow: 0 14px 30px rgba(23, 20, 22, 0.06);
        z-index: 9998;
    } /* Dropdown tablet */

    #site-header .site-navigation-dropdown[aria-hidden="true"] {
        display: none !important;
    } /* Dropdown chiuso */

    #site-header .site-navigation-dropdown[aria-hidden="false"] {
        display: block !important;
    } /* Dropdown aperto */

    #site-header .site-navigation-dropdown ul.menu {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 16px 28px 28px;
        display: flex;
        flex-direction: column;
        list-style: none;
        box-sizing: border-box;
    } /* Lista menu tablet */

    #site-header .site-navigation-dropdown ul.menu > li {
        width: 100%;
        margin: 0;
        padding: 0;
        border-bottom: 1px solid rgba(23, 20, 22, 0.10);
    } /* Voce menu tablet */

    #site-header .site-navigation-dropdown ul.menu > li:last-child {
        border-bottom: 0;
    } /* Ultima voce menu tablet */

    #site-header .site-navigation-dropdown ul.menu > li > a {
        display: block;
        width: 100%;
        padding: 19px 0;
        font-family: "Fraunces", serif;
        font-size: 34px;
        font-weight: 500;
        line-height: 1.1;
        color: var(--e-global-color-primary);
        text-decoration: none;
        transition: color 0.25s ease, padding-left 0.25s ease;
    } /* Link menu tablet */

    #site-header .site-navigation-dropdown ul.menu > li > a:hover {
        color: var(--e-global-color-accent);
        padding-left: 8px;
    } /* Hover menu tablet */

    #site-header .site-navigation-dropdown ul.menu > li.current-menu-item > a,
    #site-header .site-navigation-dropdown ul.menu > li.current_page_item > a {
        color: var(--e-global-color-accent);
        background-color: transparent !important;
    } /* Voce attiva tablet */

    #site-header .site-navigation-dropdown ul.menu > li.current-menu-item,
    #site-header .site-navigation-dropdown ul.menu > li.current_page_item {
        background-color: transparent !important;
    } /* Sfondo voce attiva */

    .bressan-footer__inner {
        grid-template-columns: 1.4fr 1fr 1fr;
        gap: 40px;
    } /* Footer tablet */

    .restauri-slider .gallery-item {
        flex-basis: 62vw;
        width: 62vw !important;
    } /* Slide restauri tablet */

    .restauri-slider .gallery-icon {
        height: 380px;
    } /* Immagine restauri tablet */

    .restauri-slider__progress {
        width: min(420px, calc(100% - 48px));
    } /* Barra restauri tablet */

    .masonry-gallery .gallery {
        column-count: 2;
    } /* Masonry tablet */

    .custom-404 {
        min-height: 72vh;
        padding: 70px 30px;
    }

    .custom-404__number {
        font-size: clamp(110px, 18vw, 200px);
        margin-bottom: 40px;
    }

    .custom-404__title {
        font-size: clamp(34px, 5vw, 50px);
    }

    .custom-404__text {
        font-size: 18px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    #site-header .header-inner {
        min-height: 68px;
        padding: 12px 20px;
    } /* Header mobile */

    #site-header .site-title a {
        font-size: 24px;
    } /* Nome sito mobile */

    #site-header .site-navigation-toggle {
        width: 40px;
        height: 40px;
    } /* Pulsante hamburger mobile */

    #site-header .site-navigation-toggle-icon,
    #site-header .site-navigation-toggle-icon::before,
    #site-header .site-navigation-toggle-icon::after {
        width: 24px;
    } /* Larghezza hamburger mobile */

    #site-header .site-navigation-dropdown ul.menu {
        padding: 10px 20px 24px;
    } /* Dropdown mobile */

    #site-header .site-navigation-dropdown ul.menu > li > a {
        padding: 17px 0;
        font-size: 30px;
    } /* Link menu mobile */

    .bressan-footer {
        padding: 56px 20px 24px;
        text-align: center;
    } /* Footer mobile */

    .bressan-footer__inner {
        grid-template-columns: 1fr;
        gap: 42px;
        justify-items: center;
    } /* Colonne footer mobile */

    .bressan-footer__brand,
    .bressan-footer__column {
        width: 100%;
        text-align: center;
    } /* Sezioni footer mobile */

    .bressan-footer__brand h2 {
        font-size: 38px;
    } /* Titolo footer mobile */

    .bressan-footer__links,
    .bressan-footer__nav {
        align-items: center;
    } /* Link footer centrati */

    .bressan-footer__bottom {
        margin-top: 48px;
        flex-direction: column;
        justify-content: center;
        gap: 18px;
        text-align: center;
    } /* Fascia copyright mobile */

    .bressan-footer__copyright {
        text-align: center;
    } /* Copyright mobile */

    .bressan-footer__legal {
        justify-content: center;
        flex-wrap: wrap;
    } /* Pulsanti legali mobile */

    .restauri-slider .gallery {
        gap: 14px;
        padding-left: 20px;
        padding-right: 20px;
    } /* Galleria restauri mobile */

    .restauri-slider .gallery-item {
        flex-basis: 84vw;
        width: 84vw !important;
    } /* Slide restauri mobile */

    .restauri-slider .gallery-icon {
        height: 300px;
    } /* Immagine restauri mobile */

    .restauri-slider__progress {
        width: min(280px, calc(100% - 40px));
        margin-top: 24px;
    } /* Barra restauri mobile */

    .masonry-gallery .gallery {
        column-count: 1;
        column-gap: 0;
    } /* Masonry mobile */

    .masonry-gallery .gallery-item {
        margin-bottom: 14px !important;
    } /* Elemento masonry mobile */

    .custom-404 {
        min-height: 70vh;
        padding: 60px 20px;
    }

    .custom-404__inner {
        max-width: 100%;
    }

    .custom-404__number {
        font-size: 120px;
        line-height: 0.9;
        letter-spacing: -0.03em;
        margin-bottom: 35px;
    }

    .custom-404__title {
        font-size: 32px;
        line-height: 1.15;
        margin-bottom: 18px;
    }

    .custom-404__text {
        font-size: 17px;
        line-height: 1.55;
        margin-bottom: 35px;
    }
}