/*
1. Google Fonts
2. Variabili globali (:root)
3. Fondamenta (html, body)
4. Tipografia
5. Componenti
6. Colori e background
7. Sizing
8. Form
9. Altri layout
10. Animazioni
*/


/* ==========================================================
   1) FONTS
========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,100..900;1,100..900&display=swap');


/* ==========================================================
   2) VARIABILI
========================================================== */

:root {
    --primary-color: #3C4A53;
    --background-color: #ffffff;
    --background-color-blue: #002B3C;    
    --background-color-yellow: #CDD500;
    --link-hover-color: #CDD500;

    --custom-radius: 0px;
    --btn-radius: 19px 19px 19px 19px;
    --btn-padding: 0.5rem 1rem;

    --section-padding: 120px;

    --main-font: "Archivo", sans-serif;
}


/* ==========================================================
   3) FONDAMENTA
========================================================== */

html {
    font-size: 16px;
    scroll-behavior: smooth;
    color: var(--primary-color);
}

body {
    background-color: var(--background-color);
    color: var(--primary-color);
    font-size: 1rem;
    font-family: var(--main-font);
    line-height: 1.6;
}


/* ==========================================================
   4) TIPOGRAFIA
========================================================== */

h1,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    color: var(--primary-color);
}

h1 {
    font-size: 5rem;
    line-height: 1;
    letter-spacing: -0.25rem;
}

h2 {
    font-size: 4rem;
    line-height: 1.1;
    color: var(--primary-color);
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 2rem;
}

h6 {
    color: var(--primary-color);
}

p {
    margin-bottom: 0;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

.text-xxl {
    font-size: 45px;
    line-height: 1;
}

.text-xl {
    font-size: 30px;
    line-height: 1;
}

.text-md {
    font-size: 20px;
    line-height: 1.2;
}

.font-17 {
    font-size: 17px;
    line-height: 1.2;
}

.bold,
b,
strong {
    font-weight: 700;
}


/* ==========================================================
   5) COMPONENTI
========================================================== */


/* ----------------------------------------------------------
   NAVBAR
---------------------------------------------------------- */

.navbar {
    background-color: #ffffff;

    padding-top: 3rem;
    padding-bottom: 3rem;

    will-change: padding;

    transition:
        padding-top 0.35s ease,
        padding-bottom 0.35s ease,
        box-shadow 0.35s ease,
        background-color 0.35s ease;
}


/* Navbar compatta dopo lo scroll */

.navbar.scrolled {
    background-color: #ffffff;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}


/* ----------------------------------------------------------
   LOGO
---------------------------------------------------------- */

.navbar-brand {
    position: relative;
    display: inline-block;
    margin: 0;
}

.navbar-logo {
    display: block;
    width: 170px;
    height: auto;

    transition:
        width 0.35s ease,
        opacity 0.25s ease;
}


/*
 * Logo standard:
 * navbar bianca
 */

.navbar-logo-default {
    display: block;
}


/*
 * Logo bianco:
 * nascosto normalmente
 */

.navbar-logo-dark {
    display: none;
}


/* Logo più piccolo quando la navbar è compatta */

.navbar.scrolled .navbar-logo {
    width: 130px;
}


/* ----------------------------------------------------------
   MENU
---------------------------------------------------------- */

.nav-item {
    padding: 0.5rem 10px;
}

.nav-link {
    padding: 0 !important;
    font-size: 15px;
    line-height: 1;
    font-weight: 700;
    color: #254152;
    transition: color 0.25s ease;
}

.nav-link:hover {
    color: var(--background-color-yellow);
}

.current-menu-item:not(.menu-anchor-item) > .nav-link,
.nav-item.is-active > .nav-link {
    color: var(--background-color-yellow);
}


/* ----------------------------------------------------------
   SEPARATORI MENU
---------------------------------------------------------- */

@media (min-width: 1200px) {

    #navbar .navbar-nav {
        align-items: center;
    }

    #navbar .navbar-nav > .nav-item {
        display: flex;
        align-items: flex-end;
    }

    #navbar .navbar-nav > .nav-item > .nav-link {
        padding-left: 2px !important;
        padding-right: 2px !important;
    }

    /*#navbar .navbar-nav > .nav-item:not(:last-child)::after {
        content: "";

        display: block;
        flex: 0 0 auto;

        width: 20px;
        height: 2px;

        margin: 0;

        background-color: #254152;

        transition: background-color 0.25s ease;
    }*/

}


