/* -------------------------------------------------------------------------------- */
/* ! Impostazioni BASE */
/* -------------------------------------------------------------------------------- */


:root {
    /* Tavolozza colore */
    --primary: black;
    --secondary: white;
    --accent: #D43F47;
    --light: #3E7D96;
    --details: #FDE999;
    /* Animazioni micro */
    --micro: 0.2s ease-out;
}

/* reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    color: var(--primary);
}

a:hover {
    color: #D43F47;
}

li {
    list-style-type: none;
}

/* ! Utility - img res(ponsiva) */
html {
    scroll-behavior: smooth;
}

.res {
    width: 100%;
    max-width: 800px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 40px;
    grid-column: 1/11;
    /* outline: 1px solid red; */
}

.container2 {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0px 30px;
    padding-top: 20px;
    grid-column: 1/11;
    /* outline: 1px solid red; */
}


/* ! Tipografia */
body {
    font-family: 'Libre Baskerville';
    font-style: normal;
}

h1 {
    font-family: 'DM Serif Display';
    font-style: italic;
    font-weight: 400;
    color: var(--light);
}

h2,
h4,
h5,
h6 {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--light);
}

h3 {
    font-family: 'Montserrat';
    color: var(--light);
    font-size: 1.2em;
    font-weight: 400;
    margin-bottom: 10px;
}

p {
    font-size: 1em;
    margin-bottom: 10px;
}

p.leading {
    font-size: 1em;
    font-weight: 500;
    margin-bottom: 10px;
}

h2.leading {
    font-size: 2em;
}

.header__logo h1 {
    font-size: 1.8em;
    padding-top: 5px;
    padding-bottom: 10px;
    color: var(--light);
}

a.cta {
    color: var(--light);
    border: 1.5px solid;
    border-color: #3e7d9686;
    padding: 5px 8px;
    margin: 50px 0px;
    font-size: 1.5em;
    font-weight: 500;
}

.hero__content h1 {
    font-size: 2.8em;
    margin-bottom: 10px;
}

.hero__content h2 {
    font-size: 1.2em;
    font-weight: 500;
    margin-bottom: 15px;
}

.hero__content p {
    font-size: 1em;
    line-height: 1.5em;
}

.hero__more h2 {
    font-size: 1.2em;
    font-weight: 500;
    margin-bottom: 15px;
}

.hero__more p {
    margin-bottom: 30px;
}

.footer__menutext {
    font-family: 'Libre Baskerville';
    color: var(--primary);
    font-size: 0.8em;
    margin-bottom: 20px;
    font-weight: 500;
    text-decoration: underline;
}

.footer__title {
    margin-bottom: 10px;
    border-bottom: 2px solid #3e7d96;

}

.footer__text {
    font-family: 'Libre Baskerville';
    font-style: normal;
    font-size: 0.8em;
    margin-bottom: 20px;
    font-weight: 500;
}

.content__about p {
    margin-bottom: 30px;
}

.less__margin p {
    margin-bottom: 5px;
}



/* ! Grid system */
.grid {
    display: grid;
    grid-template-columns: repeat(11, 1fr);
    column-gap: 10px;
    row-gap: 10px;
}

.grid-2x2 {
    display: grid;
    grid-template-columns: repeat(11, 1fr);
    grid-template-rows: repeat(1, 50% 50%);
}




/* Header con approccio desktop-first */
/* header.header {
    display: grid;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
} */

.header__menu {
    gap: 20px;
    text-align: center;
    background: var(--secondary);
    z-index: 2;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light);
    /* display: flex;
    justify-content: center; */
}

.rivista {
    grid-column: 1/3;
}

.dove {
    grid-column: 3/7;
}

.rubriche {
    grid-column: 7/10;
}

.eventi {
    grid-column: 10/12;
}

.fixed {
    position: relative;
    justify-content: center;
    width: 100%;
    background: var(--secondary);
    z-index: 2;
}

/* Provvisorio */
/* .header__logo,
.header__menu,
.header__cta,
.header__icon {
    /* outline: 1px solid red; */
/* } */

/* .header__menu, */
/* .header__cta, */
/* .header__icon, */
.header__logo {
    grid-column: 1/12;
    text-align: center;
    padding-top: 30px;
}


.home:hover,
.rivista:hover,
.dove:hover,
.rubriche:hover,
.eventi:hover {
    color: #D43F47;
}

.header__menu .site-nav>li {
    display: inline-block;
}

header.header a {
    color: var(--primary);
}

