/* -------------------------------------------------------------------------------- */
/* ! Base */
/* -------------------------------------------------------------------------------- */

/* Reset */
* {
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    font-family: 'Work Sans', sans-serif;
    color: var(--dark);
}

li {
    list-style-type: none;
}

/* Utlity */

.res {
    width: 100%;
    max-width: 290px;
}


.resa {
    width: 100%;
    max-width: 400px;
}

.container {
    max-width: 1200px;
}

html {
    scroll-behavior: smooth;
    background-color: var(--dark);
}


/* -------------------------------------------------------------------------------- */
/* ! Grid per Mobile first */
/* -------------------------------------------------------------------------------- */
/* Grid system */
.grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
    padding: 10px 20px;
}

/* Tipografia */
h1,
h2,
h3,
h4,
h5 {
    font-family: 'Work Sans', sans-serif;
    font-weight: 500;
    line-height: 1em;
}

h1 {
    font-size: 50px;
}

p {
    font-family: 'Work Sans', sans-serif;
    font-weight: 300;
    line-height: 1.3em;
}

p.leading {
    color: var(--accent);
}


/* Tavolozza colore */
:root {
    --dark: #252121;
    --accent: #CCF234;
    --light: #ffff;
}

/* Animazioni */

/* menu site-nav */
@keyframes animateopen {
    0% {
        top: -100%;

    }

    100% {
        top: 0;
        opacity: 1;
    }
}

/* Freccia accordion */
@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(-50%);
    }

    40% {
        transform: translateY(-70%);
    }

    60% {
        transform: translateY(-60%);
    }
}


/* -------------------------------------------------------------------------------- */
/* ! PULSANTI */
/* -------------------------------------------------------------------------------- */
/* bottone con ombra */
.btn {
    font-family: 'Work Sans', sans-serif;
    font-size: 1.2em;
    text-transform: uppercase;
    border: 1px solid var(--dark);
    padding: 10px;
    border-radius: 10px;
    color: var(--dark);
    background-color: var(--light);
    box-shadow: 0 10px 0 0 var(--accent);
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    margin-top: 15px;
    margin-right: 10px;
    font-weight: 400;
}

.btn:hover {
    transform: translateY(10px);
    box-shadow: 0 0px 0 0 var(--accent);
    font-weight: 800;

}

/* Footer bottone per il rimando #top della pagina */
.btt {
    padding: 20px;
    padding-bottom: 40px;
    text-align: center;
    grid-column: 1/9;
}

.btt a:hover {
    background-color: #CCF234;
    padding: 10px;
    border-radius: 200px;
}

/* Pulsante-card per rimando ai progetti */
.def {
    font-family: 'Work Sans', sans-serif;
    font-size: 1.2em;
    text-transform: uppercase;
    border: 2px solid var(--dark);
    padding: 10px;
    border-radius: 10px;
    color: var(--dark);
    background-color: var(--light);
    font-weight: 600;
    transition: all 0.3s ease-in-out;
    z-index: 1;
    margin: -30px;
}

.def:hover {
    transform: translateY(-10px);
    font-weight: 800;
}

.def a {
    color: var(--dark);
    font-weight: 600;
}

/* -------------------------------------------------------------------------------- */
/* ! ELEMENTI IN HTML */
/* -------------------------------------------------------------------------------- */

/* CAROSELLO TESTO*/
.event__testo__latest {
    text-align: center;
}

#scorrimento__about {
    color: var(--light);
    font-size: 30px;
    font-weight: 400;
    margin-top: 8px;
}

#scorrimento__progetti {
    color: var(--light);
    font-size: 30px;
    font-weight: 400;
    margin-top: 20px;
}

#scorrimento__progetti1 {
    color: var(--light);
    font-size: 30px;
    font-weight: 400;
    margin-bottom: 80px;
}

.event__testo__latest p {
    margin-top: 15px;
}

.event__testo__latest1 p {
    padding: 8px;
}

/* HEADER */
.site-nav {
    background-color: var(--light);
    border-radius: 40px;
}