/* ----------------------------------------------------------
   CONTATTI NAVBAR
---------------------------------------------------------- */

.navbar-contacts {
    font-size: 14px;
    line-height: 1.2;

    font-weight: 300;

    color: #254152;

    transition:
        color 0.25s ease,
        font-size 0.35s ease;
}

.navbar-contacts a {
    color: inherit;
}

.navbar-contacts a:hover {
    color: var(--link-hover-color);
}


/* Contatti leggermente più piccoli con navbar compatta */

.navbar.scrolled .navbar-contacts {
    font-size: 12px;
}


/* ==========================================================
   HEADER DARK
========================================================== */

/* Navbar iniziale scura */

body.header-dark #navbar {
    background-color: #162732;
}
.bg-banner-dark {
    
    background-color: #162732;
}

/* Menu bianco */

body.header-dark #navbar .nav-link {
    color: #ffffff;
}

body.header-dark #navbar .nav-link:hover,
body.header-dark #navbar .current-menu-item:not(.menu-anchor-item) > .nav-link,
body.header-dark #navbar .nav-item.is-active > .nav-link {
    color: var(--background-color-yellow)
}


/* Contatti bianchi */

body.header-dark #navbar .navbar-contacts,
body.header-dark #navbar .navbar-contacts a {
    color: #ffffff;
}


/* Separatore menu bianco */

/*@media (min-width: 1200px) {

    body.header-dark #navbar
    .navbar-nav > .nav-item:not(:last-child)::after {
        background-color: #ffffff;
    }

}*/


/* ----------------------------------------------------------
   LOGO HEADER DARK
---------------------------------------------------------- */

/* Nascondo il logo scuro */

body.header-dark .navbar-logo-default {
    display: none;
}


/* Mostro il logo bianco */

body.header-dark .navbar-logo-dark {
    display: block;
}


/* ==========================================================
   HEADER DARK - STATO SCROLLED
========================================================== */

body.header-dark #navbar.scrolled {
    background-color: #ffffff;
}


/* Logo */

body.header-dark #navbar.scrolled .navbar-logo-default {
    display: block;
}

body.header-dark #navbar.scrolled .navbar-logo-dark {
    display: none;
}


/* Menu */

body.header-dark #navbar.scrolled .nav-link {
    color: #254152;
}

body.header-dark #navbar.scrolled .nav-link:hover,
body.header-dark #navbar.scrolled .current-menu-item:not(.menu-anchor-item) > .nav-link,
body.header-dark #navbar.scrolled .nav-item.is-active > .nav-link {
    color: var(--background-color-yellow);
}


/* Contatti */

body.header-dark #navbar.scrolled .navbar-contacts,
body.header-dark #navbar.scrolled .navbar-contacts a {
    color: #254152;
}


/* Separatori */

@media (min-width: 1200px) {

    body.header-dark #navbar.scrolled
    .navbar-nav > .nav-item:not(:last-child)::after {
        background-color: #254152;
    }

}


/* ----------------------------------------------------------
   NAVBAR TOGGLER
---------------------------------------------------------- */

.navbar-toggler,
.navbar-toggler:focus,
.navbar-toggler:focus-within {
    border: 0;
    box-shadow: none;
}


/*
 * Hamburger bianco quando siamo
 * sull'header dark non scrollato
 */

body.header-dark #navbar:not(.scrolled) .navbar-toggler {
    filter: invert(1);
}


/* ----------------------------------------------------------
   DROPDOWN
---------------------------------------------------------- */

ul.dropdown-menu {
    background-color: transparent;
    border: 0;
}

.dropdown-menu li {
    margin-bottom: 0.1rem;
    background-color: rgba(0, 0, 0, 0.8) !important;
}

