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


:root {
    /* Tavolozza colore */
    --primary: #00B4D8;
    --secondary: #0077B6;
    --light: #F4F3EE;
    --accent: #8FD694;
    --dark: #031926;
    /* Animazioni micro */
    --micro: 0.6s cubic-bezier(.99, .3, .06, .79);
}

.highlighter {
    background: var(--secondary);
    color: var(--light);
}

.blu {
    color: var(--secondary);
}

.verde {
    color: var(--accent);
}

.azzurro {
    color: var(--primary);
}

.bianco {
    color: var(--light);
}


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

a {
    text-decoration: none;
}

li {
    list-style-type: none;
}

/* Utility */

html {
    scroll-behavior: smooth;
}

.clippy {
    clip-path: circle(40% at 50% 50%);
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    /* outline: 1px solid red; */
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

/* Tipografia */
body {
    font-family: 'Satoshi', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Pilcrow Rounded', sans-serif;
}

p {
    font-size: 1.2em;
    margin-bottom: 15px;
}

p.leading {
    font-size: 1.2em;
}

/* Header */
header {
    background: var(--dark);
    padding: 20px;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.header__logo {
    width: 130px;
}

.header__menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__menu a {
    font-family: 'Pilcrow Rounded', sans-serif;
}

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

.site-nav li {
    margin-right: 10px;
    margin-left: 10px;
}

header a {
    color: var(--light);
    font-size: 1.2em;
}

header a:hover {
    color: var(--accent);
}

.header__cta .button {
    display: block;
    text-align: center;
    padding: 5px 10px;
    border: 1px solid var(--primary);
    border-radius: 20px;
    background: var(--primary);
    color: var(--light);
    font-family: 'Pilcrow Rounded', sans-serif;
}

.button:hover {
    background: var(--accent);
    border: 2px solid var(--accent);
    border-radius: 20px;
    color: var(--dark);
}

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

/* Hero */

.hero {
    background: url(../img/image1.jpg) no-repeat center center;
    height: 100vh;
    background-size: cover;
    /* display: flex; */
    align-items: center;
}

.hero::before {
    content: ' ';
    margin-top: 118px;
    width: 100%;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    background: rgb(127, 124, 124);
    opacity: 0.4;
}

.hero__content {
    z-index: 1;
    display: grid;
    grid-column: 3;
    justify-self: left;
    color: var(--dark);
    /* outline: 1px solid red; */
    padding: 20px;
    text-align: left;
    font-size: 1.2em;
    line-height: 37px;
}

.hero__content p.leading {
    color: var(--light);
    line-height: 30px;
    margin-top: 30px;
    margin-bottom: 30px;
    font-size: 1.2em;
}

.hero__content a {
    background: var(--accent);
    border: 10px solid var(--accent);
    font-family: 'Pilcrow Rounded', sans-serif;
    border-radius: 30px;
    color: var(--dark);
    width: fit-content;
}

.hero__content a:hover {
    background: var(--dark);
    border: 13px solid var(--dark);
    border-radius: 33px;
    color: var(--light);
    width: fit-content;
}

/* Section */
section {
    /* outline: 1px solid red; */
    scroll-margin-top: 80px;
    margin-bottom: 25px;
    padding: 15px;
}

.content__banner p {
    margin-top: 30px;
    font-size: 1.2em;
}

/* Section - Chi siamo */

.about__chi-siamo h2 {
    color: var(--primary);
}

.about__chi-siamo p.leading,
p {
    width: 80%;
}

.about__chi-siamo p {
    font-size: 1.2em;
}

.content__about {
    display: flex;
}

.about__banner {
    background: var(--light);
    border: 20px solid var(--light);
    border-radius: 20px;
}

.about__banner h2 {
    color: var(--secondary);
}

.about__banner p.leading {
    margin-right: 10px;
    font-size: 1.2em;
}

.about__banner p {
    font-size: 1.2em;
}

.fa-square-phone {
    font-size: 4.5em;
    color: var(--accent);
    margin-right: 20px;
    margin-left: 10px;
}

.about__phone {
    display: flex;
}

.about__phone p.leading {
    font-size: 1.5em;
}

/* Section - Attività e progetti */

.content__attività h2 {
    color: var(--primary);
}

.content__attività p.leading {
    width: 50%;
}

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

.progetti h2 {
    color: var(--dark);
    margin-left: 0;
}

.progetti .button {
    display: block;
    text-align: center;
    padding: 5px 10px;
    border: 1px solid var(--accent);
    border-radius: 20px;
    background: var(--accent);
    color: var(--dark);
    font-family: 'Pilcrow Rounded', sans-serif;
    max-width: 120px;
}

.progetti .button:hover {
    background: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 20px;
    color: var(--light);
}

.progetto-1 {
    display: flex;
    flex-direction: column;
    background: var(--light);
    border: 20px solid var(--light);
    border-radius: 20px;
    height: 400px;
    max-width: 350px;
}

.progetto-1 h2 {
    margin-top: 245px;
}

.cta-1 {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    height: 30px;
}

.cta-1 .button {
    text-align: center;
    width: fit-content;
    padding: 5px 10px;
    border: 1px solid var(--primary);
    border-radius: 20px;
    background: var(--light);
    color: var(--primary);
    font-family: 'Pilcrow Rounded', sans-serif;
}

.cta-1 .button:hover {
    border: 1px solid var(--primary);
    border-radius: 22px;
    background: var(--primary);
    color: var(--light);
}

.progetto-2 {
    display: flex;
    flex-direction: column;
    background: var(--light);
    border: 20px solid var(--light);
    border-radius: 20px;
    height: 400px;
    max-width: 350px;

}

.cta-2 {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 160px;
}

.cta-2 .button {
    text-align: center;
    width: fit-content;
    padding: 5px 10px;
    border: 1px solid var(--primary);
    border-radius: 20px;
    background: var(--light);
    color: var(--primary);
    font-family: 'Pilcrow Rounded', sans-serif;
}

.cta-2 .button:hover {
    border: 1px solid var(--primary);
    border-radius: 22px;
    background: var(--primary);
    color: var(--light);
}

.progetto-3 {
    display: flex;
    flex-direction: column;
    background: var(--light);
    border: 20px solid var(--light);
    border-radius: 20px;
    height: 400px;
    max-width: 350px;
}

.progetto-3 h2 {
    margin-top: 215px;
}

.cta-3 {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.cta-3 .button {
    text-align: center;
    width: fit-content;
    padding: 5px 10px;
    border: 1px solid var(--primary);
    border-radius: 20px;
    background: var(--light);
    color: var(--primary);
    font-family: 'Pilcrow Rounded', sans-serif;
}

.cta-3 .button:hover {
    border: 1px solid var(--primary);
    border-radius: 22px;
    background: var(--primary);
    color: var(--light);
}

.sostienici {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.sostienici .button {
    text-align: center;
    width: fit-content;
    font-size: 1.6em;
    padding: 5px 10px;
    border: 2px solid var(--primary);
    border-radius: 20px;
    background: var(--primary);
    color: var(--light);
    font-family: 'Pilcrow Rounded', sans-serif;
}

.sostienici .button:hover {
    border: 2px solid var(--accent);
    border-radius: 20px;
    background: var(--accent);
    color: var(--dark);
}

/* Section - Testimonianze */

.content__testimonianze h2 {
    color: var(--primary);
}

.content__testimonianze p.leading {
    width: 50%;
}

.testimonianze {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.testimonianza-1 {
    display: block;
    width: 50%;
    background: var(--light);
    padding: 30px;
    border-radius: 20px;
    height: fit-content;
}

.testimonianza-1-nome {
    display: flex;
    align-items: center;
}

.testimonianza-1-nome img {
    margin-bottom: 20px;
    width: 150px;
}

.testimonianza-1-video {
    position: relative;
    padding-bottom: 56.25%;
}

.testimonianza-1-video iframe,
.testimonianza-1-video object,
.testimonianza-1-video embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


.testimonianza-2 {
    display: block;
    width: 50%;
    background: var(--light);
    padding: 30px;
    border-radius: 20px;
    height: fit-content;
}

.testimonianza-2-nome {
    display: flex;
    align-items: center;
}

.testimonianza-2-nome img {
    margin-bottom: 20px;
    width: 150px;
}

.testimonianza-2-video {
    position: relative;
    padding-bottom: 56.25%;
}

.testimonianza-2-video iframe,
.testimonianza-2-video object,
.testimonianza-2-video embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.torna-su .button {
    width: fit-content;
    float: right;
    padding: 5px 10px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    background: var(--accent);
    color: var(--dark);
    font-size: 1.6em;
}

.torna-su .button:hover {
    border: 2px solid var(--primary);
    border-radius: 50%;
    background: var(--primary);
    color: var(--light);
}

/* Footer */
footer {
    background: var(--dark);
    color: var(--light);
    padding: 15px;
}

footer a {
    color: var(--light);
}

footer a:hover {
    color: #8FD694;
}

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

footer h2 {
    margin-bottom: 20px;
}

footer p.leading,
p {
    margin: 0;
    font-size: 1em;
}

footer .info {
    margin-right: 50px;
}

.info h2 {
    margin-top: 20px;
}

.info li {
    margin-bottom: 20px;
}

.link li {
    margin-bottom: 20px;
}

.contatti li {
    margin-bottom: 20px;
}

.contatti i {
    color: var(--accent);
}

/* -------------------------------------------------------------------------------- */
/* ! Dispositivi medi */
/* -------------------------------------------------------------------------------- */
@media (max-width:768px) {

    .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(--dark);
        transform: translateY(-100%);
        transition: var(--micro);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 3;
    }

    /* Hamburger */

    .icon-hamburger {
        cursor: pointer;
        height: 20px;
        width: 40px;
        position: relative;
        transition: var(--micro);
    }

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

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

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

    .icon-hamburger span:nth-child(4) {
        top: 20px;
        width: 90%;
        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.4;
    }

    .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 {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 25px;
        padding: 30px;
        font-size: 3em;
    }

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

    .header__logo {
        z-index: 3;
    }

    /* Hero */
    .hero__content h1 {
        font-size: 1.7em;
        line-height: 1em;
    }

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

    /* Section - About */
    .content__about {
        display: flex;
        flex-direction: column;
    }

    .about__chi-siamo p.leading {
        width: 100%;
        margin-bottom: 0;
    }

    .about__chi-siamo p {
        width: 100%;
        margin-bottom: 50px;
    }

    .about__banner h2 {
        margin-left: 0;
    }

    .about__banner p.leading,
    p {
        width: 100%;
    }

    /* Section - Attività */
    .content__attività p.leading {
        width: 100%;
        margin-bottom: 20px;
    }

    .progetti {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .progetto-1 {
        /* width: 80%; */
        margin-bottom: 50px;
    }

    .progetto-2 {
        margin-bottom: 50px;
    }

    /* Section - Testimonianze */
    .content__testimonianze p.leading {
        width: 100%;
        margin-bottom: 50px;
    }

    .testimonianze {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .testimonianza-1 {
        width: 80%;
        margin-bottom: 20px;
    }

    .testimonianza-2 {
        width: 80%;
        margin-bottom: 20px;
    }

    /* Footer */
    .link li {
        margin-right: 20px;
    }

}

/* -------------------------------------------------------------------------------- */
/* ! Dispositivi piccoli */
/* -------------------------------------------------------------------------------- */

@media (max-width: 480px) {

    /* Header */
    .header__cta {
        display: none;
    }

    /* Hero */
    .hero__content h1 {
        font-size: 1.3em;
        line-height: 1em;
    }

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

    /* Section - Testimonianze */
    /* iframe {
        width: fit-content;
    } */
    .testimonianza-1-nome {
        max-width: 70px;
        font-size: 0.9em;
    }

    .testimonianza-1-nome h2 {
        margin-bottom: 15px;
    }

    .testimonianza-1-nome img {
        max-width: 100px;
    }

    .testimonianza-2-nome {
        max-width: 70px;
        font-size: 0.9em;
    }

    .testimonianza-2-nome h2 {
        margin-bottom: 15px;
    }

    .testimonianza-2-nome img {
        max-width: 100px;
    }

    /* Footer */
    footer .container {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
}