:root {
    --verde-chiaro: #89864D;
    --verde: #636335;
    --brown: #914E41;
    --marroncino: #E0D2C4;
    --beige: #F1EBE5;
    --nero: #000000;
    --grigione: #2f2f2f;
    --bianco: #ffffff;
    --hor-padding: 10%;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    width: 100%;
}

html {
    scroll-behavior: smooth;
}

ul {
    padding: 0 0 0 1rem;
}

li {
    margin-bottom: 0.5rem;
}

a {
    width: fit-content;
}

.hidden {
    display: none;
}

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

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

.color-lightgreen {
    color: var(--verde-chiaro);
}

.bg-lightgreen {
    background-color: var(--verde-chiaro);
}

.bg-green {
    background-color: var(--verde);
}

.color-brown {
    color: var(--brown);
}

.bg-brown {
    background-color: var(--brown);
}
.bg-marroncino {
    background-color: var(--marroncino);
}

.bg-beige {
    background-color: var(--beige);
}

a {
    text-decoration: none;
    color: inherit;
}

.base-button {
    background-color: var(--nero);
    color: var(--bianco);
    display: flex;
    flex-direction: row;
    padding: 1rem 2rem;
    text-transform: uppercase;
    width: fit-content;
    height: fit-content;
    border-radius: 1000px;
    float: right;
}

.base-button:hover {
    cursor: pointer;
    box-shadow: 0 0 5px black;
}




/* ____HEADER____ */

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 4rem var(--hor-padding) 2rem var(--hor-padding);
    z-index: 10;
}

.main-header.shadowed {
    box-shadow: 0 0 7px rgb(96, 96, 96);
}

.main-header-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 1rem;
}

.main-header.narrow {
    padding: 2rem var(--hor-padding) 2rem var(--hor-padding);
    transition: padding 0.3s;
}

.header-anchors-container {
    display: flex;
    flex-direction: row;
    align-items: end;
    gap: 1rem;
}

.header-logo {
    height: 1.5rem;
    flex-grow: 0;
}


.header-logo img {
    max-height: 100%;
    object-fit: contain;
    object-position: left;
} 

.header-anchor {
    text-wrap: nowrap;
}

.header-anchor:hover {
    text-decoration: underline;
}

.hamburger-button {
    width: 1.5rem;
    display: none;
    cursor: pointer;
    flex-shrink: 0;
}

.main-menu {
    display: none;
    width: 100%;
    z-index: 5;
    padding: 4rem 0;
}

.main-menu.active {
    display: block;
}

.menu-anchors-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: right;
}


/* _____MISC_____ */

.blocks-container {
    padding-top: 10rem;
    display: flex;
    flex-direction: column;
}

.scroll-id {
    position: absolute;
    left: 0;
    top: -5rem;
    width: 0;
    height: 0;
}



/* _____COLUMNS_____ */

.two-columns-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.three-columns-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}

.four-columns-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 1rem;
}


/* _____SEPARATORS_____ */

.line-separator {
    margin: 4rem 0;
    height: 1px;
    width: 100%;
    background-color: var(--bianco);
}

.simple-line {
    height: 1px;
    background-color: var(--verde-chiaro);
    margin: 0 var(--hor-padding)
}






/* ___________BLOCKS___________ */


/* _STARTER_ */

.starter-block {
    display: grid;
    padding: 5rem var(--hor-padding);
    grid-template-columns: repeat(10, 1fr);
    column-gap: 10px;
    position: relative;
}