.dropdown-menu li a {
    color: #ffffff;
    font-size: 15px;
    font-weight: 300;
}


/* ----------------------------------------------------------
   FOOTER
---------------------------------------------------------- */

#footer ul {
    list-style-type: none;
}

#footer ul li a,
#footer,
#footer p,
#footer a {
    font-size: 15px;
}

.bg-dark ul li a,
.bg-dark,
.bg-dark p,
.bg-dark a {
    color: #ffffff;
}

.logo-footer img {
}


/* ----------------------------------------------------------
   SECTIONS
---------------------------------------------------------- */

section,
.section {
    padding-top: var(--section-padding);
    padding-bottom: var(--section-padding);
}

section.half-section,
.half-section {
    padding-top: calc(var(--section-padding) / 2);
    padding-bottom: calc(var(--section-padding) / 2);
}

section.big-section,
.big-section {
    padding-top: calc(var(--section-padding) * 2);
    padding-bottom: calc(var(--section-padding) * 2);
}


/* ==========================================================
   6) COLORI E BACKGROUND
========================================================== */

a {
    color: var(--primary-color);
}

a:hover {
    color: var(--link-hover-color);
}

.bg-yellow {
    background-color: var(--background-color-yellow);
}


/* ==========================================================
   7) SIZING
========================================================== */

.min-vh-30 {
    min-height: 30vh;
}

.min-vh-50 {
    min-height: 50vh;
}

.min-vh-100 {
    min-height: 100vh;
}

.min-vw-30 {
    min-width: 30vw;
}

.min-vw-50 {
    min-width: 50vw;
}

.min-vw-100 {
    min-width: 100vw;
}

.vw-30 {
    width: 30vw;
}

.vw-50 {
    width: 50vw;
}

.vw-100 {
    width: 100vw;
}


/* ==========================================================
   8) FORM
========================================================== */

.bg-contact {
    background-color: var(--background-color-blue);
}

.contact-form-eutech {
    color: #fff;
}

.contact-form-row {
    margin-bottom: 30px;
}

.contact-form-eutech .contact-input {
    display: block;

    width: 100%;

    padding: 0 0 7px;

    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 0;

    background: transparent;

    color: #fff;

    font-family: var(--main-font);
    font-size: 20px;
    font-weight: 300;
    line-height: 1.2;

    outline: none;

    transition:
        border-color .3s ease,
        color .3s ease;
}


.contact-form-eutech .contact-input::placeholder {
    color: #fff;
    opacity: 1;
}


/* focus */

.contact-form-eutech .contact-input:focus {
    border-color: var(--link-hover-color);
}

.contact-form-message {
    margin-top: 75px;
    margin-bottom: 30px;
}

.contact-form-eutech .contact-textarea {
    display: block;

    width: 100%;
    height: 190px;

    padding: 20px 18px;

    border: 0;
    border-radius: 0;

    resize: none;

    background: rgba(255, 255, 255, 0.18);

    color: #fff;

    font-family: var(--main-font);
    font-size: 20px;
    font-weight: 300;
    line-height: 1.3;

    outline: none;

    transition: background-color .3s ease;
}


.contact-form-eutech .contact-textarea::placeholder {
    color: #fff;
    opacity: 1;
}


.contact-form-eutech .contact-textarea:focus {
    background: rgba(255, 255, 255, 0.23);
}

.contact-form-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 40px;
}

.contact-form-privacy {
    max-width: 600px;

    font-size: 14px;
    line-height: 1.4;
    font-weight: 300;
}


.contact-form-privacy .wpcf7-list-item {
    margin: 0;
}


.contact-form-privacy label {
    display: flex;
    align-items: flex-start;

    gap: 10px;

    cursor: pointer;
}


.contact-form-privacy input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;

    flex: 0 0 auto;

    width: 16px;
    height: 16px;

    margin-top: 2px;

    border: 1px solid #fff;
    border-radius: 0;

    background: transparent;

    cursor: pointer;

    position: relative;
}


.contact-form-privacy input[type="checkbox"]:checked {
    background: #fff;
}


