/* Setto le variabili CSS */
:root {
    /* Tavolozza colore */
    --primary-color: #000000;
    --secondary-color: #CAF94B;
    --accent-color: #FFAE82;
    --light-color: #FFFFFF;

    /* Fonts */

    --font-text: "Host Grotesk",
        sans-serif;

    /* Size */
    --xs: 5px;
    --s: 10px;
    --m: 15px;
    --l: 20px;
    --xl: 30px;
}

@font-face {
    font-family: "Mattone";
    src: url('fonts/Mattone.woff2') format('woff2');
}

@font-face {
    font-family: Mattone-Black;
    src: url('fonts/Mattone-Black.woff2') format('woff2');
}

@font-face {
    font-family: Mattone-Bold;
    src: url('fonts/Mattone-Bold.woff2')format('woff2');
}

@font-face {
    font-family: Mattone-Regular;
    src: url('fonts/Mattone-Regular.woff2')format('woff2');
}



/* RESET */
* {
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    display: block;
}

li {
    list-style-type: none;
}

/* UTILITY */
.res {
    width: 100%;
    /* CHECK */
    max-width: 100%;
}

.wrapper {
    max-width: 1550px;
    /* 1440 */
    /* border: 1px solid red; */
    /* margin auto mette al centro */
    margin: auto;
}

/* Tipografia */
p.leading {
    font-size: 16px;
    font-family: "Host Grotesk", sans-serif;
}

p {
    margin-bottom: var(--l);
}

body {
    font-family: var(--font-text);
}

h1 {
    font-family: 'Mattone-Regular';
    font-size: 40px;
    font-weight: 400;
    text-align: center;
    padding: 0px;
}

h2 {
    font-family: 'Mattone-Regular';
    font-weight: 400;
    font-size: 24px;
}

h3 {
    font-family: 'Mattone-Regular';
    font-size: 24px;
    text-align: center;
    font-weight: 400;
    padding: 0px;
}

h4,
h5,
h6 {
    font-family: var(--font-display);
    margin-bottom: var(--m);
}

/* HEADER */

header.cover {
    background: var(--primary-color);
    padding: 20px 40px 20px 40px;
    position: sticky !important;
    top: 0 !important;
    z-index: 9999999 !important;
    /* height: 100px; */
}


header.cover div.wrapper {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
}

.cover__menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row;
    gap: 100px;
    font-family: "Host Grotesk", sans-serif;
}

.cover__menu ul a {
    font-family: "Host Grotesk", sans-serif;
    color: var(--light-color);
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;

    position: relative;
    padding: 15px 10px;
    display: inline-block;
    transition: color 0.3s ease;
}

/* Hover menu */
.cover__menu ul a::before,
.cover__menu ul a::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--accent-color);


    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Linea superiore */
.cover__menu ul a::before {
    top: -20px;
}

/* Linea inferiore */
.cover__menu ul a::after {
    bottom: -20px;
}

/* Linee visibili */
.cover__menu ul a:hover::before,
.cover__menu ul a:hover::after {
    opacity: 1;
}


.cover__logo img {
    width: 200px;
    height: auto;
}

.cover__icone {
    display: flex;
    gap: 20px;
}

.cover__bag {

    display: flex;
    flex-direction: row;
    gap: 10px;
    font-size: 25px;
    color: gray;
}

.cover__bag p {
    font-size: 12px;
}

.cover__bag:hover {
    color: #FFFFFF;
    transition: 0.3s ease;
    visibility: visible;
}

.cover__hb {
    font-size: 30px;
    color: gray;
    display: none;
}

/* CTA */
.cta__group {
    font-size: 20px;
    display: flex;
    flex-direction: column-reverse;
    gap: 30px;
    margin-top: 15px;
    align-items: center;
}

.cta-group a {
    border: 1px solid var(--primary-color);
    padding: 10px 30px;
    border-radius: 10px;
    font-weight: 900;
    width: fit-content;
    align-items: center;
    gap: 20px;
    /* CHECK */
}


a.cta-primary {
    background-color: var(--primary-color);
    color: var(--light-color);
    font-family: 'Mattone';
    font-weight: 100;
    font-size: 15px;
}

a.cta-secondary {
    background-color: var(--primary-color);
    color: var(--light-color);
    font-family: 'Mattone';
    font-weight: 100;
    margin-top: 15px;
}

