/* reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
}

li {
    list-style-type: none;
}


/* Utility */

html {
    scroll-behavior: smooth;
    background: #000000;
}

.res {
    width: 100%;
    max-width: 200px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

:root {
    /* Tavolozza colore */
    --dark: #000000;
    --light: #ffffff;
    --accent: #FFB826;
    --primary: #FE7F63;
    --secondary: #0076D6;
    /* Animazioni micro */
    --micro: transform 0.4s ease;
}

/* Layout */
section {
    scroll-margin-top: 120px;
    outline: 3px solid #ffffff;
    margin-bottom: 25px;
    margin-top: 20px;
    padding: 15px;
}


/* Linea di separazione */
hr {
    border: none;
    height: 4px;
    background-color: #ffffff;
    margin: 30px 0;
}

/* Tipografia */
body {
    font-family: "Pathway Extreme", sans-serif;
    font-weight: 400;
    font-size: 1.3em;
    color: #ffffff;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Pathway Extreme", sans-serif;
    color: #ffffff;
}

p {
    font-size: 1em;
}

p.leading {
    font-size: 1.1em;
    font-weight: 700;
}

p.leadingcolor {
    font-size: 1.1em;
    font-weight: 700;
    color: #0076D6;
}

h1 {
    font-size: 3em;
}

/* cta */
.cta-group {
    font-size: 1.5em;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cta__primary {
    border: 3px solid var(--light);
    padding: 2px 30px;
    border-radius: 32px;
    margin-top: 30px;
    margin-left: 300px;
    color: #ffffff;
}

button.cta-group.cta__third {
    background: none;
    padding-bottom: 10px;
    align-items: center;
}

button.cta-group.cta__third:hover {
    background: var(--primary);
    padding-bottom: 10px;
    align-items: center;
}

.cta__third {
    border: 3px solid var(--light);
    padding: 2px 30px;
    border-radius: 32px;
    margin-top: 30px;
    color: #ffffff;
}

.cta__third:hover {
    background: var(--primary);
    border: 3px solid var(--primary);
}

.cta__secondary {
    border: 3px solid var(--light);
    padding: 2px 30px;
    border-radius: 32px;
    font-weight: 700;
    margin-top: 30px;
    color: #ffffff;

}

.cta__primary img {
    padding-top: 10px;
}

.cta__third img {
    padding-top: 10px;
}


.cta__secondary:hover {
    background-color: #ffffff;
    color: #0076D6;
    border: 3px solid var(--light);
}

.cta__primary {
    color: var(--light);
}

.cta__primary:hover {
    background: var(--accent);
    border: 3px solid var(--accent);
}

/* -------------------------------------------------------------------------------- */
/* ! CONTENUTI HTML */
/* -------------------------------------------------------------------------------- */

/* Header */
header.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.fixed {
    position: fixed;
    width: 100%;
    background: #000000;
    z-index: 1;
    top: 0;
}

.header__icon {
    display: none;
}

.header__menu .site-nav>li {
    display: inline-block;
    padding: 5px;
    font-weight: 500;
}

header.header a {
    color: #ffffff;
    display: flex;
    flex-direction: column;
}

header.header a:hover {
    color: var(--accent);
}

/* Hero */
.hero {
    z-index: 2;
    margin-top: 130px;
    margin-bottom: 25px;
}

.hero__content {
    padding: 20px;
}

.hero__content h1 {
    margin-top: 70px;
    font-size: 3em;
    margin-bottom: 30px;
}

.hero__content p {
    margin-top: 300px;
    font-size: 1.em;
    line-height: 1.3em;
    margin-left: 600px;
}

/* PRIMA SEZIONE: about */
.About__sezioni {
    outline: none;
    display: flex;
    justify-content: center;

}

.About__sezioni li {
    display: inline-block;
    padding: 10px;
    margin-bottom: 80px;
}

.About__sezioni figure img {
    /* Imposto la larghezza dell'immagine */
    width: 100%;
    /* Imposto l'altezza automaticamente per mantenere le proporzioni */
    height: auto;
    /* animazione di trnasizione */
    transition: transform 0.3s ease;
}

/* Effetto di ingrandimento sull'hover - 10% */
.About__sezioni figure img:hover {
    transform: scale(1.1);
}

/* QUARTA SEZIONE: progetti */
.Progetti__sezioni {
    outline: none;
    display: flex;
    justify-content: center;

}

.Progetti__sezioni li {
    display: inline-block;
    padding: 10px;
    margin-bottom: 80px;
}

.Progetti__sezioni figure img {
    width: 350px;
    height: auto;
    transition: transform 0.3s ease;
}

.Progetti__sezioni figure img:hover {
    transform: scale(1.1);
}

/* SECONDA SEZIONE: corsi */

.corsi h2 {
    margin-bottom: 350px;
}


.arte h2 {
    margin-bottom: 20px;
    color: #FFB826;
}

.design h2 {
    margin-bottom: 20px;
    color: #F6B1A2;

}

/* TERZA SEZIONE: offerta formativa */
.content__offertaformativa {
    display: flex;
    width: 100%;
}

.content__studiaconnoi {
    background-color: #0076D6;
    margin-bottom: 80px;
}

.content__studiaconnoi h1 {
    margin-bottom: 80px;
}

.content__studiaconnoi p {
    margin-left: 700px;
    margin-bottom: 100px;
}

.content__studiaconnoi .cta-group {
    justify-content: center;
    gap: 40px;
}

.materie {
    display: flex;
    flex-direction: row;
    width: auto;
    vertical-align: top;
    margin-right: 2%;
    margin-bottom: 20px;
}

/* QUINTA SEZIONE: dettaglio progetti università */

.Dettaglio__lavori ul {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.Dettaglio h2 {
    margin-top: 25px;
}

.Dettaglio__lavori li {
    display: flex;
    flex-direction: row;
    gap: 40px;
    margin-top: 80px;
    margin-bottom: 60px;
    align-items: center;
}

.Dettaglio__lavori h3 {
    margin-bottom: 20px;
    color: #FFB826;
}


.Dettaglio__lavori figure img {
    width: 350px;
    height: auto;
    transition: transform 0.3s ease;
}

.Dettaglio__lavori figure img:hover {
    transform: scale(1.1);

}

.lavori_text {
    display: flex;
    flex-direction: column;
}

/* SESTA SEZIONE: contatti */
.contatti p {
    margin-bottom: 80px;
}

.contatti h2 {
    margin-bottom: 10px;
}

.social ul {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 50px;
    margin: 70px 0 50px;
}

.social a {
    color: #ffffff;
}

.social a:hover {
    color: var(--accent);
}


/* FOOTER */
footer {
    background: var(--light);
    color: #000000;
}

footer h4 {
    color: #000000;
    margin-top: 20px;
}

footer li {
    margin-bottom: 5px;
}

footer a {
    color: #000000;
}

footer .lastfooter h4:hover {
    color: var(--accent);
}

footer a:hover {
    color: var(--accent);
}

.footer__contenuti {
    flex-direction: row;
    display: flex;
    align-items: first baseline;
    justify-content: space-between;
    padding: 30px;
    margin-bottom: 0px;
}


/* POPUP */
.content__newsletter {
    display: flex;
    justify-content: right;
}

.button__newsletter {
    display: block;
    border: 0;
    cursor: pointer;
    width: fit-content;
    font-size: 1.3em;
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 25px;
    align-items: center;
    border: 0;
    cursor: pointer;
    width: fit-content;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    background-color: var(--primary);
    color: var(--light);
}

.popup-wrapper {
    background: rgba(0, 0, 0, 0.8);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 1;
}

.popup {
    background: rgb(39, 39, 39);
    color: var(--light);
    width: 100%;
    max-width: 440px;
    margin: 5% auto;
    padding: 15px;
    z-index: 2;
    position: relative;
}

.popup__close {
    position: absolute;
    top: 8px;
    right: 8px;
    cursor: pointer;
}

/* -------------------------------------------------------------------------------- */
/* ! FORM NEWSLETTER MAILCHIMP */
/* -------------------------------------------------------------------------------- */
#mc_embed_signup form {
    display: block;
    position: relative;
    text-align: left;
    margin: 20px
}

#mc_embed_signup h2 {
    font-weight: bold;
    padding: 0;
    margin: 15px 0;
    font-size: 1.1em;
}

#mc_embed_signup input {
    border: 1px solid #ABB0B2;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
}