.contact-form-privacy input[type="checkbox"]:checked::after {
    content: "";

    position: absolute;

    left: 4px;
    top: 1px;

    width: 5px;
    height: 9px;

    border: solid #213746;
    border-width: 0 2px 2px 0;

    transform: rotate(45deg);
}


.contact-form-privacy a {
    color: #fff;
    text-decoration: underline;
}


.contact-form-privacy a:hover {
    color: var(--link-hover-color);
}

.contact-submit {
    display: inline-flex;
    align-items: center;

    gap: 20px;

    flex-shrink: 0;

    padding: 0;

    border: 0;
    border-radius: 0;

    background: transparent;

    color: #fff;

    font-family: var(--main-font);
    font-size: 40px;
    line-height: 1;
    font-weight: 300;

    cursor: pointer;
}


.contact-submit img {
    display: block;

    width: 72px;
    height: 72px;

    object-fit: contain;

    transition: transform .3s ease;
}


.contact-submit:hover img {
    transform: rotate(15deg);
}


.contact-submit:hover {
    color: #fff;
}

.contact-form-eutech .wpcf7-spinner {
    position: absolute;
}


/* errori */
.contact-form-eutech .wpcf7-not-valid-tip {
    margin-top: 8px;

    color: #fff;

    font-size: 13px;
}


.contact-form-eutech .wpcf7-response-output {
    margin: 30px 0 0 !important;
    padding: 15px !important;

    border-color: #fff !important;

    color: #fff;
}


@media (max-width: 767.98px) {

    .contact-form-row {
        margin-bottom: 35px;
    }


    .contact-form-message {
        margin-top: 45px;
    }


    .contact-form-eutech .contact-input {
        font-size: 17px;
    }


    .contact-form-eutech .contact-textarea {
        height: 180px;

        font-size: 17px;
    }


    .contact-form-bottom {
        flex-direction: column;
        align-items: flex-start;

        gap: 30px;
    }


    .contact-submit {
        align-self: flex-end;

        gap: 15px;

        font-size: 32px;
    }


    .contact-submit img {
        width: 58px;
        height: 58px;
    }

}


/* ==========================================================
   9) ALTRI LAYOUT
========================================================== */


/* ----------------------------------------------------------
   LOGHI BRAND
---------------------------------------------------------- */

.loghi-brand a img {
    padding-left: 2rem;
    padding-right: 2rem;
    height: 35px;
}

.loghi-brand a:first-child img {
    padding-left: 0;
}

.loghi-brand a:last-child img {
    padding-right: 0;
}


/* ----------------------------------------------------------
   BANNER
---------------------------------------------------------- */

.text-banner {
    font-size: 35px;
    line-height: 1.2;
    color: #fff;
}


/* ----------------------------------------------------------
   LISTA SETTORI
---------------------------------------------------------- */

.list-settori {
    margin-bottom: 0;
}

.list-settori li {
    padding: 10px 0;

    list-style: none;

    font-size: 20px;
}

.list-settori li:first-child {
    padding-top: 0;
}

.list-settori li:last-child {
    padding-bottom: 0;
}

.list-settori li img {
    width: 26px;
}


/* ----------------------------------------------------------
   SECTION INNOVATION
---------------------------------------------------------- */

.section-innovation {
    position: relative;
}

.section-innovation .container-fluid {
    position: relative;
    z-index: 2;
}

.innovation-symbol {
    position: absolute;

    z-index: 1;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    pointer-events: none;
}

.innovation-symbol img {
    display: block;

    width: clamp(220px, 23vw, 300px);
    height: auto;
}


/* ----------------------------------------------------------
   ROW
---------------------------------------------------------- */

.border-bottom-row {
    border-bottom: 1px solid #000;
}

.padding-row {
    padding-top: 35px;
    padding-bottom: 35px;
}


/* ----------------------------------------------------------
   HOME LOTTIE HERO
---------------------------------------------------------- */

/* ----------------------------------------------------------
   HOME LOTTIE
---------------------------------------------------------- */

.eutech-home-lottie {
    position: relative;
    width: 100%;
    aspect-ratio: 2400 / 500;
    overflow: hidden;
}