.site-nav h1 {
    grid-column: 1/3;
    z-index: 1;
    font-size: 20px;
    color: var(--dark);
    font-family: "Rammetto One", sans-serif;
}

.site-nav h3 {
    grid-column: 4/6;
    font-size: 16px;
    color: var(--dark);
    text-align: center;
}

.site-nav i {
    grid-column: 1/3;
    z-index: 1;
    font-size: 20px;
    color: var(--dark);
    display: flex;
    align-items: center;
}

.site-nav i:hover {
    color: var(--accent);
}

.site-nav__menu {
    position: absolute;
    top: 0;
    left: 0;
    max-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

}

.open .site-nav__menu {
    align-items: center;
    position: fixed;
    max-height: 100%;
    width: 100%;
    height: 100vh;
    background-color: var(--light);
    z-index: 2;
    animation: animateopen 0.5s;
    text-align: center;
    gap: 20px;

}

.open .site-nav__menu a {
    font-size: 50px;
    color: #252121;
    font-weight: 300;
    font-size: 35px;

}

.open .site-nav__menu a:hover {
    color: var(--accent);
    border-bottom: 3px solid var(--accent);
}

.site-nav__hamburger {
    cursor: pointer;
    grid-column: 8/9;
    justify-self: end;
    align-items: center;
    z-index: 3;
    color: var(--dark);
    font-size: x-large;

}

.site-nav__hamburger:hover i {
    color: #CCF234;
    transform: rotate(360deg);
    transition-duration: 1s;
    transition-delay: now;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.open .site-nav__hamburger:hover {
    color: #CCF234;
    transform: rotate(360deg);
    transition-duration: 3s;
    transition-delay: now;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.open .site-nav__hamburger {
    position: fixed;
}

/* PRIMA SEZIONE: presentazione + cta */

#welcome {
    margin-top: 40px;
    border-radius: 20px;
    background-color: #ffffff;
}


.welcome__text h1 {
    font-size: 50px;
    margin-top: 50px;
    transform: translateY(-20px);
    animation: fadeInUpOpacity 1s forwards 0.9s;
}


.welcome__text {
    grid-column: 1/9;
    padding: 40px;
}

.welcome__img {
    grid-column: 1/9;
    display: flex;
    justify-content: center;
    background-color: #FFFFFF;
}

.welcome__button {
    grid-column: 1/9;
    margin: 30px 0 50px 0;
}


/* SECONDA SEZIONE: Skill */
#skill {
    color: var(--light);
}

.skill__introduzione {
    grid-column: 1/9;
    text-align: center;
    margin-top: 20px;

}

.skill__introduzione p {
    margin-top: 20px;
    color: var(--light);
}

/* CARD SOFT SKILL*/
.container {
    grid-column: 1/9;
    display: flex;
    flex-direction: column;
    align-items: center;

}

.container .card .icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent);
}


.container .card .icon .fa {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 80px;
}

.container .card .slide {
    width: 300px;
    height: 200px;
    transition: 0.5s;
}

.container .card .slide.slide1 {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    transition: 0.7s;
    transform: translateY(100px);
}


.container .card:hover .slide.slide1 {
    transform: translateY(0px);
}

.container .card .slide.slide2 {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    transition: 0.8s;
    transform: translateY(-100px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.container .card:hover .slide.slide2 {
    transform: translateY(0);
}

.container .card .slide.slide2::after {
    content: "";
    position: absolute;
    width: 30px;
    height: 4px;
    bottom: 15px;
    left: 50%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
}

.container .card .slide.slide2 .content p {
    margin: 0;
    padding: 0;
    text-align: center;
    color: var(--light);
}

.container .card .slide.slide2 .content h3 {
    margin: 0 0 10px 0;
    padding: 0;
    font-size: 24px;
    text-align: center;
    color: var(--light);
}

/* SOFTWARE */
#programmi img {
    width: 50px;
}

#programmi a {
    color: var(--light);

}

#programmi li {
    grid-column: span 4;
    text-align: center;
    background-color: #252121;
    padding: 12px;
    border: 1px solid black;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    color: var(--light);
}