#mc_embed_signup input[type=checkbox] {
    -webkit-appearance: checkbox;
}

#mc_embed_signup input[type=radio] {
    -webkit-appearance: radio;
}

#mc_embed_signup input:focus {
    border-color: #333;
}

#mc_embed_signup .button {
    clear: both;
    background-color: rgb(39, 39, 39);
    border: 2px solid;
    border-radius: 32px;
    color: #FFFFFF;
    cursor: pointer;
    display: flex;
    font-size: 15px;
    font-family: "Pathway Extreme", sans-serif;
    font-weight: bold;
    align-items: right;
    height: 32px;
    line-height: 1.3em;
    margin: 0 5px 10px 0;
    padding: 0 22px;
    text-align: center;
    text-decoration: none;
    vertical-align: top;
    white-space: nowrap;
    max-width: 150px;
    width: fit-content;
    width: -moz-fit-content;
}

#mc_embed_signup .button:hover {
    background-color: var(--accent);
    border: 2px solid var(--accent);
}

#mc_embed_signup .small-meta {
    font-size: 11px;
}

#mc_embed_signup .nowrap {
    white-space: nowrap;
}

#mc_embed_signup .mc-field-group {
    clear: left;
    position: relative;
    width: 96%;
    padding-bottom: 3%;
    min-height: 50px;
    display: grid;
}