a.cta-terziary {
    background-color: var(--primary-color);
    color: var(--light-color);
    font-family: 'Mattone';
    font-weight: 100;
    margin-top: 15px;
}

.cta-primary:hover {
    background: var(--secondary-color);
    border: none;
    color: var(--primary-color);
    transition: 0.3s ease;
}

.cta-secondary:hover {
    background: var(--secondary-color);
    border: none;
    color: var(--primary-color);
    transition: 0.3s ease;
}

.cta-terziary:hover {
    background: var(--secondary-color);
    border: none;
    color: var(--primary-color);
    transition: 0.3s ease;
}

/* Hero */
section.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero__text {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 10px;
}

.hero h1 {
    font-size: 50px;
    text-align: center;
    font-weight: 400;
}

.hero h2 {
    font-size: 30px;
    text-align: center;
    font-weight: 400;
    /* padding: 5px; */
}

.hero p {
    text-align: center;
    font-weight: 400;
    padding: 20px 200px 0px 200px;
    /* margin-top: 15px;
    margin-left: 100px;
    margin-right: 100px;
    margin-bottom: auto; */
}

.hero__cta-group a {
    display: flex;
    flex-direction: column;
    padding: 10px 30px;
    border-radius: 10px;
    font-weight: 100;
    text-align: center;
    width: 180px;
    cursor: pointer;
}

.hero__image {
    max-width: 1500px;
}

.hero__cover {
    position: relative;
    display: inline-block;
    margin-top: 40px auto 0 auto;
}

.hero img {
    width: 100%;
    height: auto;
    display: flex;
    align-content: center;
    object-fit: cover;
    margin-top: 10px;
}

.cta__overlay {
    font-size: 14px;
    position: absolute;
    bottom: 40px;
    left: 40px;

    color: var(--light-color);
    padding: 10px;
    border-radius: 10px;
    border: solid 2px #D9D9D9;
    width: 200px;
    text-align: center;
    font-family: 'Mattone';
    font-weight: 100;
    margin-top: 15px;
    transition: 0.3s ease;
}

.cta__overlay:hover {
    background-color: #CAF94B;
    color: #000;
    border: none;

}

/* Copertina */
.copertina {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: #000000;
    color: var(--light-color);
    margin-top: 50px;
    align-items: center;
}

.copertina__cover {
    margin: 0;
    width: 100%;
}

.copertina__cover figure {
    margin: 0;
    align-items: center;
    max-width: 80%;
}

.copertina img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.copertina__text {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: right;
}

.copertina__text h2 {
    text-transform: uppercase;
    font-size: 30px;
    line-height: 1.1;
    text-align: right;
    margin-left: 40px;
}

.copertina__footer {
    margin-top: 60px;
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.4;
}

.copertina__footer p {
    margin: 0;
}


/* highlights */
.carosello__sezione {
    background-color: #FFFFFF;
    padding: 60px 0;
    overflow: hidden;
    width: 100%;
}

.carosello__text.wrapper {
    /* width: 1550px; */
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    /* Assicura che il padding non allarghi il box */
}

.carosello__text p {
    font-size: 30px;
    text-align: center;
    margin-bottom: 40px;
}

.carosello__container {
    width: 100%;
    overflow: hidden;
}

.carosello__immagini {
    display: flex;
    gap: 15px;
    width: max-content;
    padding: 0 40px 40px 40px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;

    animation: scroll 30s linear infinite;
}

.carosello__immagini::-webkit-scrollbar {
    display: none;
}

.carosello__immagini:hover {
    animation-play-state: paused;
}

.carosello__immagini img:hover {
    transform: scale(1.09);
}

.carosello__item {
    flex: 0 0 auto;
    width: 350px;
    height: 450px;
    scroll-snap-align: start;
}

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

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}


/* special */
.special {
    display: flex;
    align-items: center;
    padding: 0;
}

.special__text h3 {
    align-items: center;
    line-height: 1.1;
    text-transform: uppercase;
    padding: 40px;
}

.special__text p {
    font-size: 16px;
    text-align: center;
}

.special__cover {
    display: flex;
    flex-direction: row;
    background-color: #D9D9D9;
    color: #000000;
    padding: 40px;
}