/* SEZIONE QUATTRO: in primo piano progetti (TESI E ISIA) */

.tesi__text {
    grid-column: 1/9;
    text-align: center;
    color: #ffffff;
    margin-bottom: 40px;
}

.tesi__img {
    grid-column: 1/9;
    display: flex;
    justify-content: center;
}

.tesi__img img:hover {
    transform: scale(1.2) rotate(20deg);
}

.ISIA__img img:hover {
    transform: scale(1.2) rotate(20deg);
}

.ISIA__img {
    grid-column: 1/9;
    display: flex;
    justify-content: center;
}


/* Effetto hover e rotazione solo per l'immagine in evidenza con sfondo fisso */
.container2 {
    position: relative;
    background-image: url(../img/Sfondo_medi.png);
    border-radius: 30px;
    grid-column: 1/9;
    max-height: 218.6px;
}

.container1 {
    overflow: hidden;
    position: relative;
    background-image: url(../img/Sfondo__ma.png);
    border-radius: 30px;
    grid-column: 1/9;
    height: 218.6px;
    margin-top: 40px;
}

.container2 img,
.container1 img {
    transition: transform 0.5s ease;
}

.ISIA__NASCOSTA {
    grid-column: 1/9;
    justify-content: center;
    display: flex;
}

.zoom-rotate {
    transform: scale(1.2) rotate(20deg);
}

.ISIA__text {
    grid-column: 1/9;
    text-align: center;
    color: #ffffff;
}

#inprimopiano {
    margin-top: 30px;
    margin-bottom: 50px;
}

/* SEZIONE CINQUE: progetti con selettore per categoria */
#progetti {
    height: 1000px;
    margin-top: 40px;
    border-radius: 20px;
    background-color: #ffffff;
    margin-bottom: 50px;
}


.progetti__text h1 {
    grid-column: 1/9;
    margin-top: 30px;
}

.progetti__text p {
    grid-column: 1/9;
}

.wrapper {
    max-width: 1000px;
    margin: 0 auto;

}

.wrapper nav {
    display: flex;
    justify-content: center;
}

.wrapper .items {
    max-width: 720px;
    width: 100%;
}


.bottoni {
    grid-column: 1/9;
    gap: 40px;
}

nav .items {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

nav .item {
    font-family: 'Work Sans', sans-serif;
    font-size: 1.2em;
    text-transform: uppercase;
    border: 1px solid var(--dark);
    padding: 10px 15px;
    border-radius: 10px;
    color: var(--dark);
    background-color: var(--light);
    font-weight: 400;
    box-shadow: 0 10px 0 0 var(--accent);
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    margin: 10px;
    text-align: center;
    align-items: center;
}

nav .item:hover,
nav .item.active {
    transform: translateY(10px);
    box-shadow: 0 0px 0 0 var(--accent);
    font-weight: 800;
}

.gallery {
    grid-column: 1/9;
    display: flex;
    align-items: center;
    overflow-x: scroll;
}

/* Modifiche alla barra di scorrimento per il carosello */
.gallery::-webkit-scrollbar {
    height: 8px;

}

.gallery::-webkit-scrollbar-track {
    background: var(--dark);
    border-radius: 10px;

}

.gallery::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
    width: 8px;
}

.gallery .image {
    display: flex;
    align-items: center;
    padding: 7px;
    padding-bottom: 50px;
}

.gallery .image span {
    display: flex;
    flex-direction: row;
    width: 100%;
}

.image {
    display: flex;
    flex-direction: column;
}

.image img {
    width: 100%;
    vertical-align: middle;
    transition: all 0.3s ease;
    width: 280px;
    display: flex;
    align-items: center;
    border-radius: 10px;
    border: 2px solid var(--dark);
}


.gallery .image.hide {
    display: none;
}

.gallery .image.show {
    justify-content: center;
}

