/* -------------------------------------------------------------------------------- */
/* ! Impostazioni base */
/* -------------------------------------------------------------------------------- */

/* Tavolozza colore */
[data-theme='light'] {

    /* Tavolozza colore */
    --primary: #4b80a1;
    --light: #ffffff;
    --accent: #cc3e4b;
    --dark: #484538;
    /* animazioni micro */
    --micro: 0.5s
}

[data-theme='dark'] {

    /* Tavolozza colore */
    --primary: #23272a;
    --light: #676767;
    --accent: #b7b7b7;
    --dark: #5a0303;
    /* animazioni micro */
    --micro: 0.5s
}

/* reset */

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

a {
    text-decoration: none;
}

/* Utility */
html {
    scroll-behavior: smooth;
}

.res {
    width: 50%;
    max-width: 130px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* tipografia */
body {
    font-family: 'Gambetta', serif;
    font-size: 1.2em;
    background-color: var(--light);
    color: var(--dark);
}



h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'General Sans', sans-serif;
    color: var(--accent);
}

p {
    font-size: 1.2em;
    margin-bottom: 15px;
    color: var(--dark);
}

p.leading {
    font-size: 1.2em;
    color: var(--dark);
}

li {
    font-size: 1.2em;
    color: var(--dark);
}


/* header */
header.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
}

.fixed {
    position: fixed;
    width: 100%;
    background: var(--primary);
    z-index: 2;
}

.header__cta {
    background: var(--accent);
    border-radius: 7px;
    transition: transform 1s;
    font-family: 'General Sans', sans-serif;
}

/* .header__logo,
.header__menu,
.header__cta,
.header__icon {
    width: 130px;} */

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

.header__logotipo img {
    width: 80%;
    display: flex;
    justify-content: center;
    padding: 10px;
}

.site-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 55px;
    padding: 25px;
    font-size: 1em;
}

.site-nav li {
    list-style-type: none;
}

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

.header__cta .button {
    display: block;
    text-align: center;
    padding: 10px 15px;
}

.button:hover {
    transform: translate(-0.25rem, -0.25rem);
    box-shadow: .25rem .25rem 0rem var(--light);
    border-radius: 7px;
}

.header__icon {
    /* visibility: hidden; */
    display: none;
    z-index: 10;
}

#toggle-theme span {
    cursor: pointer;
    scroll-margin-top: 80px;
    padding: 15px;
}

[data-theme='light'] #toggle-theme .night {
    display: none;
}

[data-theme='dark'] #toggle-theme .light {
    display: none;
}

/* Hero */

.hero {
    background: linear-gradient(0deg, rgba(0, 0, 0, .2), rgba(0, 0, 0, 0.9)), url(../IMG/cancello.jpeg) no-repeat center center;
    background-size: cover;
    height: 100vh;
    background-size: cover;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: var(--primary);
    opacity: 0.4;
}

.hero__content {
    z-index: 1;
    color: var(--light);
    padding: 20px;
    text-align: center;
}

.hero__content h1 {
    font-size: 5em;
    color: var(--light);
}

.hero__content h2 {
    font-size: 4em;
    margin-bottom: 25px;
    color: var(--light);
}

.hero__content .button {
    background: var(--accent);
    border-radius: 7px;
    transition: transform 1s;
    padding: 10px 15px;
    color: #ffffff;
    font-family: 'General Sans', sans-serif;
}


/* section */
section {
    scroll-margin-top: 80px;
    margin-bottom: 85px;
    padding: 15px;
}

footer.prova {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    margin-top: 40px;
    padding: 30px;
    background-color: var(--primary);
    color: var(--light);
    width: 100%;
    display: inline-block;
    height: 50vh;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    text-decoration: underline;
}


.footer-distributed {
    background: var(--primary);
    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.12);
    box-sizing: border-box;
    width: 100%;
    text-align: left;
    font-family: 'Gambetta', serif;
    padding: 55px 50px;
}