.eutech-home-lottie__part {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;
}

.eutech-home-lottie__part svg {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.eutech-home-lottie__part--2 {
    visibility: hidden;
}





/* ----------------------------------------------------------
   MARQUEE EUTECH
---------------------------------------------------------- */

.eutech-marquee {
    width: 100%;
    overflow: hidden;
}

.eutech-marquee__track {
    display: flex;

    width: max-content;

    gap: 40px;
}

.eutech-marquee__item {
    flex: 0 0 auto;
}

.eutech-marquee__item img {
    display: block;

    width: auto;
    max-width: none;

    height: clamp(120px, 15vw, 230px);
}



/* ==========================================================
   ECOSYSTEM VIDEO
========================================================== */

.ecosystem-video-section {
    position: relative;
    overflow: hidden;

    /*
     * Questi due padding sostituiscono
     * bg-image e bg-image-text
     */
    padding-top: 250px;
    padding-bottom: 500px;

    background-color: #000;
}


/* ----------------------------------------------------------
   VIDEO
---------------------------------------------------------- */

.ecosystem-bg-video {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    z-index: 0;

    pointer-events: none;
}


/* ----------------------------------------------------------
   FASCIA BLU
---------------------------------------------------------- */

.ecosystem-content {
    position: relative;
    z-index: 1;

    background-color: #203542;
}


/* ----------------------------------------------------------
   TESTO SOPRA IL VIDEO INFERIORE
---------------------------------------------------------- */

.ecosystem-video-title {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 500px;

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 1;

    color: #fff;
}



/* ----------------------------------------------------------
   TESTO GRANDE
---------------------------------------------------------- */

.testo-big {
    font-size: 70px;
    line-height: 1.15;
    font-weight: 100;
}


/* ----------------------------------------------------------
   BTN SCOPRI
---------------------------------------------------------- */

.btn-scopri {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.btn-scopri img {
    height: 35px;
    will-change: transform;
}


.icona-mission img {
    width: 40px;
}
.titolo-icona-mission {
    font-size: 30px;
    line-height: 1.1;
    font-weight: 300;
}


/* ==========================================================
   QUALITY
========================================================== */

.section-quality {
    display: grid;

    grid-template-columns: repeat(12, minmax(0, 1fr));

    grid-template-rows:
        auto      /* QUALITÀ */
        15px      /* SPAZIO */
        auto      /* titolo */ 
        auto      /* testo grande */
        auto;     /* testo piccolo */

    align-items: start;
}


/* ----------------------------------------------------------
   LABEL
---------------------------------------------------------- */

.quality-label {
    grid-column: 3 / 13;
    grid-row: 1;
}

/* ----------------------------------------------------------
   PITTOGRAMMA
---------------------------------------------------------- */

.quality-symbol {
    grid-column: 1 / 5;
    grid-row: 3 / 6;

    align-self: center;
    justify-self: start;
}


.quality-symbol img {
    display: block;

    width: clamp(280px, 27vw, 430px);
    height: auto;
}


/* ----------------------------------------------------------
   CONTENUTO
---------------------------------------------------------- */

.quality-content {
    grid-column: 3 / 13;
    grid-row: 2;

    align-self: center;

    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
}


/* ----------------------------------------------------------
   TITOLO
---------------------------------------------------------- */

.quality-title {
    grid-column: 3 / 13;
    grid-row: 3;

    align-self: end;

    position: relative;
    z-index: 2;

    margin-bottom: 15px;
}


/* TESTO GRANDE */

.quality-main {
    grid-column: 3 / 13;
    grid-row: 4;

    position: relative;
    z-index: 2;

    max-width: 1050px;
}


/* TESTO PICCOLO */

.quality-description {
    grid-column: 7 / 11;
    grid-row: 5;
}



/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 767.98px) {

    .section-quality {
        display: block;
    }

    .quality-label {
        margin-bottom: 30px;
    }

    .quality-symbol {
        margin-bottom: 30px;
    }

    .quality-symbol img {
        width: 220px;
    }

    .quality-content {
        display: block;
    }

    .quality-title {
        font-size: 26px;
    }

    .quality-description {
        margin-top: 30px;
    }

}


/* ==========================================================
   TIMELINE
========================================================== */

.timeline-section {
    position: relative;

    /*
     * Impedisce alla timeline di creare
     * scroll orizzontale sulla pagina.
     */
    overflow: hidden;
}


/* ----------------------------------------------------------
   HEADER
---------------------------------------------------------- */

.timeline-head {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto
        minmax(0, 1fr);

    align-items: center;

    margin-bottom: 30px;
}


/* ----------------------------------------------------------
   NAVIGAZIONE
---------------------------------------------------------- */

.timeline-navigation {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 20px;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}


.timeline-prev,
.timeline-next {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 55px;
    height: 45px;

    padding: 0;

    border: 0;

    background: transparent;

    cursor: pointer;
}


.timeline-prev img,
.timeline-next img {
    display: block;

    width: 45px;
    height: auto;

    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}


.timeline-prev img {
    transform: rotate(180deg);
}


.timeline-next:hover img {
    transform: translateX(7px);
}


.timeline-prev:hover img {
    transform:
        rotate(180deg)
        translateX(7px);
}


/* freccia disabilitata */

.timeline-prev.swiper-button-disabled,
.timeline-next.swiper-button-disabled {
    opacity: 0.25;

    cursor: default;

    pointer-events: none;
}


/*
 * Swiper aggiunge questa classe quando
 * watchOverflow rileva che non serve navigare.
 */
.timeline-navigation .swiper-button-lock {
    display: none !important;
}


/* ==========================================================
   STATO STATICO

   Questa classe viene aggiunta dal JS quando
   tutta la timeline entra nello schermo.
========================================================== */

.timeline-section.timeline-static
.timeline-navigation {
    opacity: 0;

    visibility: hidden;

    pointer-events: none;
}


.timeline-section.timeline-static
.timeline-swiper {
    cursor: default !important;
}


.timeline-section.timeline-static
.swiper-wrapper {
    cursor: default !important;

    /*
     * Centra l'ingombro VISUALE della timeline:
     * non solo le slide, ma anche i testi che sporgono.
     */
    transform:
        translate3d(
            var(--timeline-static-offset, 0px),
            0,
            0
        ) !important;

    transition: none !important;
}


/* ----------------------------------------------------------
   SWIPER
---------------------------------------------------------- */

.timeline-swiper {
    position: relative;

    width: 100%;

    overflow: visible;
}


.timeline-swiper .swiper-wrapper {
    position: relative;

    width: max-content !important;
    min-width: 100%;

    align-items: center;
}


/* ----------------------------------------------------------
   FASCIA BIANCA CENTRALE
---------------------------------------------------------- */

.timeline-swiper .swiper-wrapper::after {
    content: "";

    position: absolute;

    z-index: 30;

    top: 50%;
    left: 0;

    width: 100%;
    height: 20px;

    transform:
        translateY(-50%)
        scaleX(
            var(
                --timeline-band-scale,
                1
            )
        );

    transform-origin: left center;

    background-color: #ffffff;

    pointer-events: none;
}


/* ----------------------------------------------------------
   CERCHI
---------------------------------------------------------- */

.timeline-circle-visual {
    position: absolute;

    z-index: 10;

    top: 50%;
    left: 50%;

    width: var(--circle-size);
    height: var(--circle-size);

    transform:
        translate(-50%, -50%);

    pointer-events: none;
}


.timeline-circle-fill {
    width: 100%;
    height: 100%;

    border-radius: 50%;

    background-color:
        var(--circle-color);

    mix-blend-mode: multiply;

    transform: scale(1);

    transform-origin: 50% 50%;

    will-change: transform;
}


/* ----------------------------------------------------------
   SLIDE
---------------------------------------------------------- */

.timeline-swiper
.swiper-slide.timeline-slide {
    position: relative;

    width:
        var(--circle-size) !important;

    min-width:
        var(--circle-size);

    max-width:
        var(--circle-size);

    flex:
        0 0
        var(--circle-size);

    min-height: 550px;

    display: grid !important;

    grid-template-columns:
        minmax(0, 1fr);

    grid-template-rows:
        minmax(0, 1fr)
        var(--circle-size)
        minmax(0, 1fr);

    /*
     * I cerchi devono sovrapporsi
     * leggermente come nel layout.
     */
    margin-right: -20px;

    overflow: visible;

    background: transparent;
}


/* ==========================================================
   PROTEZIONE ULTIMO EVENTO

   Il testo dell'ultima slide può essere più largo
   del cerchio e uscire dal bordo destro.

   Usiamo "right" e NON transform perché GSAP
   utilizza già transform per animare il testo.
========================================================== */

.timeline-swiper
.timeline-slide:last-child
.timeline-copy {
    position: relative;

    right: 45px;
}


/* ----------------------------------------------------------
   EVENTO
---------------------------------------------------------- */

.timeline-swiper
.timeline-event {
    position: relative;

    z-index: 40;

    width: 0;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-self: center;

    overflow: visible;
}


/* ----------------------------------------------------------
   EVENTO SOPRA
---------------------------------------------------------- */

.timeline-swiper
.timeline-event--top {
    grid-column: 1;
    grid-row: 1;

    align-self: end;
}


/* ----------------------------------------------------------
   EVENTO SOTTO
---------------------------------------------------------- */

.timeline-swiper
.timeline-event--bottom {
    grid-column: 1;
    grid-row: 3;

    align-self: start;
}


/* ----------------------------------------------------------
   COPY
---------------------------------------------------------- */

.timeline-copy {
    width: max-content;

    max-width: 210px;

    flex: 0 0 auto;

    margin: 5px 0;
}


/* ----------------------------------------------------------
   DESCRIZIONE
---------------------------------------------------------- */

.timeline-description {
    width: 100%;
    padding-bottom: 6px;
    border-bottom: 1px solid #9D9D9C;
    white-space: normal;
}

/* testo standard */

.timeline-copy--standard
.timeline-description {
    font-size: 16px;
    line-height: 1.15;
    font-weight: 300;
}

/* testo evidenziato */

.timeline-copy--highlight
.timeline-description {
    font-size: 20px;
    line-height: 1.08;
    font-weight: 600;
}

/* fondazione */

.timeline-copy--foundation
.timeline-description {
    font-size: 34px;
    line-height: 1;
    font-weight: 500;
}


/* ----------------------------------------------------------
   ANNO
---------------------------------------------------------- */

.timeline-year {
    margin-top: 5px;
    font-size: 17px;
    line-height: 1;
    font-weight: 300;
}


/* ----------------------------------------------------------
   LOGO
---------------------------------------------------------- */

.timeline-logo {
    display: inline-block;
    margin-top: 10px;
}

.timeline-logo img {
    display: block;
    width: 80%;
    height: auto;
}


/* ----------------------------------------------------------
   ICONA
---------------------------------------------------------- */

.timeline-icon {
    display: inline-block;
    margin-bottom: 5px;
}


.timeline-icon img {
    display: block;
    height: 20px;
    width: auto;
}


/* ----------------------------------------------------------
   LINEA VERTICALE
---------------------------------------------------------- */

.timeline-stem {
    position: relative;

    width: 1px;
    height: 100px;

    flex: 0 0 100px;

    background-color: #9D9D9C;

    transform:
        scaleY(
            var(
                --stem-scale,
                1
            )
        );

    will-change: transform;
}


/* linea evento sopra */

.timeline-event--top
.timeline-stem {
    transform-origin:
        center bottom;
}


/* linea evento sotto */

.timeline-event--bottom
.timeline-stem {
    transform-origin:
        center top;
}


/* ----------------------------------------------------------
   PALLINO
---------------------------------------------------------- */

.timeline-stem::before {
    content: "";

    position: absolute;

    left: 50%;

    width: 5px;
    height: 5px;

    border-radius: 50%;

    background-color: #9D9D9C;

    opacity:
        var(
            --dot-opacity,
            1
        );
}


/* evento sopra */

.timeline-event--top
.timeline-stem::before {
    top: 0;
    transform:  translate(-50%, -50%);
}


/* evento sotto */

.timeline-event--bottom
.timeline-stem::before {
    bottom: 0;
    transform: translate(-50%, 50%);
}

.content-privacy h1 {    
    font-size: clamp(25px, 20vw, 33px);
    letter-spacing: normal;
}

.content-privacy h2 {    
    font-size: clamp(20px, 20vw, 25px);
    margin-top: 1rem;
}

/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 767.98px) {

    .timeline-head {
        grid-template-columns:
            minmax(0, 1fr)
            auto;

        gap: 20px;
    }


    /*
     * Nel markup c'è un terzo div vuoto
     * per il centraggio desktop.
     */
    .timeline-head > div:last-child {
        display: none;
    }


    .timeline-swiper
    .swiper-slide.timeline-slide {
        min-height: 450px;

        margin-right: -15px;
    }


    .timeline-copy {
        max-width: 160px;
    }


    /*
     * Su mobile basta spostare meno
     * l'ultimo testo.
     */
    .timeline-swiper
    .timeline-slide:last-child
    .timeline-copy {
        right: 25px;
    }


    .timeline-copy--standard
    .timeline-description {
        font-size: 12px;
    }


    .timeline-copy--highlight
    .timeline-description {
        font-size: 17px;
    }


    .timeline-copy--foundation
    .timeline-description {
        font-size: 27px;
    }


    .timeline-year {
        font-size: 14px;
    }


    .timeline-stem {
        height: 70px;

        flex-basis: 70px;
    }


    .timeline-prev,
    .timeline-next {
        width: 45px;
        height: 40px;
    }


    .timeline-prev img,
    .timeline-next img {
        width: 38px;
    }

}