/* .header__cta .button {
    display: block;
    text-align: center;
    padding: 5px 10px;
    border: 1px solid var(--accent);
} */

.header__icon {
    /* visibility: hidden; */
    display: none;
}


/* Hero */

.ultimo__numero {
    /* display: grid; */
    background-color: #fde999ba;
    grid-row: 1/2;
}

.hero {
    margin: 0 auto;
    max-width: 1400px;
    /* max-height: fit-content; */
    /* background: url(../img/000251360010.jpg) no-repeat center center; */
    /* height: 50vh; */
    /* background-size: auto; */
    /* padding: 30px 50px; */
    /* display: flex;
    flex-direction: row;
    align-items: center; */
}

/* .hero::before {
    content: ' ';
    width: 100%;
    height: 80%;
    max-height: fit-content;
    position: absolute;
    top: 0;
    left: 0;
    background: var(--details);
    opacity: 0.8;
} */

.hero__img {
    grid-column: 1/5;
    grid-row: 1/3;
    /* outline: 1px solid red; */
    z-index: 1;
}

.hero__content {
    grid-row: 1/2;
    grid-column: 6/12;
    z-index: 1;
    align-self: center;
    /* outline: 1px solid red; */
    /* padding: 20px;
    height: 150px; */
    /* text-align: center; */
}

.hero__more {
    grid-row: 2/3;
    grid-column: 6/12;
    z-index: 1;
    /* outline: 1px solid red; */
    /* padding: 0px 20px; */
    /* text-align: center; */
}

a.cta:hover {
    color: var(--accent);
    border-color: #d43f4678;
}


/* !Body */
.dove__img {
    grid-column: 1/6;
    align-self: center;
}

.dove__content {
    grid-column: 7/11;
    align-self: center;
}

.main__rubriche {
    /* border-top: #3e7d96b5;
    border-bottom: #3e7d96b5;
    border-left: #FFFFFF;
    border-right: #FFFFFF;
    border-style: dotted; */
    background-color: #3e7d9614;
}

/* .content__about {
    margin: 0 auto;
    max-width: 1200px;
    padding: 50px 80px;
    background-color: #3e7d9614;
} */

.eventii {
    margin: 20px 0;
    /* padding: 20px 20px; */
    /* border: 2px solid #fde999b3; */
    /* background-color: #3e7d960e; */
    /* border-style: dotted; */
}

.rubriche__title h2 {
    border-bottom: 1.5px solid var(--light);
}

.eventi__img {
    grid-column: 1/4;
    align-self: center;
}

.eventi__content {
    grid-column: 4/6;
    align-self: center;
}

.eventi__img2 {
    grid-column: 7/10;
    align-self: center;
}

.eventi__content2 {
    grid-column: 10/12;
    align-self: center;
}

.cinema {
    margin: 20px 0;
    /* border: 1px solid #3e7d966d; */
    /* background-color: #fde99938; */
}

.cinema__img {
    grid-column: 1/4;
    align-self: center;
}

.cinema__content {
    grid-column: 4/6;
    align-self: center;
}

.cinema__img2 {
    grid-column: 7/10;
    align-self: center;
}

.cinema__content2 {
    grid-column: 10/12;
    align-self: center;
}

.eventi__cta {
    display: flex;
    justify-content: center;
}

/* ! Section */
section {
    /* outline: 1px solid red; */
    scroll-margin: 85px;
    /* margin: 50px 0; */
    /* padding: 20px; */
}

.content__newsletter {
    display: flex;
    justify-content: start;
    /* margin: 15px 5px; */
}

.cta__primary {
    font-family: 'Montserrat';
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--light);
    background-color: var(--secondary);
    border: none;
    outline: 2px solid var(--light);
    padding: 5px 8px;
    outline-color: #3e7d9674;
}

.cta__primary:hover {
    color: var(--accent);
    outline-color: #d43f466f;
    cursor: pointer;
}

/* ! Footer */

footer {
    width: 100%;
    position: absolute;
    /* bottom: 0; */
    /* height: 300px; */
    background-color: #fde999ba;
}

.fa-instagram {
    color: #3E7D96;
    font-size: 2.3em;
}

.fa-instagram:hover {
    color: #D43F47;
}

.fa-facebook-f {
    color: #3E7D96;
    font-size: 2.3em;
}

.fa-facebook-f:hover {
    color: #D43F47;
}

.fa-x-twitter {
    color: #3E7D96;
    font-size: 2.3em;
}

