/* -------------------------------------------------------------------------------- */
/* ! Impostazioni BASE */
/* -------------------------------------------------------------------------------- */

/* Tavolozza colore */
:root {
    --primary: #000000;
    --light: #ffffff;
    --accent: rgb(228, 37, 37);
    --dark: #4a4949;
}

/* reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
}

li {
    list-style-type: none;
}

/* Utility */
html {
    scroll-behavior: smooth;
}

.res {
    width: 100%;
    max-width: 200px;
}

.container {
    /* max-width: 1200px; */
    margin: 0 auto;
    outline: 1px;
}

/* Tipografia */
body {
    font-family: "Roboto", sans-serif;
    font-weight: 400;
}

h1,
h3,
h4,
h5,
h6 {
    font-family: "Roboto", sans-serif;
    font-weight: 500;
}


p {
    font-size: 1.4em;
    margin-bottom: 15px;
}

p.leading {
    font-size: 1.4em;
    color: rgb(228, 37, 37);
}

h2.titolo {
    color: var(--accent);

    text-align: left;
    width: fit-content;
    /* max-width: 50%; */


}

.sottolineatura {
    background-color: #ffffff;
}

h2.Piobello {
    color: rgb(228, 37, 37);
    text-decoration: underline;
    text-decoration-color: rgb(228, 37, 37);
    font-size: 2em;
}

h2.sottotitolo {
    color: var(--accent);
    /* background-color: #ffffff; */
    text-align: left;
    width: fit-content;

}

h3.Martin {
    color: var(--accent);
    /* background-color: #ffffff; */
    width: fit-content;

}

/* Header */
header.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.fixed {
    position: fixed;
    width: 100%;
    background: var(--light);
    z-index: 2;
}

/* Provvisorio */
.header__logo,
.header__menu,
.header__cta,
.header__icon {
    outline: 1px;
}

.header__logo,
/* .header__menu, */
.header__cta,
.header__icon {
    width: 130px;
}

.header__logo img .header__menu .site-nav>li {
    display: inline-block;
}

header.header a {
    color: var(--accent);
}



.header__icon {
    /* visibility: hidden; */
    display: none;
}



/* prova menu */
.header__icon {
    color: var(--light);
    text-align: right;
    z-index: 3;
}

/* .header__menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--light);
    transform: translateY(-100%);
    transition: 0.6s cubic-bezier(.99, .3, .06, .79);

} */

.site-nav {
    /* display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 25px;
    padding: 150px;
    font-size: 3em; */
    /* queste impostazioni prenderle quando fai dimensione smarthphone */
    display: flex;
    justify-content: space-between;
    font-size: 1.1em;
    font-family: "Roboto", sans-serif;
    font-weight: 400;


}

.site-nav a {
    padding: 0px 30px;

}

.open .header__menu {
    transform: translateY(0);
}




/* Hero */
.hero {
    background: url(../img/Great-Dorset-Steam-Fair-_-Dorset-England-_-2022-©-Martin-Parr-_-Magnum-Photos-1-1-scaled.jpg) no-repeat center center;
    height: 100vh;
    background-size: cover;
    display: flex;
    align-items: center;

}

.hero::before {
    content: ' ';
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: var(--primary);
    opacity: 0;
}

.hero__content {
    z-index: 1;
    outline: 1px;
    color: var(--light);
    padding: 20px;
    text-align: center;
}

.hero__content h1 {
    font-size: 6em;
    margin-bottom: 20px;
}

.hero__content h2 {
    font-size: 4em;
    margin-bottom: 25px;
}

.hero__content p {
    font-size: 2em;
    line-height: 1.6em;
}

/* Section */
section {
    /* outline: 1px solid red; */
    scroll-margin-top: 80px;
    /* margin-bottom: 25px; */
    padding: 20px;

}



/* carosello */
.container {
    padding: 0rem;
    margin-top: 0px;
    padding-top: 0;
}

.slider-wrapper {
    position: relative;
    max-width: 48rem;
    margin: 0 auto;

}

.slider {
    display: flex;
    aspect-ratio: 16 / 9;
    overflow: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    box-shadow: 0 1.5rem 3rem -0.75rem hsla(0, 0%, 0%, 0.25);
}

.slider img {
    flex: 1 0 100%;
    scroll-snap-align: start;
    object-fit: cover;

}

.slider-nav {
    display: flex;
    column-gap: 1rem;
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;

}


/* .slider-nav a {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: #ffffff;
    opacity: 0.75;
    transition: opacity ease 250ms;
} */

/* .slider-nav a:hover {
    opacity: 1;
} */


/* -------------------------------------------------------------------------------- */
/* ! Media query medium */
/* -------------------------------------------------------------------------------- */

@media (max-width: 768px) {

    .hero__content {
        z-index: 1;
        outline: 1px;
        color: var(--light);
        padding: 20px;
        text-align: center;
    }

    .hero__content h1 {
        font-size: 5em;
        margin-bottom: 20px;
    }

    .hero__content h2 {
        font-size: 3em;
        margin-bottom: 25px;
    }

    .hero__content p {
        font-size: 1em;
        line-height: 1.6em;
    }

    .header__icon {
        display: block;
        color: var(--light);
        text-align: right;
        z-index: 3;

    }


    .header__menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--primary);
        transform: translateY(-100%);
        transition: 0.6s cubic-bezier(.99, .3, .06, .79);
        background-color: #ffffff;
    }

    /* .site-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 45px;
        padding: 25px;
        font-size: 3em;
        background-color: #ffffff;
        padding-top: 30%;
        padding-bottom: 30%;
    } */

    .site-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 25px;
        padding: 150px;
        font-size: 3em;
    }


    /* Richiamo la classe in base al click */
    .open .header__menu {
        transform: translateY(0);
        background-color: #ffffff;
    }
}

.hero::before {
    content: ' ';
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: var(--primary);
    opacity: 0;
}



#main_striscia {
    max-width: 100%;
    overflow: hidden;
    padding: 0px;
    margin-top: 10px;
}

.stage_animation {
    overflow: hidden;
    white-space: nowrap;
    display: inline-block;
    animation: stage_animation 10s linear infinite;

}

.stage_animation p {
    display: inline-block;
    font-family: "Roboto", sans-serif;
    color: rgb(228, 37, 37);
    font-size: 1.8em;
    font-weight: bolder;

}



@keyframes stage_animation {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-50%, 0, 0);
    }
}




/* Footer */

footer {
    background-color: var(--light);

}

.footerContainer {
    width: 100%;
    padding: 0px 30px 20px
}

.socialIcons {
    display: flex;
    justify-content: center;
}

.socialIcons a {
    text-decoration: none;
    padding: 10px;
    background-color: #ffffff;
    margin: 10px;
    border-radius: 50%;
}

.socialIcons a i {
    font-size: 1.7em;
    color: var(--accent);
    opacity: 0.9;
}

.footerBottom {
    color: var(--accent);
    font-size: 0.6em;
    display: flex;
    justify-content: center;


}