.footer-distributed .footer-left,
.footer-distributed .footer-center,
.footer-distributed .footer-right {
    display: inline-block;
    vertical-align: top;
}

/* Footer left */

.footer-distributed .footer-left {
    width: 40%;
}

/* The company logo */

.footer-distributed h1 {
    color: var(--light);
    font-family: 'General Sans', sans-serif;
    margin: 0;
}

.footer-distributed h1 span {
    color: var(--accent);
}

/* Footer links */

.footer-distributed .footer-links {
    color: var(--light);
    margin: 20px 0 12px;
    padding: 0;
}

.footer-distributed .footer-links a {
    display: inline-block;
    line-height: 1.8;
    font-weight: 400;
    text-decoration: none;
    color: inherit;
}

.footer-distributed .footer-company-name {
    color: navy;
    font-size: 20px;
    font-weight: normal;
    margin: 0;
}

/* Footer Center */

.footer-distributed .footer-center {
    width: 35%;
}

.footer-distributed .footer-center i {
    background-color: var(--dark);
    color: var(--light);
    font-size: 25px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    text-align: center;
    line-height: 42px;
    margin: 10px 15px;
    vertical-align: middle;
}

.footer-distributed .footer-center i.fa-envelope {
    font-size: 20px;
    line-height: 38px;
}

.footer-distributed .footer-center p {
    display: inline-block;
    color: var(--light);
    font-weight: 400;
    vertical-align: middle;
    margin: 0;
    font-size: 20px;
}

.footer-distributed .footer-center p span {
    display: block;
    font-weight: normal;
    line-height: 2;
    font-size: 20px;
}

.footer-distributed .footer-center p a {
    color: navy;
    text-decoration: none;
    font-size: 15px;
}

.footer-distributed .footer-links a:before {
    content: "|";
    font-weight: 300;
    font-size: 15px;
    left: 0;
    color: var(--light);
    display: inline-block;
    padding-right: 5px;
}

.footer-distributed .footer-links .link-1:before {
    content: none;
}

/* Footer Right */

.footer-distributed .footer-right {
    width: 20%;
}

.footer-distributed .footer-company-about {
    line-height: 20px;
    color: navy;
    font-size: 20px;
    font-weight: normal;
    margin: 0;
}

.footer-distributed .footer-company-about span {
    display: block;
    color: #ffffff;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
}

.prontuario a {
    background-color: var(--primary);
    color: var(--light);
    padding: 10px 20px;
    border-radius: 10px;
    border: 3px solid var(--accent);
    font-weight: 900;
    display: flex;
    justify-content: center;
    width: fit-content;
    font-family: 'General Sans', sans-serif;
}

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

/* poster */

.poster {
    align-items: center;
    display: flex;
}

.content__servizi h2 {
    padding-bottom: 10px;
    padding-top: 10px;
    text-transform: unset;
}

.container__word {
    width: 100%;
    text-align: center;
    margin-top: 100px;
}

.toggle-theme {
    display: inline-block;
    justify-content: center;
}

/* per adattare immagine alla seìtessa sezione del suo contenitore */

.poster__img img {
    object-fit: cover;
    padding-right: 30px;
}

/* grid */
.grid {
    display: flex;
    max-width: 1350px;
    padding: 0 30px;
    margin: 0 auto;
}

.col p {
    width: 100%;
}

.grid .col {
    width: 70%;
}

/* Carousel */
.main-carousel {
    padding: 40px 0;
}

.carousel-cell {
    height: 350px;
    width: 350px;
    background: var(--accent);
    border-radius: 100%;
    line-height: 350px;
    text-align: center;
    margin: 40px;
}

.content__contatti {
    display: flex;
    width: 100%;
    align-items: center;
}