#mc_embed_signup .size1of2 {
    clear: none;
    float: left;
    display: inline-block;
    width: 46%;
    margin-right: 4%;
}

* html #mc_embed_signup .size1of2 {
    margin-right: 2%;
    /* Fix for IE6 double margins. */
}

#mc_embed_signup .mc-field-group label {
    display: block;
    margin-bottom: 3px;
    font-size: 0.8em;
}

#mc_embed_signup .mc-field-group input {
    display: block;
    width: 100%;
    padding: 8px 0;
    text-indent: 2%;
}

#mc_embed_signup .mc-field-group select {
    display: inline-block;
    width: 99%;
    padding: 5px 0;
    margin-bottom: 2px;
}

#mc_embed_signup .mc-address-fields-group {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    width: 96%;
    gap: 15px;
}

#mc_embed_signup .mc-sms-phone-group {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    width: 96%;
    gap: 15px;
    padding-top: 5px;
}

#mc_embed_signup .datefield,
#mc_embed_signup .phonefield-us {
    padding: 5px 0;
}

#mc_embed_signup .datefield input,
#mc_embed_signup .phonefield-us input {
    display: inline;
    width: 60px;
    margin: 0 2px;
    letter-spacing: 1px;
    text-align: center;
    padding: 5px 0 2px 0;
}

#mc_embed_signup .phonefield-us .phonearea input,
#mc_embed_signup .phonefield-us .phonedetail1 input {
    width: 40px;
}

#mc_embed_signup .datefield .monthfield input,
#mc_embed_signup .datefield .dayfield input {
    width: 30px;
}

#mc_embed_signup .datefield label,
#mc_embed_signup .phonefield-us label {
    display: none;
}

#mc_embed_signup .indicates-required {
    text-align: right;
    font-size: 11px;
    margin-right: 4%;
}

#mc_embed_signup .asterisk {
    color: #e85c41;
    font-size: 150%;
    font-weight: normal;
    position: relative;
    top: 5px;
}

#mc_embed_signup .clear {
    clear: both;
}

#mc_embed_signup .foot {
    display: grid;
    grid-template-columns: 3fr 1fr;
    width: 96%;
    align-items: center;
}

@media screen and (min-width:768px) {
    #mc_embed_signup .foot {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
        align-items: center;
    }
}

@media screen and (min-width:480px) {
    #mc_embed_signup .referralBadge {
        width: 50%;
    }
}

#mc_embed_signup .brandingLogo {
    justify-self: right;
}

@media screen and (max-width:400px) {
    #mc_embed_signup .brandingLogo {
        justify-self: left;
    }
}

#mc_embed_signup .mc-field-group.input-group ul {
    margin: 0;
    padding: 5px 0;
    list-style: none;
}

#mc_embed_signup .mc-field-group.input-group ul li {
    display: block;
    padding: 3px 0;
    margin: 0;
}