.starter-content {
    grid-column: span 6;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* _FULLIMAGE_ */

.fullimage-block {
    height: fit-content;
}

.logo-big {
    width: 20rem;
    ;
}

/* _GENERIC_ */

.generic-block {
    padding: 5rem var(--hor-padding);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
}

.generic-block-description {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.generic-block-description .base-button {
    margin-top: 1rem;
}

.description-tagline {
    margin-top: 2rem;
}

.members-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    column-gap: 1rem;
}

.member-image {
    aspect-ratio: 4/5;
    overflow: hidden;
    margin-bottom: 2rem;
    position: relative;
}

.member-image > img {
    min-height: 100%;
    min-width: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.member-bio {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.service-card {
    background-color: var(--beige);
    color: var(--nero);
    padding: 2.5rem;
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.services-description {
    margin-top: 3rem;
    margin-bottom: 1rem;
    width: 50%;
}

.description-left {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.description-right {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.details-table {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.details-table>.label-piccolissima {
    margin-bottom: 0.5rem;
}

.details-table>.testo-piccolo {
    padding-bottom: 0.5rem;
    border-bottom: 1px solid white;
}

.details-table {
    margin-bottom: 2rem;
}

.projects-main-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin-bottom: 2rem;
    display: none;
    flex-direction: column;
    justify-content: center;
}

.projects-main-image.active {
    display: flex;
}

.projects-description {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 70%;
}

.projects-description-text {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
}

.projects-description-text.active {
    display: flex;
}

.projects-previews-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.5rem;
}

.project-preview {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    cursor: pointer;
}

.project-preview-img {
    aspect-ratio: 1/1;
}

.project-preview.toggled {
    text-decoration: underline;
}

.toggled>.project-preview-img {
    filter: brightness(0.85)
}

.project-preview:hover {
    text-decoration: underline;
}

.quote-block {
    padding: 5rem var(--hor-padding);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contatti-block {
    padding: 5rem var(--hor-padding);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
}

.social-icons-container {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
}

.social-icon {
    width: 2rem;
    cursor: pointer;
}



/* _FULLTEXT_ */

.fulltext-block {
    padding: 5rem var(--hor-padding);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}



/* ______FOOTER______ */

.footer {
    padding: 5rem var(--hor-padding) 10rem var(--hor-padding);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    width: 20rem;
}

.footer-logo-tecnico {
    max-height: 6rem;
    max-width: 8.8rem;
}

.footer-link:hover {
    text-decoration: underline;
}

.partners-container {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}
.partner-logo {
    height: 7rem;
}

.partner-logo > img {
    height: 100%;
    width: auto;
}

.bollo-columns {
    display: flex;
    flex-direction: row;
    gap: 3em;
}

.bollo-img {
    width: 10rem;
    height: 10rem;
}




.newsletter-block {
    padding: 0 var(--hor-padding);
}

.newsletter-content {
    padding: 5rem 17rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    text-align: center;
    align-items: center;
}

.newsletter-intestazione {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.newsletter-inputs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

input {
    width: 100%;
    border: none;
    padding: 0.5rem 1rem;
    font-family: "Poppins", sans-serif;
}

input:focus {
    outline: none;
}

.ext-link > p {
    font-weight: 600;
    text-decoration: underline;
}





@media screen and (max-width: 1200px) {
    .starter-content {
        grid-column: span 9;
    }
    .partner-logo {
        height: 5rem;
    }

    .newsletter-content {
        padding: 5rem 8rem;
        gap: 2rem;
    }
}


@media screen and (max-width: 950px) {

    .header-anchors-container {
        display: none;
    }

    .hamburger-button.active {
        display: block;
    }

}

@media screen and (max-width: 800px) {
    .generic-block-description {
        grid-template-columns: 1fr;
    }

    .four-columns-grid {
        grid-template-columns: 1fr 1fr;
    }

    .three-columns-grid {
        grid-template-columns: 1fr 1fr;
    }
    .newsletter-content {
        padding: 5rem 4rem;
        gap: 2rem;
    }
}


@media screen and (max-width: 700px) {

    :root {
        --hor-padding: 1.5rem;
    }

    .main-header {
        
        padding: var(--hor-padding);
        position: fixed;
    }

    .two-columns-grid {
        grid-template-columns: 1fr;
    }
    .three-columns-grid {
        grid-template-columns: 1fr;
    }

    .four-columns-grid {
        grid-template-columns: 1fr;
    }

    .blocks-container {
        padding-top: 4rem;
    }

    .generic-block-description {
        margin-bottom: 2rem;
    }

    .generic-block {
        padding: 3rem var(--hor-padding);
    }

    .base-button {
        float: left;
    }

    .services-description {
        width: 90%;
    }

    .line-separator {
        margin: 2rem 0;
    }

    .footer {
        grid-template-columns: 1fr;
        gap: 6rem;
        padding-top: 3rem;
    }

    .footer-logo {
        width: 18rem;
    }
    .footer-logo-tecnico {
        max-width: 7.8rem;
    }
    

    .hamburger-button {
        width: 1.3rem;
    }

    .menu-anchors-container {
        gap: 1rem;
    }

    .newsletter-content {
        padding: 5rem 2rem;
    }
    
    .bollo-columns {
        flex-direction: column-reverse;
        gap: 1.5em;
        margin-top: 4rem;
    }
    
    .bollo-img {
        width: 10rem;
        height: fit-content;
    }
    
    .fullimage-block {
        height: 50vh;
        overflow: hidden;
        display: flex;
        flex-direction: row;
        justify-content: center;
    }

    .fullimage-block > img {
        width: auto;
        height: 100%;
    }

    
}


@media screen and (min-width: 1500px) {
    :root {
        --hor-padding: 20%;
    }
}