/* SEZIONE SEI: form contatti */
input {
    font-family: 'Work Sans', sans-serif;
    font-size: 0.875em;
    width: 300px;
    height: 50px;
    padding: 0px 15px 0px 15px;
    background: transparent;
    outline: none;
    color: var(--light);
    border: solid 1px #d4d4d4;
    border-bottom: none;
    transition: all 0.3s ease-in-out;
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
}

input:hover {
    background: #ccf23495;
    color: #e2dedb;
}

/* CHECKBOX PER PRIVACY POLICY DEL FORM */
.privacy-checkbox {
    display: flex;
    align-items: center;
    grid-column: 1/9;
    gap: 10px;
}


.privacy-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;

}

label {
    color: var(--light);
    font-family: 'Work Sans', sans-serif;
}

.privacy-checkbox label {
    font-size: 14px;
    font-family: 'Work Sans', sans-serif;
}


.privacy-checkbox a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.privacy-checkbox a {
    color: var(--light);
    font-weight: 400;
}

.error-message,
.email-error-message,
.message-error-message {
    color: var(--accent);
    display: none;
    margin-bottom: 5px;
    grid-column: 1/9;
    font-family: 'Work Sans', sans-serif;
}

.check-box {
    width: 80px;
    height: 80px;
    border-radius: 40px;
    box-shadow: 0 0 12px -2px rgba(0, 0, 0, 0.5);
    position: absolute;
    top: 0;
    right: -40px;
    opacity: 0;
}

.check-box svg {
    width: 40px;
    margin: 20px;
}

.grid-item {
    grid-column: span 8;
}

.form-container {
    grid-column: span 8;
    display: flex;
    flex-direction: column;
}

.form-container label {
    margin-bottom: 5px;
}

.form-container input {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
    box-sizing: border-box;
}

.form__button {
    display: flex;
    justify-content: center;
}

#contatti {
    margin-bottom: 50px;
}

#contatti h1 {
    color: var(--light);
}


/* Per mantenere il form fermo */
.form-container {
    position: relative;
}

/* FOOTER */

.footer__social {
    grid-column: 1/9;
    justify-content: center;
    display: flex;
    gap: 5px;
}


.footer__social a:hover {
    color: var(--accent);

}

.footer__social a {
    padding: 20px;
}

footer {
    background-color: var(--light);
}


footer a {
    font-size: 1.1em;
    color: black;
    font-weight: 300;
}

footer h3 {
    margin-bottom: 5px;
}

footer p {
    font-size: 1.1em;
}

.footer__contatti {
    grid-column: 1/9;
    text-align: center;
    margin-bottom: 20px;
}

.footer__riassunto {
    grid-column: 1/9;
    text-align: center;
    margin-bottom: 20px;
}


.riassunto__elementi {
    font-family: 'Work Sans', sans-serif;
}

.riassunto__elementi a:hover {
    align-items: center;
    border-bottom: 1px solid #252121;
}

.footer__policy {
    grid-column: 1/9;
    text-align: center;
    margin-bottom: 20px;
}


.footer__policy a:hover {
    border-bottom: 1px solid #252121;
}

/* -------------------------------------------------------------------------------- */
/* ! PAGINA ABOUT */
/* -------------------------------------------------------------------------------- */
/* LINEA DEL TEMPO: istruzione ed esperienze */
#lineadeltempo h2 {
    grid-column: 1/9;
    font-size: 30px;
    text-align: center;
    color: var(--light);
    margin-top: 50px;
}

#lineadeltempo {
    margin-bottom: 100px;
    margin-top: 20px;
}

.timeline {
    grid-column: 1/9;
    align-items: center;
    justify-content: flex-start;
    padding: 20px 40px;
    overflow-x: auto;
    white-space: nowrap;
}

.timeline-event {
    display: inline-block;
    position: relative;
    margin: 0 20px;
    text-align: center;
}

.timeline-event::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -20px;
    width: 20px;
    height: 2px;
    background-color: #333;
    z-index: -1;
}

.timeline-event:first-child::before {
    display: none;
}

.timeline-event::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -20px;
    width: 20px;
    height: 2px;
    background-color: #333;
    z-index: -1;
}

