﻿:root {
    --primary-orange: #ff5a0c;
    --primary-blue: #16345f;
    --white: white;
    --white-hex: #fff;
    --black: black;
    --overlay-blue: rgb(22, 52, 95, 0.6);
    --overlay-blue-dark: rgb(22, 52, 95, 0.89);
}

/* ==================================================
   BASE
================================================== */
body {
    font-family: 'Lato', sans-serif;
    padding-top: 5rem; /* spazio per navbar fixed */
    -ms-overflow-style: none; /* IE / Edge legacy */
    overflow-x: hidden;
}

html {
    scrollbar-width: none; /* Firefox */
    max-width: 100vw;
    overflow-x: hidden;
}

::-webkit-scrollbar {
    display: none; /* Chrome, Edge, Safari */
}

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

.thin {
    font-weight: 300 !important;
}

.weight7 {
    font-weight: 700 !important;
}

.pr20 {
    padding-right: 31%;
}

.img-adapt {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ==================================================
   FOOTER
================================================== */
footer {
    position: relative;
    margin-top: 5% !important;
}

.main-footer {
    display: flex;
    align-items: center;
    padding: 4% 0;
    background-color: var(--primary-blue);
    color: var(--white);
    border-radius: 65px;
    font-size: 1.4em;
}

.footer-sx {
    display: flex;
    justify-content: end;
    align-items: center;
}

    .footer-sx > div {
        width: 40%;
    }

.footer-middle {
    display: flex;
    justify-content: space-between;
    padding: 0 2%;
}

.footer-dx {
    display: flex;
    justify-content: end;
    flex-direction: column;
}

.end {
    display: none;
}

/* ==================================================
   NAVBAR
================================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100vw;
    height: 5rem;
    padding: 10px 5%;
    background-color: var(--white);
}

.nav-sx {
    position: relative;
}

    .nav-sx,
    .nav-sx > a {
        height: 100%;
    }

        .nav-sx > a {
            position: relative;
            display: flex;
            align-items: center;
        }

        .nav-sx img {
            width: 50%;
        }

.nav-List {
    list-style: none;
    font-size: 1.2em;
}

.nav-Link.active {
    border-bottom: 5px solid var(--primary-orange);
    font-weight: 700;
}

.nav-Link:hover {
    cursor: pointer;
}

/*******animazione hover navbar**********/

.nav-Link:not(.nav-Link-special) {
    position: relative;
    height: 1.8em;
}

.nav-Link:not(.active)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-orange);
    transform: scaleX(0);
    transform-origin: center; /* parte dal centro */
    transition: transform 0.3s ease;
}

/* hover solo se il link NON contiene un -attivo */
.nav-Link:not(.active):hover::after {
    transform: scaleX(1);
}

.nav-Link-special {
    margin-top: -10%;
    padding: 10% 2% 2%;
    background-color: var(--primary-orange);
    color: var(--white);
    font-weight: 600;
    border-radius: 25px;
}

/* ==================================================
   HERO
================================================== */
.hero {
    height: 85vh;
    margin: 0 auto;
    border-radius: 1%;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 85px;
}

/* ==================================================
   SCROLL INDICATOR
================================================== */
.scroll-indicator {
    position: fixed;
    top: 65px;
    left: 8.07%;
    width: 10px;
    height: 100vh;
    pointer-events: none;
}

.scroll-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    transform: translateX(-50%);
    background-color: var(--primary-orange);
    border-radius: 999px;
}

.scroll-dot {
    position: absolute;
    top: -5px;
    left: 50%;
    width: 18px;
    height: 18px;
    transform: translateX(-50%);
    background-color: var(--primary-orange);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--white);
}