#mc_embed_signup .mc-field-group.input-group label {
    display: inline;
}

#mc_embed_signup .mc-field-group.input-group input {
    display: inline;
    width: auto;
    border: none;
}

#mc_embed_signup div#mce-responses {
    float: left;
    top: -1.4em;
    padding: 0em .5em 0em .5em;
    overflow: hidden;
    width: 90%;
    margin: 0 5%;
    clear: both;
}

#mc_embed_signup div.response {
    margin: 1em 0;
    padding: 1em .5em .5em 0;
    font-weight: bold;
    float: left;
    top: -1.5em;
    z-index: 1;
    width: 80%;
}

#mc_embed_signup #mce-error-response {
    display: none;
}

#mc_embed_signup #mce-success-response {
    color: #529214;
    display: none;
}

#mc_embed_signup label.error {
    display: block;
    float: none;
    width: auto;
    margin-left: 1.05em;
    text-align: left;
    padding: .5em 0;
}

#mc_embed_signup .helper_text {
    color: #8d8985;
    margin-top: 2px;
    display: inline-block;
    padding: 3px;
    background-color: rgba(255, 255, 255, 0.85);
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    font-size: 14px;
    font-weight: normal;
    z-index: 1;
}

#mc-embedded-subscribe {
    clear: both;
    width: auto;
    display: block;
    margin: 1em 0 1em 5%;
}

#mc_embed_signup #num-subscribers {
    font-size: 1.1em;
}

#mc_embed_signup #num-subscribers span {
    padding: .5em;
    border: 1px solid #ccc;
    margin-right: .5em;
    font-weight: bold;
}

#mc_embed_signup #mc-embedded-subscribe-form div.mce_inline_error {
    display: inline-block;
    margin: 2px 0 1em 0;
    padding: 3px;
    background-color: rgba(255, 255, 255, 0.85);
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    font-size: 14px;
    font-weight: normal;
    z-index: 1;
    color: #e85c41;
}

#mc-embedded-subscribe-form input[type=checkbox] {
    display: inline;
    width: auto;
    margin-right: 10px;
}

#mergeRow-gdpr {
    margin-top: 20px;
}

#mergeRow-gdpr fieldset label {
    font-weight: normal;
}

#mc-embedded-subscribe-form .mc_fieldset {
    border: none;
    min-height: 0px;
    padding-bottom: 0px;
}





/* -------------------------------------------------------------------------------- */
/* ! Media query medium */
/* -------------------------------------------------------------------------------- */
/* DESKTOP FIRST --> dal piccolo al grande min width, altrimenti si mette max width */

