/* -------------------------------------------------------------------------------- */
/* ! 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;
    border: none;
    outline: none;
}

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;
}

/* Section - Archivio */
.content__archivio h2 {
    color: var(--primary);
    margin-top: 50px;
    margin-left: 30px;
}

.content__archivio p.leading {
    margin-left: 30px;
    max-width: 40%;
}

.wrapper {
    width: 95%;
    margin: 0 auto;
}

#search-container {
    margin: 1em 0;
}

#search-container input {
    background-color: transparent;
    width: 40%;
    border-bottom: 2px solid var(--dark);
    padding: 1em 0.3em;
}

#search-container input:focus {
    border-bottom-color: var(--primary);
}

#search-container button {
    padding: 1em 2em;
    margin-left: 1;
    background-color: var(--primary);
    color: var(--light);
    font-family: 'Pilcrow Rounded', sans-serif;
    border-radius: 5em;
    margin-top: 0.5em;
}

.button-value {
    border: 2px solid var(--primary);
    padding: 1em 2.2em;
    border-radius: 3em;
    background-color: transparent;
    color: var(--primary);
    cursor: pointer;
    font-family: 'Satoshi', sans-serif;
}

.active {
    background-color: var(--primary);
    color: var(--light);
}

#products {
    display: grid;
    grid-template-columns: auto auto auto;
    grid-column-gap: 1.5em;
    padding: 2em 0;
}

.card {
    background: var(--light);
    max-width: 18em;
    margin-top: 1em;
    padding: 1em;
    border-radius: 20px;
    box-shadow: 1em 2em 2.5em rgba(1, 2, 68, 0.08);

}

.image-container {
    text-align: center;
}

.image-container img {
    max-width: 100%;
    object-fit: contain;
    height: 15em;
}

.container {
    padding-top: 1em;
    /* color: var(--dark); */
}

.container h4 {
    color: var(--secondary);
}

.hide {
    display: none;
}

/* Section - News */
.content__news h2 {
    color: var(--primary);
    padding: 20px;
    margin-left: 10px;
    margin-top: 20px;
}

.content__news p.leading {
    margin-left: 30px;
    max-width: 40%;
}

.slideshow-container {
    max-width: 1000px;
    position: relative;
    margin: auto;
}

.mySlides {
    display: none;
}

.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.text {
    color: var(--dark);
    background-color: var(--accent);
    font-size: 15px;
    padding: 8px 12px;
    position: absolute;
    bottom: 8px;
    width: 100%;
    text-align: center;
}

.numbertext {
    color: #f2f2f2;
    font-size: 12px;
    padding: 8px 12px;
    position: absolute;
    top: 0;
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #b9f2cc;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

span>.active,
.dot:hover {
    background-color: var(--accent);
}

.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {
        opacity: .4
    }

    to {
        opacity: 1
    }
}

/* Section - Newsletter */
.open-button {
    background-color: var(--accent);
    color: var(--dark);
    padding: 15px 10px;
    border: none;
    cursor: pointer;
    opacity: 0.8;
    position: fixed;
    bottom: 23px;
    right: 28px;
    width: 50px;
    border-radius: 20px;
}

.fa-envelope-open-text {
    font-size: 1.5em;
}

.form-popup {
    display: none;
    position: fixed;
    bottom: 0;
    right: 15px;
    border: 3px solid #f1f1f1;
    z-index: 9;
}

.form-container {
    max-width: 300px;
    padding: 10px;
    background-color: white;
}

.form-container h1 {
    color: var(--secondary);
}

.form-container input[type=name],
.form-container input[type=surname],
.form-container input[type=text] {
    width: 100%;
    padding: 15px;
    margin: 5px 0 22px 0;
    border: none;
    background: #f1f1f1;
}

.form-container input[type=name]:focus,
.form-container input[type=surname]:focus,
.form-container input[type=text]:focus {
    background-color: #ddd;
    outline: none;
}

.form-container .btn {
    background-color: #04AA6D;
    color: white;
    padding: 16px 20px;
    border: none;
    cursor: pointer;
    width: 100%;
    margin-bottom: 10px;
    opacity: 0.8;
}

.form-container .cancel {
    background-color: red;
}

.form-container .btn:hover,
.open-button:hover {
    opacity: 1;
}

/* Section - Social */
.social-nav {
    display: flex;
    justify-content: center;
}

.social-nav li {
    margin-left: 10px;
    margin-right: 10px;
    margin-top: 50px;
    margin-bottom: 50px;
    font-size: 2.3em;
}

.social-nav .fa-brands {
    color: var(--dark);
}

.social-nav .fa-brands:hover {
    color: var(--secondary);
}

/* 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 screen and (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;
    }

    .image-container img {
        max-width: 100%;
        object-fit: contain;
        height: 10em;
    }

    .card {
        max-width: 10em;
        margin-top: 1em;
    }

    #products {
        grid-template-columns: auto auto;
        grid-column-gap: 1em;
    }

}

/* -------------------------------------------------------------------------------- */
/* ! Dispositivi piccoli */
/* -------------------------------------------------------------------------------- */
@media screen and (max-width: 480px) {

    .cancelbtn,
    .signupbtn {
        width: 100%;
    }

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