.timeline-event:last-child::after {
    display: none;
}

.timeline-content {
    background-color: white;
    padding: 10px 20px;
    border: 2px solid #333;
    border-radius: 10px;
}

.timeline-content h3 {
    margin: 0 0 10px 0;
}

.timeline-content p {
    margin: 0;
}

.timeline-content a {
    color: #252121;
    font-weight: bold;
    font-style: italic;
}

.timeline-content a:hover {
    color: #CCF234;
    border-bottom: 1px solid var(--accent);
}

.timeline::-webkit-scrollbar {
    height: 8px;
}

.timeline::-webkit-scrollbar-track {
    background: var(--dark);
    border-radius: 10px;
}

.timeline::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
}

/* -------------------------------------------------------------------------------- */
/* ! PAGINE IN PRIMO PIANO: PROGETTI */
/* -------------------------------------------------------------------------------- */

#Medi {
    grid-column: 1/9;
    display: flex;
    justify-content: center;
    margin-top: 0;
}

/* Rimando a behance per progetto in pagina dedicata*/
.ricerca__img {
    grid-column: 1/9;
    display: flex;
    flex-direction: column;
    gap: 30px;
    justify-content: center;
    align-items: center;
    margin-top: 50px;

}

.ricerca__img a {
    transition: transform 0.3s ease-in-out;
}

.ricerca__img a:hover {
    transform: scale(1.1);
}

.ricerca__img img {
    border-radius: 10px;
}

/* Funzioni di Medi */
.funzioni__text {
    grid-column: 1/9;
    gap: 30px;
}

.funzioni {
    align-items: center;
    margin-bottom: 20px;
}

.funzioni__img {
    grid-column: 1/9;
    display: flex;
    justify-content: center;
}

.funzioni1__img {
    grid-column: 1/9;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.funzioni1__img img {
    width: 50%;
}

.funzioni__img img {
    width: 50%;
}

.funzioni2__img {
    grid-column: 1/9;
    display: flex;
    justify-content: center;
}

.funzioni2__img img {
    width: 50%;
    align-items: center;
}

.funzioni2__text {
    grid-column: 1/9;
}

.funzioni__text h2,
.funzioni2__text h2 {
    margin-bottom: 10px;
}

#progetti1 {
    margin-top: 40px;
    border-radius: 20px;
    background-color: var(--light);
}

/* ACCORDION */

.dettagli {
    flex-direction: column;
    display: flex;
    grid-column: 1/9;
    padding-top: 60px;

}

details div {
    color: var(--light);
    padding: 20px;
    font-family: 'Work Sans', sans-serif;

}

details div>*+* {
    margin-top: 1.5em;
}

details+details {
    margin-top: 10px;
}

summary {
    list-style: none;
}

summary::-webkit-details-marker {
    display: none;
}

summary {
    border: 2px solid var(--light);
    padding: 20px;
    cursor: pointer;
    position: relative;
    font-family: 'Work Sans', sans-serif;
    font-size: larger;
    border-radius: 10px;
    color: var(--light);
}

summary:before {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 10px;
    content: "↓";
    width: 28px;
    height: 28px;
    background-color: #000;
    color: #FFF;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    box-sizing: border-box;
    transition: transform 0.35s;
}

summary:hover::before {
    animation: bounce 0.5s;
}

summary:hover {
    background-color: var(--accent);
    color: var(--dark);
    border: 2px solid var(--accent);
}