.reveal-on-dot {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

    .reveal-on-dot.show {
        opacity: 1;
        transform: translateY(0);
    }

/* ==================================================
   SEZIONI / TESTI
================================================== */
.box-section {
    display: flex;
    justify-content: end;
    padding-top: 3%;
    color: var(--primary-orange);
}

    .box-section > h2 {
        width: 90%;
        font-size: 8em;
    }

.box-paragr {
    display: flex;
    flex-direction: column;
    align-items: end;
    padding-top: 1%;
}

.box-paragr-div {
    width: 85%;
}

    .box-paragr-div > p {
        font-size: 1.7em;
        font-weight: 400;
    }

/* ==================================================
   CARD INFO / IMMAGINI CENTRALI
================================================== */
.card-info-blue {
    position: relative;
    width: 33%;
    height: fit-content;
    padding: 4.5% 8% 4.5% 4.5%;
    background-color: var(--primary-blue);
    color: var(--white);
    border-radius: 35px;
    font-size: 2rem;
}

    .card-info-blue > p {
        font-weight: 100;
        line-height: 1.2;
    }

.container-middle-cards {
    display: flex;
    align-items: center;
    margin-top: 1%;
    margin-left: 7%;
}

.figure-middle {
    width: 40%;
    margin-left: -3%;
    border-radius: 35px;
}

.figure-separator {
    margin-top: 5%;
}

    .figure-separator > img {
        border-radius: 70px;
    }

.card-orange {
    position: relative;
    width: 22%;
    margin-top: -10%;
    margin-left: 5%;
    padding: 3% 2%;
    background-color: var(--primary-orange);
    border-radius: 25px;
    line-height: 1.3;
}

    .card-orange > p {
        font-size: 3.6em;
        color: var(--white);
    }

/* ==================================================
   CARD LINK CON EFFETTO FLIP
================================================== */
.container-link-card {
    display: flex;
    justify-content: space-between;
    width: 70%;
    margin: 2% auto;
}

.card-link {
    position: relative;
    width: 28%;
    height: 24rem;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s ease;
    transform-style: preserve-3d;
}

.link-inner-card:hover {
    cursor: pointer;
    transform: scale(1.04);
}

.card-link:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    width: 100%;
    height: 100%;
    border-radius: 25px;
    backface-visibility: hidden;
}

    .card-front img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.link-page-card {
    position: absolute;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 24rem;
    background-color: var(--overlay-blue);
    border-radius: 25px;
    transition: all 0.3s ease;
}

    .link-page-card > span {
        color: var(--white);
        font-size: 2.5em;
        transition: all 0.3s ease;
    }

.card-link:hover .link-page-card {
    background-color: transparent;
}

    .card-link:hover .link-page-card span {
        padding: 1% 3%;
        background-color: var(--primary-orange);
        border-radius: 25px;
    }

.card-back {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background-color: var(--primary-blue);
    color: var(--white);
    text-align: center;
    transform: rotateY(180deg);
}

.link-orange-contattaci {
    background-color: var(--primary-orange);
    display: flex;
    justify-content: space-between;
    width: 90%;
    margin: 2% auto;
    border-radius: 45px;
    height: 3%;
}

.link-orange-contattaci-sx {
    display: flex;
    align-items: center;
    color: var(--white);
}

    .link-orange-contattaci-sx > span {
        font-size: 8rem;
        margin-left: 15%;
    }

.link-orange-contattaci-arrow > img {
    padding: 30%;
}

    .link-orange-contattaci-arrow > img:hover {
        cursor: pointer;
        transform: scale(1.1)
    }

#carouselPageAzienda {
    margin: 0px auto;
    margin-top: 5%;
    width: 75%;
}

.carousel-item > img {
    border-radius: 135px;
}

.carousel-indicators [data-bs-target] {
    box-sizing: content-box;
    flex: 0 1 auto;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    padding: 0;
    margin: 0 3px;
    text-indent: -999px;
    cursor: pointer;
    background-color: var(--white-hex);
    border: none;
    opacity: 0.5;
    transition: all 0.3s ease;
    background-color: var(--black);
}

.carousel-indicators .active {
    opacity: 1;
    background-color: var(--primary-orange);
}

.carousel-indicators {
    margin-bottom: 0;
    bottom: -1.5em;
}

.carousel-control-next-icon, .carousel-control-prev-icon {
    width: 4rem;
    height: 4rem;
    color: var(--black);
}

.coruselSub-text {
    width: 73%;
    font-size: 2.2em;
}