/* Preview */
.preview {
    text-align: center;
    padding: 40px;
}

.preview__text h1 {
    margin-bottom: 20px;
}

.preview__container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto;
    gap: 20px;
}

.preview__container img {
    width: 100% !important;
    height: auto;
    display: block;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.preview__container img:hover {
    transform: scale(1.02);
}


/* Video section */
.video__section {
    margin-top: 50px;
    margin-bottom: 50px;
    background-color: #000;
    color: #FFFF;
    padding: 1px 0;
}

.video__container.wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 50px;
}

.video__dimensione {
    max-width: 40%;
}

.video__media {
    flex: 1;
    max-width: 100%;
}

.video__text {
    flex: 1;
}

.video__01 {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.video__text h1 {
    margin-top: 0;
    text-transform: uppercase;
    font-size: 30px;
    line-height: 1.1;
    text-align: right;
    padding: 0px;
    margin-right: 80px;
}

.video__text p {
    color: gray;
    font-size: 16px;
    font-weight: 200;
    text-align: right;
    margin-top: 30px;
    margin-right: 80px;
}

/* Info */
.info h4 {
    font-family: var(--font-display);
    font-size: 32px;
}

.info {
    text-align: center;
    gap: 40px;
    margin: 40px;
}

.info table {
    max-width: 1300px;
    width: 90%;
    margin: 0 auto 50px auto;
    border: #000000 1px solid;
    border-collapse: collapse;
    font-family: var(--font-display);
    font-size: 20px;
}

.info td {
    padding: 10px 15px;
    border-top: 1px solid #000;
    border-right: 1px solid #000;
}

.info tr td:last-child {
    text-align: center;
    font-weight: 700;
}

.info__cta-group {
    font-size: 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 15px;
    align-items: center;
}

.info__cta-group a {
    padding: 10px 30px;
    border-radius: 10px;
    font-weight: 100;
    font-size: 15px;
    width: fit-content;
    align-items: center;
    gap: 5px;
    width: 180px;
}

/* Partners */
.partners__cover {
    display: flex;
    justify-content: center;
    align-items: center;
    /* Allinea verticalmente */
    background-color: #000000;
    padding: 50px;
}

.partners__cover figure {
    margin: 0;
    /* Rimuove i margini automatici del browser */
    width: 100%;
    /* Occupa lo spazio per permettere il centering */
    text-align: center;
    /* Centra l'immagine (che è un elemento inline-block) */
}

.partners img {
    max-width: 50%;
    height: auto;
    object-fit: contain;
    /* Per i loghi è meglio contain di cover per non tagliarli */
}

/* Footer */
.footer {
    background-color: #D9D9D9;
    padding: 60px;
}

.footer__cover {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}

.footer__icone a {
    font-size: 14px;
    color: #000;
}

.footer__menu .footer__logo {
    flex: 1;
    color: #000;
    /* Ognuno prende inizialmente lo stesso spazio */
}

.footer__icone {
    color: #000;
    display: flex;
    flex-direction: row;
    gap: 15px;
}

.footer__menu a {
    color: #000;
    text-align: left;
    flex: 2;
    padding-left: 60px;
    font-size: 14px;
}

.footer__logo img {
    max-width: 100px;
    height: auto;
}

.footer__copywright {
    flex-basis: 100%;
    font-size: 14px;
    margin-top: 50px;
    text-align: left;
}

.freccia__su a {
    position: absolute;
    right: 40px;
    background-color: #000;
    color: #FFFFFF;
    padding: 10px;
    text-align: right;
    font-size: 10px;
}


/* interruzione per Medium */
@media (max-width: 1024px) {
    section.hero {
        flex-direction: column;
    }

    /* interruzione cover */

    .cover__logo img {
        width: 250px;
        height: auto;
    }

    .cover__menu ul {
        display: none;
    }

    .cover__bag {
        font-size: 30px;
    }

    .cover__hb {
        display: block;
        font-size: 30px;
    }

    /* interruzione hero */
    .hero h1 {
        font-size: 40px;
        text-align: center;
        font-weight: 400;
    }

    .hero h2 {
        font-size: 24px;
        font-weight: 400;
        text-align: center;
        padding-left: 100px;
        padding-right: 100px;
    }

    .hero p {
        text-align: center;
        font-size: 14px;
        padding-left: 100px;
        padding-right: 100px;
    }

    .hero__cta-group a {
        padding: 10px 30px;
        border-radius: 10px;
        font-size: 12px;
        font-weight: 400;
        text-align: center;
    }

    /* interruzione copertina */

    .copertina {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        align-items: center;
        width: 100%;
        margin-top: 30px;
    }

    .copertina__cover {
        width: 100%;
    }

    .copertina__cover figure {
        max-width: 100% !important;
        margin: 0 auto;
    }

    /* .copertina img {
        width: 100%;
        height: auto;
        max-width: 100%;
    } */

    .copertina__text {
        padding: 20px 40px;
        text-align: right;
    }

    .copertina__text h2 {
        font-size: 24px;
        line-height: 1.1;
        text-align: right;
        margin-left: 0;
    }

    .copertina__footer {
        margin-top: 30px;
        text-align: right;
    }

    /* Interruzione highlights */

    .carosello__item {
        width: 280px;
        height: 380px;
    }

    .carosello__text.wrapper {
        width: 100%;
        max-width: 100%;
        padding: 0 15px;
    }

    .carosello__text p {
        font-size: 24px;
        text-align: center;
        margin-bottom: 30px;
        line-height: 1.3;
    }

    /* interruzione special */

    .special__text h3 {
        font-size: 24px;
        text-align: center;
        font-weight: 400;
        padding-left: 100px;
        padding-left: 100px;
    }

    .special__text p {
        font-size: 16px;
        text-align: center;
        font-weight: 100;
        padding: 15px;
    }

    /* interruzione preview */
    .preview__text h1 {
        font-size: 36px;
        font-weight: 400;
        margin-bottom: 30px;
    }

    .preview__container {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto auto;
        gap: 20px;
    }

    .preview__container img {
        width: 100% !important;
        height: auto;
        display: block;
        aspect-ratio: 1/1;
        object-fit: cover;
    }

    /* interruzione video */
    .video__container.wrapper {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 50px;
    }

    .video__dimensione {
        max-width: 100%;
    }

    .video__text {
        flex: 1;
        margin-top: 60px;
    }

    .video__01 {
        width: 100%;
        height: auto;
        display: block;
        object-fit: cover;
    }

    .video__text h1 {
        margin-top: 0;
        font-size: 24px;
        line-height: 1.1;
        text-align: right;
        padding: 0px;
        margin-left: 80px;
    }

    .video__text p {
        font-size: 12px;
        font-weight: 200;
        text-align: right;
        margin-top: 30px;
        margin-bottom: 60px;
    }


    /* interruzione info */
    .info_additional h4 {
        font-size: 24px;
    }

    .info_additional table {
        font-size: 18px;
    }

    .info__cta-group a {
        padding: 10px 30px;
        border-radius: 10px;
        font-size: 12px;
        font-weight: 400;
        text-align: center;
    }

    .partners__cover {
        padding: 40px 20px;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
    }

    .partners__cover figure {
        margin: 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .partners img {
        max-width: 100%;
        object-fit: cover;
    }

    .partners img {
        max-width: 90%;
        /* Occupa quasi tutta la larghezza dello schermo */
        width: 60%;
        /* Permette di ingrandirsi fino al max-width */
        height: auto;
        /* Mantiene le proporzioni dei loghi */
        object-fit: contain;
        /* Fondamentale per i loghi per non tagliarli */
    }
}



/* INTERRUZIONE PER MOBILE */
@media (max-width: 768px) {
    section.hero {
        flex-direction: column;
    }

    /* interruzione cover */

    .cover__logo img {
        width: 160px;
        height: auto;
    }

    .cover__icone {
        text-align: center;
    }

    .cover__menu ul {
        display: none;
    }

    .cover__bag {
        font-size: 25px;
    }


    .cover__hb {
        display: block;
        font-size: 25px;
    }


    /* interruzione hero */

    .hero__cover {
        display: flex;
        justify-content: center;
        width: 100%;

    }

    .hero img {
        width: 100%;
        /* Riducendo la larghezza la rendiamo più "stretta" */
        height: 650px;
        object-fit: cover;
        object-position: center;

    }

    .hero h1 {
        font-size: 30px;
        text-align: center;
        font-weight: 400;
    }


    .hero h2 {
        font-size: 20px;
        font-weight: 400;
        text-align: center;
        padding-left: block;
        /* padding: 15px; */
    }

    .hero p {
        text-align: center;
        font-size: 14px;
        padding: 10px 50px 0px 50px;
    }

    .hero__cta-group a {
        padding: 10px 30px;
        border-radius: 10px;
        font-size: 12px;
        font-weight: 200;
        text-align: center;
    }

    .cta__overlay {
        font-size: 11px;
        width: 160px;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        padding: 8px;
    }

    /* interruzione copertina */
    .copertina {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0px;
        width: 100%;
    }

    .copertina__cover {
        width: 100%;
    }

    .copertina__cover figure {
        max-width: 100% !important;
        margin: 0 auto;
    }

    .copertina img {
        width: 100%;
        height: auto;
        display: block;
    }

    .copertina__text {
        padding: 40px 20px;
        text-align: center;
        box-sizing: border-box;
    }

    .copertina__text h2 {
        font-size: 24px;
        line-height: 1.2;
        text-align: center;
        margin: 0 auto;
        max-width: 100%;
    }

    .copertina__footer {
        margin-top: 40px;
        text-align: center;
    }

    /* Interruzione highlights */

    .carosello__item {
        width: 280px;
        height: 380px;
    }

    .carosello__text.wrapper {
        width: 100%;
        max-width: 100%;
        padding: 0 15px;
    }

    .carosello__text p {
        font-size: 20px;
        text-align: center;
        margin-bottom: 30px;
        line-height: 1.3;
    }


    /* interruzione special */
    .special {
        display: block;
        width: 100%;
    }

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

    .special__text {
        width: 100%;
        text-align: center;
    }

    .special__text h3 {
        font-size: 24px;
        line-height: 1.1;
        margin-bottom: 20px;
        padding: 0;
    }

    .special__text p {
        font-size: 14px;
        text-align: center;
        align-items: center;
        font-weight: 200;
        margin: 0 auto;
        max-width: 100%;
    }

    /* interruzione preview */
    .preview__text h1 {
        font-size: 40px;
        font-weight: 400;
        margin-bottom: 30px;
    }

    .preview__container {
        grid-template-columns: repeat(1, 1fr);
        grid-template-rows: auto auto;
        gap: 20px;
    }

    .preview__container img {
        width: 100% !important;
        height: auto;
        display: block;
        aspect-ratio: 1/1;
        object-fit: cover;
    }



    /* interruzione video */

    .video__container.wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 50px;
    }

    .video__dimensione {
        max-width: 100%;
    }


    .video__text {
        flex: 1;
    }

    .video__01 {
        width: 100%;
        height: auto;
        display: block;
        object-fit: cover;
    }

    .video__text h1 {
        font-size: 24px;
        line-height: 1.1;
        text-align: center;
        padding: 0px;
        margin-left: 80px;
    }

    .video__text p {
        font-size: 12px;
        text-align: center;
        align-items: center;
        font-weight: 200;
        margin: 0 auto;
        padding-top: 40px;
        padding-bottom: 80px;
        max-width: 100%;
    }

    /* interruzione info */
    .info_additional h4 {
        font-size: 20px;
    }

    .info_additional table {
        font-size: 16px;
    }

    .info__cta-group a {
        padding: 10px 30px;
        border-radius: 10px;
        font-size: 12px;
        font-weight: 400;
        text-align: center;
    }

    /* interruzione partners */
    .partners__cover {
        padding: 40px 20px;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
    }

    .partners__cover figure {
        margin: 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .partners img {
        max-width: 200%;
        object-fit: cover;
    }

    .partners img {
        max-width: 90%;
        /* Occupa quasi tutta la larghezza dello schermo */
        width: 100%;
        /* Permette di ingrandirsi fino al max-width */
        height: auto;
        /* Mantiene le proporzioni dei loghi */
        object-fit: contain;
        /* Fondamentale per i loghi per non tagliarli */
    }


    /* interruzione footer */
    .footer__cover {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 50px;
    }

    .footer__menu a {
        color: #000;
        text-align: center;
        font-size: 15px;
        flex: 2;
        padding-left: 0px;
    }

    .footer__icone a {
        font-size: 20px;
    }

    .footer__logo img {
        align-items: center;
        text-align: center;
        width: 60%;
    }
}