.fa-x-twitter:hover {
    color: #D43F47;
}

.social {
    display: flex;
    justify-content: space-between;
}

.footer__logo {
    grid-column: 1/4;
    padding-right: 30px;
}

.footer__menu {
    grid-column: 4/6;
    padding-right: 30px;
}

.footer__social {
    grid-column: 6/8;
    padding-right: 30px;
}

.footer__newsletter {
    grid-column: 8/13;
}

form {
    padding-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* border-bottom: 1px solid var(--light); */
}

form .fa-regular {
    font-size: 18px;
    margin-right: 10px;
    color: #3E7D96;
}

form input {

    width: 100%;
    background: #3e7d960f;
    color: #3E7D96;
    border: 0;
    outline: none;
    font-family: 'Libre Baskerville';
    font-style: normal;
    font-size: 0.8em;
}

form button {
    background: transparent;
    border: 0;
    outline: none;
    cursor: pointer;
}

form button .fa-solid {
    font-size: 16px;
    color: #3E7D96;
}


/* -------------------------------------------------------------------------------- */
/* ! Media query large-medium */
/* -------------------------------------------------------------------------------- */

@media (max-width: 1020px) {
    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 30px 30px;
        grid-column: 1/11;
        /* outline: 1px solid red; */
    }

    .hero__content {
        grid-column: 5/12;
        padding-left: 20px;
    }

    .hero__more {
        grid-column: 5/11;
        padding-left: 20px;
        /* align-self: center; */
    }
}

/* -------------------------------------------------------------------------------- */
/* ! Media query medium */
/* -------------------------------------------------------------------------------- */

@media (max-width: 768px) {

    .hero__content {
        height: 300px;
        grid-column: 5/12;
        padding-left: 0px;
    }

    .hero__more {
        grid-column: 1/12;
        padding-left: 0;
        padding-top: 20px;
    }

    .header__icon {
        display: grid;
        padding-left: 30px;
        padding-bottom: 10px;
        border-bottom: 1.5px solid var(--light);
        grid-column: 2/3;
        color: var(--primary);
        text-align: center;
        z-index: 3;
    }

    .header__logo {
        z-index: 3;
    }

    .header__logo h1 {
        font-size: 1.5em;
    }

    .header__menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--secondary);
        transform: translateY(-100%);
        transition: var(--micro);
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #fde999df;
    }

    /* .hero::before {
        content: ' ';
        width: 100%;
        height: 80%;
        max-height: fit-content;
        position: absolute;
        top: 0;
        left: 0;
        background: var(--details);
        opacity: 0.8;
    } */

    /* Hamburger */
    .icon-hamburger {
        cursor: pointer;
        height: 20px;
        width: 35px;
        position: relative;
        transition: var(--micro);
        z-index: 3;
    }

    .icon-hamburger span {
        background: var(--primary);
        height: 2px;
        width: 100%;
        position: absolute;
        left: 0;
        border-radius: 20px;
        transition: var(--micro);
    }

    .icon-hamburger span:nth-child(1) {
        top: 0;
        width: 70%;
        opacity: 1;
    }

    .icon-hamburger span:nth-child(2),
    .icon-hamburger span:nth-child(3) {
        top: 8px;
        width: 70%;
    }

    .icon-hamburger span:nth-child(4) {
        top: 16px;
        width: 70%;
        opacity: 1;
    }

    /* Hamburger in open */
    .open .icon-hamburger {
        transform: rotate(180deg);
    }

    .open .icon-hamburger span:nth-child(1),
    .open .icon-hamburger span:nth-child(4) {
        width: 0;
        opacity: 0.05;
    }

    .open .icon-hamburger span:nth-child(2) {
        transform: rotate(45deg);
        width: 100%;
    }

    .open .icon-hamburger span:nth-child(3) {
        transform: rotate(-45deg);
        width: 100%;
    }

    .site-nav {
        /* background-color: #FDE999; */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 25px;
        padding: 85px;
        font-size: 2em;
        z-index: 1;
        padding-bottom: 0;
    }

    /* richiamo la classe in base al click */
    .open .header__menu {
        transform: translateY(0);
    }

    /* Body - medium */

    a.cta {
        font-size: 1em;
    }

    .dove__img {
        grid-column: 1/6;
        align-self: center;
    }

    .dove__content {
        grid-column: 6/12;
        align-self: center;
    }

    .content__about p {
        margin-bottom: 20px;
    }

    .eventii {
        margin: 20px 0;
        padding: 0px 0px;
        /* border: 2px solid #fde999b3; */
        /* background-color: #3e7d960e; */
        /* border-style: dotted; */
    }

    .eventi__img {
        grid-column: 1/6;
        align-self: center;
        justify-self: center;
        margin-bottom: 20px;
    }

    .eventi__content {
        grid-column: 6/12;
        align-self: center;
        margin-bottom: 20px;
    }

    .eventi__img2 {
        margin-top: 10px;
        grid-column: 1/6;
        align-self: center;
    }

    .eventi__content2 {
        grid-column: 6/12;
        align-self: center;
    }

    .cinema {
        margin: 20px 0;
        padding: 0px 0px;
    }

    .cinema__img {
        grid-column: 1/6;
        align-self: center;
        margin-bottom: 10px;
    }

    .cinema__content {
        grid-column: 6/12;
        align-self: center;
    }

    .cinema__img2 {
        margin-top: 10px;
        grid-column: 1/6;
        align-self: center;
    }

    .cinema__content2 {
        grid-column: 6/12;
        align-self: center;
    }

    /* footer */
    .footer__logo {
        grid-column: 1/6;

    }

    .footer__menu {
        grid-column: 7/13;
    }

    .footer__social {
        grid-column: 1/6;
    }

    .footer__newsletter {
        grid-column: 7/13;
    }

    h2 {
        font-size: 1.3em;
    }

    h2.leading {
        font-size: 1.5em;
    }
}