.carouselPageAzienda-container .card-orange {
    margin-left: 10%;
    padding: 2% 5% 3% 2%;
    width: 30%;
}

.coruselSub-text {
    margin-top: 3%;
    margin-left: 15%;
    display: flex;
    justify-content: center;
    align-content: center;
}

.middle-page-interactive-container {
    position: relative;
    max-width: 100vw;
    border-radius: 100px;
}

    .middle-page-interactive-container > img {
        max-width: 100vw;
        border-radius: 100px;
    }

.middle-page-interactive-blue {
    border-radius: 100px;
    position: absolute;
    background-color: var(--overlay-blue);
    min-width: 100%;
    min-height: 100%;
    left: 0;
    top: 0;
}

.middle-page-interactive {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 45%;
    width: 65%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
}

.middle-page-interactive-card {
    aspect-ratio: 1 / 1;
    border-radius: 45px;
    border: solid 4px var(--white);
}

    .middle-page-interactive-card > img {
        padding: 1%;
        padding: 18% 17%; /* <--Simo per regolare le immagini nel responsive tocca qui*/
    }

.text-card-interactive-middle {
    color: var(--white);
    flex: 1;
    display: flex;
    justify-content: center;
    font-size: 2.2rem;
    margin-top: -10%;
}

.nav-Link-special:hover {
    cursor: pointer;
}
/*------------------------------------------------------------------------------------------*/
/* ==================================================
   AGGIUNTE MANCANTI AL BASE
   incolla tutto in fondo al file
================================================== */

/* hover footer */
.footer-Link:hover {
    cursor: pointer;
    transform: scale(1.1);
}

/* navbar mobile */
.nav-List-mobile {
    list-style: none;
    font-size: 1.2em;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-left: 0;
    padding: 5%;
}

.nav-Link-special-mobile {
    background-color: var(--primary-orange);
    color: var(--white);
    font-weight: 600;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2% 4%;
    margin: 5px 0;
    cursor: pointer;
}

#menuMobile {
    width: 220px;
    display: none;
    top: 90px;
    right: 10px;
    position: absolute;
    background-color: white;
    border: 1px solid black;
    border-radius: 25px;
}

/* piccoli aggiustamenti mancanti */
.nav-Link:not(.nav-Link-special) {
    margin: 0 5px;
}

.box-section {
    margin-left: 10px;
}

.figure-middle {
    margin-right: 3%;
}

/* pagina privacy */
.entry-title,
.title {
    color: var(--primary-orange);
}

.sub-title {
    color: var(--primary-blue);
}

/* lascio max-width sicuro, non 175vw per non sfondare il layout */
.middle-page-interactive-container > img {
    width: 100%;
    max-width: 100%;
    display: block;
    border-radius: 100px;
}

.nav-Link-special:hover {
    cursor: pointer;
}

/* ================================
   RESPONSIVE NAVBAR
================================= */

@media (max-width: 1330px) {
    .nav-Link-special {
        padding: 10% 4% 2%;
    }
}

@media (max-width: 1100px) {
    .navbar {
        padding: 10px 1% 10px 5%;
        background-color: var(--white);
    }
}

@media (max-width: 992px) {
    .navbar {
        padding: 10px 1% 10px 2%;
        background-color: var(--white);
    }
}

@media (max-width: 630px) {
    #menuMobile {
        width: 270px;
    }

    .nav-List-mobile {
        font-size: 1.4em;
    }
}

@media (max-width: 600px) {
    .nav-List {
        font-size: 1.4em;
    }
}

@media (max-width: 550px) {
    .nav-sx img {
        width: 60%;
    }
}

/* ==========================
   SCROLL INDICATOR RESPONSIVE
========================== */

@media (max-width: 1630px) {
    .nav-sx img {
        width: 52%;
    }
}

@media (max-width: 1550px) and (min-width: 1300px) {
    .scroll-indicator {
        top: 67px;
    }
}

@media (max-width: 1545px) {
    .nav-sx img {
        width: 52%;
    }
}