/* ==========================================================
   ACCESSIBILITÀ - REDUCED MOTION
========================================================== */

@media (prefers-reduced-motion: reduce) {

    .timeline-circle-fill {
        transform: scale(1) !important;
    }


    .timeline-stem {
        transform: scaleY(1) !important;
    }


    .timeline-copy {
        opacity: 1 !important;

        transform: none !important;
    }

}

/* ----------------------------------------------------------
   MAP
---------------------------------------------------------- */

.contact-map {
    width: 100%;
    overflow: hidden;
}

#eutech-map {
    width: 100%;
    height: 600px;
}


.bg-image {
    height: 250px;
    background-repeat: no-repeat;
    background-size: cover;
}

.bg-image-text {
    height: 500px;
    background-repeat: no-repeat;
    background-size: cover;
}

.bg-position-bottom {
    background-position: bottom;
}
.bg-position-top {
    background-position: top;
}
.bg-position-center {
    background-position: center;
}


/* ==========================================================
   404
========================================================== */


.error-404 {
    position: relative;
    min-height: calc(100vh - 150px);
    padding-top: 80px;
    padding-bottom: 100px;
    overflow: hidden;
    color: #fff;
}

/* ----------------------------------------------------------
   LABEL
---------------------------------------------------------- */

.error-404__top {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    margin-bottom: 40px;
}

.error-404__label {
    grid-column: 1 / 13;
}


/* ----------------------------------------------------------
   404 + SYMBOL
---------------------------------------------------------- */

.error-404__main {
    display: grid;

    grid-template-columns: repeat(12, minmax(0, 1fr));

    align-items: center;
}

.error-404__number {
    grid-column: 1 / 13;
    grid-row: 1;
    font-size: clamp(100px, 30vw, 300px);
    line-height: .72;
    font-weight: 700;
    color: #CDD500;
    white-space: nowrap;
}

/* ----------------------------------------------------------
   BOTTOM
---------------------------------------------------------- */

.error-404__bottom {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    margin-top: 80px;
}
.error-404__text {
    grid-column: 1 / 10;
    color: #fff;
}
.error-404__actions {
    grid-column: 8 / 13;
    margin-top: 60px;
}
.error-404__description {
    max-width: 460px;
    margin-bottom: 35px;
}
.error-404 .btn-scopri {
    color: #fff;
}


/* ==========================================================
   10) ANIMAZIONI
========================================================== */

[data-parallax-bg] {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}