/* -------------------------------------------------------------------------------- */
/* ! Dispositivi small */
/* -------------------------------------------------------------------------------- */
@media (max-width: 480px) {
    .container {
        padding: 20px 20px;
    }

    .container2 {
        padding: 10px 10px;
    }

    .header__cta {
        display: none;
    }

    .header__logo h1 {
        font-size: 1.1em;
    }

    /* .hero::before {
        content: ' ';
        width: 100%;
        height: 130%;
        max-height: fit-content;
        position: absolute;
        top: 0;
        left: 0;
        background: var(--details);
        opacity: 0.8;
    } */

    /* Icon Hamburger - small */

    .header__icon {
        padding-left: 20px;
        padding-bottom: 5px;
        border-bottom: 1.5px solid var(--light);
    }

    .icon-hamburger span:nth-child(1) {
        top: 0;
        width: 50%;
        opacity: 1;
    }

    .icon-hamburger span:nth-child(2),
    .icon-hamburger span:nth-child(3) {
        top: 5px;
        width: 50%;
    }

    .icon-hamburger span:nth-child(4) {
        top: 10px;
        width: 50%;
        opacity: 1;
    }

    .open .icon-hamburger span:nth-child(2) {
        transform: rotate(45deg);
        width: 50%;
    }

    .open .icon-hamburger span:nth-child(3) {
        transform: rotate(-45deg);
        width: 50%;
    }

    /* body - small */

    .hero__img {
        grid-row: 1/2;
        grid-column: 1/12;
    }

    .hero__content {
        grid-row: 2/3;
        grid-column: 1/12;
        height: 240px;
        padding-left: 0;
        padding-right: 0;
    }

    .hero__content h1 {
        font-size: 1.3em;
    }

    .hero__content h2 {
        font-size: 1em;
    }

    .hero__content p {
        font-size: 0.8em;
    }

    .hero__more {
        grid-row: 3/4;
        grid-column: 1/12;
        padding-left: 0;
        padding-right: 0;
        align-self: center;
    }

    .hero__more h2 {
        font-size: 1em;
    }

    .hero__more p {
        font-size: 0.8em;
    }

    a.cta {
        font-size: 0.9em;
    }

    .dove__img {
        grid-column: 1/12;
        align-self: center;
    }

    .dove__content {
        grid-column: 1/12;
        align-self: center;
    }

    .eventii {
        margin: 10px 0;
        padding: 0px 0px;
    }

    .cinema {
        margin: 10px 0;
        padding: 0px 0px;
    }

    h2 {
        font-size: 1.2em;
    }

    h2.leading {
        font-size: 1.3em;
    }

    h3 {
        font-size: 0.9em;
    }

    p {
        font-size: 0.8em;
    }

    /* footer */
    .footer__logo {
        grid-column: 1/13;
        padding-right: 0px;
    }

    .footer__menu {
        grid-column: 1/6;
        padding-right: 0px;
    }

    .footer__social {
        grid-column: 7/13;
        padding-right: 0px;
    }

    .footer__newsletter {
        grid-column: 1/13;
    }
}