@media (max-width: 868px) {


    .container {
        max-width: 100%;
        /* Larghezza massima del contenitore sarà uguale alla larghezza dello schermo */
        padding: 0 20px;
        /* Aggiungo padding ai lati del contenitore per evitare che tocchi il bordo dello schermo */
    }

    /* SECONDA SEZIONE: offerta formativa */
    .materie {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    /* Hero */
    .hero {
        max-width: 100%;
        padding: 0 20px;
    }

    .hero__content p {
        font-size: 1.3em;
        max-width: 100%;
        margin-left: 100px;

    }

    .hero__content h1 {
        font-size: 2.7em;
    }

    .hero__content h2 {
        font-size: 2em;
    }

    /* Header */
    .header__icon {
        display: block;
        color: var(--light);
        text-align: center;
        z-index: 3;
    }

    .header__menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--primary);
        transform: translateY(-100%);
        transition: var(--micro);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    header.header a:hover {
        color: #0076D6;
    }

    /* footer */
    footer .container {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    /* PRIMA SEZIONE*/
    .About__sezioni li {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin: auto;
    }

    /* QUARTA SEZIONE: progetti */
    .Progetti__sezioni li {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin: auto;
    }

    /* Header__menù hambuerger che si trasforma in una x */
    /* Richiamo la classe in base al click */
    .open .header__menu {
        transform: translateY(0);
    }

    /* Hamburger */
    .icon-hamburger {
        height: 20px;
        width: 40px;
        /* per far apparire la manina su desktop quando si va sul pulsante */
        cursor: pointer;
        position: relative;
        transition: var(--micro);
    }

    /* tutti gli span, ovvero le linee, dentro icon hamburger */
    .icon-hamburger span {
        background: var(--light);
        height: 2px;
        width: 100%;
        position: absolute;
        left: 0;
        border-radius: 20px;
        transition: var(--micro);
    }

    /* pseudo classe figlio serve a contare dentro un genitore quante varianti figlio ci sono e a selezionarle in base al numero */
    .icon-hamburger span:nth-child(1) {
        top: 0;
        width: 90%;
        opacity: 1;
    }

    .icon-hamburger :nth-child(2),
    .icon-hamburger :nth-child(3) {
        top: 10px;
        width: 90%;
    }

    .icon-hamburger :nth-child(4) {
        top: 20px;
        width: 90%;
        opacity: 1;
    }

    /* Hambuerger in open */
    /* prima menziono la classe di body "open" e poi specifico su cosa stiamo lavorando, dunque l'icon hamburger */
    .open .icon-hamburger {
        transform: rotate(180deg);
    }

    /* con width si può animare la sparizione dell'oggetto, cosa che invece non si potrebbe fare con la proprietà hidden */
    .open .icon-hamburger :nth-child(1),
    .open .icon-hamburger :nth-child(4) {
        width: 0%;
        opacity: 0;
    }

    .open .icon-hamburger :nth-child(2) {
        transform: rotate(45deg);
        width: 100%;
    }

    .open .icon-hamburger :nth-child(3) {
        transform: rotate(-45deg);
        width: 100%;
    }

    /* selettore che si occupa del menu per mettere gli elementi in colonna */
    .site-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 25px;
        padding: 25px;
        font-size: 3em;
    }

    /* TERZA SEZIONE: offerta formativa */
    /* cta group */
    .cta__primary {
        margin-left: auto;
    }

    .content__studiaconnoi .cta-group {
        gap: 8px;
    }

    .corsi .paragrafo {
        margin-left: auto;
    }

    .content__studiaconnoi p {
        margin: auto;
    }

    /* QUINTA SEZIONE: dettaglio progetti università */

    .Dettaglio__lavori figure img {
        max-width: 100%;
        height: auto;
        min-width: 300px;
    }

    .Dettaglio__lavori p {
        font-size: smaller;
    }

    .Dettaglio__lavori h3 {
        font-size: smaller;
    }
}

/* -------------------------------------------------------------------------------- */
/* ! MEDIA QUERIES INTERMEDIE */
/* -------------------------------------------------------------------------------- */
@media (max-width: 540px) {
    .hero__content h1 {
        font-size: 2.0em;
    }

    .footer__contenuti {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
}

@media (max-width:1024px) {
    .About__sezioni li {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin: auto;
    }

    .Progetti__sezioni li {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin: auto;
    }

    .container {
        max-width: 900px;
        margin: 0 auto;
    }
}


/* -------------------------------------------------------------------------------- */
/* ! DISPOSITIVI MOBILE */
/* -------------------------------------------------------------------------------- */
@media (max-width: 480px) {


    /* Hero */
    .hero__content h1 {
        font-size: 0.9em;
    }

    .hero__content p {
        margin-left: auto;
        font-size: smaller;
    }

    /* PRIMA SEZIONE: about */

    .About__sezioni figure img {
        max-width: 100%;
        height: auto;
        min-width: 100px;

    }

    .About__sezioni li {
        margin-bottom: auto;
    }

    /* QUARTA SEZIONE: progetti */

    .Progetti__sezioni li {
        margin-bottom: auto;
    }

    .Progetti__sezioni figure img {
        max-width: 100%;
        height: auto;
        min-width: 100px;

    }

    /* QUINTA SEZIONE: dettaglio progetti università */

    .Dettaglio__lavori li {
        display: flex;
        flex-direction: column;
        max-width: 100%;
    }

    .Dettaglio__lavori figure img {
        max-width: 100%;
        height: auto;
        min-width: 50px;
    }

    /* FOOTER */
    .footer__contenuti {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    /* SESTA SEZIONE: contatti */
    .social ul {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 50px;
        margin: 70px 0 50px;
    }

    /* TERZA SEZIONE: offerta formativa */
    /* cta-group */
    .cta-group {
        gap: 5px;
    }

    .content__studiaconnoi .cta-group {
        gap: 5px;
    }
}