.mappa {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.content__offerta {
    display: flex;
    width: 100%;
    justify-content: center;

}

.content__offerta img {
    padding: 40px;
}


.prodotti_ferramenta ul {
    margin-bottom: 20px;
}

details {
    border: 1px solid var(--accent);
    border-radius: 4px;
    padding: 0.5em 0.5em 0;
}

summary {
    font-weight: bold;
    margin: -0.5em -0.5em 0;
    padding: 0.5em;
}

details[open] {
    padding: 0.5em;
}

details[open] summary {
    border-bottom: 1px solid var(--accent);
    margin-bottom: 0.5em;
}

.details {
    display: flex;
}

.grassetto {
    font-weight: bolder;
}

.indirizzo2 {
    list-style-type: none;
    padding-bottom: 40px;
}

.indirizzo li {
    margin: 10px;
}

.grid_prodottiside {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px 20px;
    max-width: 100%;
}

.image.prod.side {
    display: block;
    position: relative;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.overlay1,
.overlay2,
.overlay3 {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--accent);
    display: flex;
    opacity: 0;
    transition: .5s ease;
    padding: 20px;

}

.image.prod.side:hover .overlay1,
.image.prod.side:hover .overlay2,
.image.prod.side:hover .overlay3 {
    opacity: 1;
}

.textprodside1 p,
.textprodside2 p,
.textprodside3 p {
    color: white;
    font-size: 1.2em;
    position: absolute;
    overflow: hidden;
    top: 10%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    margin-top: 150px;
}

div.scroll-container {
    background-color: var(--dark);
    overflow: auto;
    white-space: nowrap;
    padding: 10px;
}

div.scroll-container img {
    padding: 10px;
}

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

@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(--primary);
        color: var(--primary);
        transform: translateY(-100%);
        align-items: center;
    }

    /* Hamburger */
    .icon-hamburger {
        height: 20px;
        width: 40px;
        cursor: pointer;
        position: relative;
        transition: 0.3s cubic-bezier(.38, .95 .65, .09);
    }

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

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

    /* 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);
    }

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

    .site-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 25px;
        padding: 25px;
        font-size: 3em;
        height: 100vh;
        background: var(--primary);
    }

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

    .mappa {
        object-fit: cover;
        height: 100%;
    }

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

    .elenco_servizi ul {
        margin-left: 30px;
    }


    .header__cta .button {
        display: none;
    }


    .content__offerta {
        flex-wrap: wrap;

    }


    .grid_prodottiside img {
        grid-column: 1/4;
    }

    .prodotti_ferramenta ul {
        margin-left: 30px;
        margin-bottom: 20px;
    }

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

    }

    .grid {
        flex-wrap: wrap;
    }

    .poster {
        flex-direction: column;
    }

    .poster__content {
        width: 100%;
    }

    .content__contatti {
        flex-direction: column;
    }

    .footer-distributed {
        font: bold 14px;
        font-family: 'Gambetta', serif;
    }

    .footer-distributed .footer-left,
    .footer-distributed .footer-center,
    .footer-distributed .footer-right {
        display: block;
        width: 100%;
        margin-bottom: 40px;
        text-align: center;
    }

    .footer-distributed .footer-center i {
        margin-left: 0;
    }

    .overlay1,
    .overlay2,
    .overlay3 {
        width: 60%;
    }

}


/* Helpers */
.mt-3 {
    margin-top: 150px;
}

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

@media (max-width: 480px) {
    .header__cta {
        display: none;
    }

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

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

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

    .content__offerta {
        flex-wrap: wrap;
    }

    .footer-left h1 {
        font-size: 1em;
    }

    .footer-distributed .footer-center p a {
        font-size: 1em;
    }

    .offerta1 img,
    .offerta2 img {
        width: 100%;
    }

    .scroll-container img {
        width: 100%;
    }

    .site-nav li {
        width: 100%;
    }

    .site-nav {

        height: 100vh;

    }

    .overlay1,
    .overlay2,
    .overlay3 {
        width: 100%;
    }

}