@media (max-width: 1450px) {
    .scroll-indicator {
        left: 7.9%;
    }
}

@media (max-width: 1300px) {
    .scroll-indicator {
        left: 7.85%;
        top: 66px;
    }
}

@media (max-width: 1100px) {
    .scroll-indicator {
        top: 64px;
        left: 8.4%;
    }

    .nav-sx img {
        width: 60%;
    }
}

@media (max-width: 992px) {
    .scroll-indicator {
        top: 64px;
        left: 7.9%;
    }

    .nav-sx img {
        width: 62%;
    }
}

@media (max-width: 920px) {
    .scroll-indicator {
        top: 65px;
        left: 7.75%;
    }
}

@media (max-width: 768px) {
    .nav-sx img {
        width: 70%;
    }

    .scroll-indicator {
        top: 65px;
        left: 8.3%;
    }

    .scroll-dot {
        width: 13px;
        height: 13px;
        box-shadow: 0 0 0 2px var(--white);
    }
}

@media (max-width: 700px) {
    .scroll-indicator {
        top: 64px;
        left: 8.2%;
    }
}

@media (max-width: 630px) {
    .scroll-indicator {
        top: 65px;
        left: 10.8%;
    }
}

@media (max-width: 630px) and (min-width: 600px) {
    .scroll-indicator {
        top: 65px;
        left: 7.9%;
    }
}

@media (max-width: 600px) {
    .scroll-indicator.top {
        top: 65px;
        left: 10.6%;
    }

    .nav-sx img {
        width: 100%;
    }
}

@media (max-width: 400px) {
    .scroll-indicator.top {
        top: 62px;
        left: 10.3%;
    }
}

/*@media (max-width: 550px) {
    .scroll-indicator {
        top: 65px;
        left: 10.4%;
    }
}*/



@media (max-width: 435px) {
    .scroll-indicator {
        top: 63px;
        left: 9.52%;
    }
}

@media (max-width: 390px) {
    .scroll-indicator {
        top: 60px;
        left: 9.52%;
    }
}

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

@media (max-width: 1570px) {
    .nav-Link-special {
        text-align: center;
    }
}

@media (max-width: 1200px) {
    .info {
        align-items: center;
        margin-bottom: 1em;
    }

    .main-footer {
        flex-direction: column;
    }

    .footer-middle {
        flex-direction: column;
        text-align: center;
    }

    .footer-dx {
        text-align: center;
    }

    .footer-sx {
        justify-content: center;
        align-items: center;
        width: 40%;
        margin-bottom: 1em;
    }
}

/* ================================
   RESPONSIVE HOME PAGE
================================= */

@media (max-width: 1450px) {
    .hero {
        height: 50vh;
    }

    .box-section > h2 {
        font-size: 6em;
    }

    .card-info-blue {
        width: 55%;
    }

    .card-orange {
        width: 27%;
    }

    .pr20 {
        padding-right: 5%;
    }

    .card-link {
        width: 28%;
        height: 15rem;
    }

    .link-page-card {
        height: 15rem;
    }

    .link-orange-contattaci-sx > span {
        font-size: 6rem;
    }

    .link-orange-contattaci-arrow > img {
        padding: 35%;
    }
}

@media (max-width: 1060px) and (min-width: 992px) {
    .card-orange {
        width: 33%;
    }
}

@media (max-width: 992px) {
    .hero {
        height: 35vh;
    }

    .box-section > h2 {
        font-size: 5em;
    }
}

@media (max-width: 992px) and (min-width: 768px) {
    .card-orange {
        width: 36%;
    }
}

@media (max-width: 800px) {
    .container-link-card {
        align-items: center;
        flex-direction: column;
        width: 100%;
        margin: 2% auto;
    }

    .card-link {
        margin-bottom: 20px;
    }

    .link-orange-contattaci-sx > span {
        font-size: 5rem;
    }

    .card-inner {
        width: 115%;
    }
}

@media (max-width: 768px) and (min-width: 600px) {
    .card-orange {
        width: 45%;
    }
}