/* -------------------------------------------------------------------------------- */
/* ! DISPOSITIVI MEDI */
/* -------------------------------------------------------------------------------- */
@media (min-width: 768px) {

    input {
        width: 900px;
    }

    /* PRIMA SEZIONE */
    .welcome__text {
        grid-column: 1/5;
    }

    .welcome__img {
        grid-column: 5/9;
    }

    .welcome__img img {
        object-fit: contain;
    }

    /* SECONDA SEZIONE: skill + card + programmi */
    .container {
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
    }

    .container1 {
        grid-column: 2/5;
        max-width: 768px;
    }

    .container2 {
        grid-column: 5/8;
        max-width: 768px;
    }

    #programmi li {
        grid-column: span 4;
    }

    /* SEZIONE QUATTRO: in primo piano progetti (TESI E ISIA) */
    .tesi__text {
        grid-column: 2/5;
        text-align: left;
    }

    .tesi__img {
        grid-column: 5/8;
    }

    .tesi__img img {
        object-fit: contain;
    }

    .ISIA__img img {
        object-fit: contain;
    }

    .ISIA__img {
        grid-column: 2/5;
    }

    .ISIA__text {
        grid-column: 5/8;
        text-align: left;
    }

    /* FOOTER */
    .footer__contatti {
        grid-column: 1/4;
        text-align: center;
        margin-bottom: 40px;
    }

    .footer__riassunto {
        grid-column: 4/6;
        text-align: center;
        margin-bottom: 40px;
    }

    .footer__policy {
        grid-column: 6/9;
        text-align: center;
    }

    /* SEZIONE CINQUE: selettore progetti */
    .progetti__text h1 {
        grid-column: 1/9;
        margin-top: 30px;
    }

    .progetti__text p {
        grid-column: 1/9;
    }

    #progetti {
        height: 650px;
    }

    .wrapper {
        margin: 30px auto;
    }

    .wrapper nav .items {
        flex-wrap: wrap;
        justify-content: center;
        max-width: 600px;
    }

    nav .items {
        gap: 10px;
    }

    nav .items span {
        margin: 5px;
        padding: 7px 15px;
    }

    .gallery .image {
        width: 100%;
    }

    /* -------------------------------------------------------------------------------- */
    /* ! PAGINE PROGRETTI */
    /* -------------------------------------------------------------------------------- */


    .funzioni1__img {
        grid-column: 6/9;
    }

    .funzioni2__img {
        grid-column: 1/4;
    }

    .funzioni2__text {
        grid-column: 5/9;
    }


    .funzioni__text {
        grid-column: 1/5;
    }

    .funzioni__img {
        grid-column: 6/9;
    }

}


@media (min-width: 540px) {
    #progetti {
        height: 750px;
    }
}

@media (min-width: 400px) {
    #progetti {
        height: 750px;
    }
}

@media (min-width:860px) {
    .ricerca__img {
        grid-column: 1/9;
        flex-direction: row;
    }

    .container {
        flex-direction: row;
    }

    .container .card .slide {
        width: 250px;
        height: 200px;
    }
}

/* -------------------------------------------------------------------------------- */
/* ! DISPOSITIVI GRANDI */
/* -------------------------------------------------------------------------------- */
@media (min-width: 992px) {

    /* in questo modo la griglia fa anche da container */
    .grid {
        max-width: 1060px;
        /* per mettere la griglia in mezzo */
        margin: 0 auto;
    }

    /* PRIMA SEZIONE */
    .welcome__text {
        grid-column: 1/5;
    }

    /* Skill */
    .container {
        flex-direction: row;
    }

    .container .card .slide {
        width: 300px;
        height: 200px;
    }

    #programmi li {
        grid-column: span 2;
    }

    /* Contatti form */
    input {
        width: 1100px;
    }

    #contatti {
        gap: 50px;
        gap: 50px;
        margin-top: 50px;
        margin-bottom: 50px;
    }

    /* IN PRIMO PIANO */
    .container1 {
        margin: 0;
    }

    /* -------------------------------------------------------------------------------- */
    /* ! MEDI/MANIARTIGIANE */
    /* -------------------------------------------------------------------------------- */
    .ricerca__img {
        grid-column: 1/9;
        display: flex;
        flex-direction: row;
    }
}

/* Loading */
#loading-container {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #CCF234, #252121);
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    transition: transform 1s ease-in-out;
    z-index: 1000;
}

#loading {
    margin-bottom: 40px;
    margin-right: 50px;
    font-size: 40px;
}


#content {
    display: none;
}

#loading-container.hide {
    transform: translateY(-100%);
}