@media (max-width: 650px) {
    .container-middle-cards {
        align-items: center;
        flex-direction: column;
    }

    .figure-middle {
        width: 65%;
        margin-left: 0;
        margin-right: 0;
    }

    .link-orange-contattaci-arrow > img {
        padding: 35%;
        margin-left: 15px;
    }

    .card-info-blue {
        width: 87%;
    }
}

@media (max-width: 600px) {
    .main-footer {
        padding: 4% 0;
        font-size: 1.7em;
    }

    .card-info-blue {
        width: 80%;
        font-size: 1.5rem;
    }

    .box-paragr-div > p {
        font-size: 1.4em;
    }

    .card-orange {
        width: 60%;
    }

        .card-orange > p {
            font-size: 3em;
        }

    .link-page-card > span {
        font-size: 2em;
    }

    .card-link {
        width: 50%;
        height: 15rem;
    }

    .link-orange-contattaci-sx > span {
        font-size: 3.7rem;
    }

    .box-section > h2 {
        font-size: 5em;
    }

    .link-orange-contattaci {
        width: 80%;
    }
}

@media (max-width: 550px) {
    .link-page-card > span {
        font-size: 1.5em;
    }

    .scroll-indicator {
        position: fixed;
        top: 65px;
        left: 9.9%;
    }
}

@media (max-width: 450px) {
    .main-footer {
        font-size: 1.2em;
    }

    .carouselPageAzienda-container .card-orange {
        width: 45%;
        margin-left: -10%;
    }

    .link-orange-contattaci-sx > span {
        font-size: 3rem;
    }
}

@media (max-width: 410px) {
    .link-page-card > span {
        font-size: 1.5em;
    }

    .link-page-card {
        height: 9rem;
    }

    .card-info-blue {
        width: 75%;
        font-size: 1.5rem;
    }

    .box-section > h2 {
        font-size: 4em;
    }

    .box-paragr-div > p {
        font-size: 1.1em;
    }

    .card-orange > p {
        font-size: 2.2em;
    }

    .card-link {
        width: 40%;
        height: 9rem;
    }
}
/* ==================================================
   LEGENDA Z-INDEX
================================================== */
/*
0  = base pagina
12  = linea (scroll)
14  = dot sopra linea
10 = contenuti base
12 = box sopra contenuti
20 = navbar sempre sopra tutto
*/


/* navbar sempre sopra tutto */
.navbar {
    z-index: 20;
}

/* linea sotto ai contenuti */
.scroll-indicator {
    z-index: 15;
}

.scroll-line {
    z-index: 15;
}

.scroll-dot {
    z-index: 16;
}

/* contenuti principali sopra la linea */
.hero,
.box-section,
.box-paragr,
.container-middle-cards,
.figure-middle,
.figure-separator,
.container-link-card,
.link-orange-contattaci,
.img-container,
.carouselPageAzienda-container,
.form-container {
    position: relative;
    z-index: 14;
}

/* box specifici sopra la linea */
.card-info-blue,
.card-orange,
.map-box-orange,
.orange-box-icons,
.card-link,
.map-box-orange,
.blue-box-icons-container,
.map-box-container,
.middle-page-interactive-blue,
.middle-page-interactive-container,
.middle-page-interactive {
    position: relative;
    z-index: 17;
}

.orange-box-icons-container {
    z-index: 18;
}

footer {
    position: relative;
    z-index: 30;
}
/*SOLO INIZIO PAGINA*/
.scroll-indicator.top {
    z-index: 30;
}

    .scroll-indicator.top .scroll-line {
        z-index: 30;
    }

    .scroll-indicator.top .scroll-dot {
        z-index: 32;
    }

/* clone invisibile IDENTICO alla zona logo */
.nav-sx-clone {
    position: fixed;
    top: 0;
    left: 0;
    height: 5rem; /* uguale navbar */
    width: calc(100vw * (2 / 12)); /* col-lg-2 */
    display: flex;
    align-items: center;
    padding-left: 5%;
    visibility: hidden; /* invisibile ma occupa spazio */
    pointer-events: none;
}
.footer-sx > div > img:hover{
    cursor:pointer;
}
