/*
1. Google Fonts
2. Variabili globali (:root)
3. Fondamenta (html, body)
4. Tipografia
5. Componenti
6. Colori e background
7. Sizing
8. Form
9. Layout
10. Animazioni
*/


/* ==================================================
   1) GOOGLE FONTS
================================================== */

@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');


/* ==================================================
   2) VARIABILI GLOBALI
================================================== */

:root {

    --primary-color: #3C3C3B;

    --background-color: #ffffff;
    --background-color-dark: #3C3C3B;

    --link-hover-color: #DDDDDD;

    --custom-radius: 0px;

    --btn-radius: 19px;
    --btn-padding: 0.5rem 1rem;

    --section-padding: 120px;

    --main-font: "Lato", sans-serif;

    /*
     * Altezza indicativa della navbar quando è sticky.
     * Viene utilizzata anche per gli ancoraggi.
     */
    --navbar-offset: 30px;
}


/* ==================================================
   3) FONDAMENTA
================================================== */

html {

    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: var(--navbar-offset);
    color: var(--primary-color);
}


body {
    margin: 0;
    background-color: var(--background-color);
    color: var(--primary-color);
    font-family: var(--main-font);
    font-size: 1rem;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
}


/*
 * Protezione aggiuntiva per gli ancoraggi.
 */
:target {
    scroll-margin-top: var(--navbar-offset);
}
section[id] {
    scroll-margin-top: var(--navbar-offset);
}


/* ==================================================
   4) TIPOGRAFIA
================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    color: var(--primary-color);
    line-height: 1.2;
}

h1 {
    font-size: 5rem;
    line-height: 1;
}


h2 {
    font-size: 4rem;
    line-height: 1.1;
}


h3 {
    font-size: 1.5rem;
}


h4 {
    font-size: 2rem;
}


h6 {
    color: var(--primary-color);
}


p {
    margin-bottom: 0;
}


a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.25s ease;
}


a:hover {
    color: var(--link-hover-color);
    text-decoration: none;
}


/* dimensioni testo */

.text-xl {
    font-size: 3rem;
    line-height: 1.1;
}

.text-lg {
    font-size: 2.3rem;
    line-height: 1.1;
}

.text-md {
    font-size: 30px;
    line-height: 1.3;
}


.bold,
b,
strong {

    font-weight: 700;
}


/* ==================================================
   5) COMPONENTI
================================================== */


/* --------------------------------------------------
   NAVBAR
-------------------------------------------------- */

header.sticky-top {
    z-index: 1030;
}

.navbar {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    will-change: padding;
    transition:
        padding-top 0.35s ease,
        padding-bottom 0.35s ease,
        background-color 0.35s ease,
        box-shadow 0.35s ease;
}

.navbar.scrolled {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    background-color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* brand */
.navbar-brand {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

/* logo */
.navbar-logo {
    display: block;
    width: 130px;
    height: auto;
    transition:
        width 0.35s ease,
        opacity 0.25s ease;
}
.navbar.scrolled .navbar-logo {
    width: 65px;
}

/* menu */
.nav-item {
    padding: 0.35rem 1.5rem;
}

.nav-link {
    padding: 0 !important;
    color: var(--primary-color);
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    transition: color 0.25s ease;
}

.nav-link:hover {
    color: #C3C3C3;
}

/* hamburger */
.navbar-toggler,
.navbar-toggler:focus,
.navbar-toggler:focus-within {
    border: 0;
    box-shadow: none;
    outline: none;
}


/* --------------------------------------------------
   DROPDOWN
-------------------------------------------------- */

ul.dropdown-menu {
    padding: 0;
    background-color: transparent;
    border: 0;
}
.dropdown-menu li {
    margin-bottom: 0.1rem;
    background-color: rgba(0, 0, 0, 0.8) !important;
}
.dropdown-menu li a {
    color: #ffffff;
    font-size: 15px;
    font-weight: 300;
}


/* --------------------------------------------------
   SEZIONI
-------------------------------------------------- */

section {
    padding-top: var(--section-padding);
    padding-bottom: var(--section-padding);
}


section.half-section, .half-section {
    padding-top: calc(var(--section-padding) / 2);
    padding-bottom: calc(var(--section-padding) / 2);
}


/* --------------------------------------------------
   FOOTER
-------------------------------------------------- */
#footer {
    padding: 20px 0 30px 0;
}

#footer ul {
    list-style-type: none;
}
.menu-footer {
    padding: 0;
    margin-bottom: 0;
}

.menu-footer li{
    margin-bottom: 3px;
    font-weight: 300;
}
.menu-footer li:last-child{
    margin-bottom: 0px;
}
.menu-footer li a{
    color: #fff;
}
.menu-footer li a:hover{
    color: #ddd;
}
.footer-copyright {
    text-align: center;
    border-top: 1px solid #fff;
    padding-top: 15px;
    font-size: 14px;
}

/* ==================================================
   6) COLORI E BACKGROUND
================================================== */

.bg-dark {
    background-color: var(--background-color-dark) !important;
}


/* ==================================================
   7) SIZING
================================================== */

.min-vh-30 {
    min-height: 30vh;
}

.min-vh-50 {
    min-height: 50vh;
}

.min-vh-100 {
    min-height: 100vh;
}

.min-vw-30 {
    min-width: 30vw;
}

.min-vw-50 {
    min-width: 50vw;
}

.min-vw-100 {
    min-width: 100vw;
}

.vw-30 {
    width: 30vw;
}

.vw-50 {
    width: 50vw;
}

.vw-100 {
    width: 100vw;
}


/* ==================================================
   8) FORM
================================================== */

/* --------------------------------------------------
   CONTACT FORM
-------------------------------------------------- */

.quantica-contact-form {
    margin-top: 25px;
}
/* GRID */
.contact-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 28px;
}
.contact-field--full {
    grid-column: 1 / -1;
}

/* RESET CF7 */
.quantica-contact-form p {
    margin: 0;
}
.quantica-contact-form .wpcf7-form-control-wrap {
    display: block;
}
.quantica-contact-form .wpcf7-spinner {
    display: none;
}

/* INPUT */
.quantica-contact-form input[type="text"],
.quantica-contact-form input[type="email"],
.quantica-contact-form input[type="tel"],
.quantica-contact-form textarea {
    width: 100%;
    padding: 10px 20px;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 0;
    color: var(--primary-color);
    font-family: var(--main-font);
    font-size: 16px;
    font-weight: 300;
    outline: none;
    transition:
        border-color 0.25s ease,
        background-color 0.25s ease;
}
.quantica-contact-form textarea {
    height: 140px;
    resize: none;
}

/* PLACEHOLDER */
.quantica-contact-form input::placeholder,
.quantica-contact-form textarea::placeholder {
    color: rgba(0, 0, 0, 0.6);
    opacity: 1;
}

/* FOCUS */
.quantica-contact-form input[type="text"]:focus,
.quantica-contact-form input[type="email"]:focus,
.quantica-contact-form input[type="tel"]:focus,
.quantica-contact-form textarea:focus {
    border-color: #ffffff;
    background-color: rgba(255, 255, 255, 0.08);
}

/* BOTTOM */
.contact-form-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}

/* CHECKBOX */
.contact-privacy .wpcf7-list-item {
    margin: 0;
}
.contact-privacy label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}
.contact-privacy input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    margin: 0;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.85);
    cursor: pointer;
    position: relative;
}
.contact-privacy input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 8px;
    width: 6px;
    height: 11px;
    border: solid var(--primary-color);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.contact-privacy .wpcf7-list-item-label {
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 400;
}

/* SUBMIT */
.contact-submit {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.quantica-contact-form input[type="submit"] {
    min-width: 135px;
    height: 52px;
    padding: 0 60px 0 28px;
    background-color: #ffffff;
    border: 0;
    border-radius: 100px;
    color: var(--primary-color);
    font-family: var(--main-font);
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition:
        transform 0.25s ease,
        background-color 0.25s ease;
}
.contact-submit-arrow {
    position: absolute;
    top: 50%;
    right: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background-color: var(--primary-color);
    border-radius: 50%;
    color: #ffffff;
    font-size: 22px;
    line-height: 1;
    pointer-events: none;
    transform: translateY(-50%);
    transition: transform 0.25s ease;
}
.contact-submit:hover .contact-submit-arrow {
    transform:
        translateY(-50%)
        translateX(2px);
}

/* VALIDATION */
.quantica-contact-form .wpcf7-not-valid-tip {
    margin-top: 5px;
    color: #ffffff;
    font-size: 12px;
}
.quantica-contact-form .wpcf7-response-output {
    margin: 20px 0 0 !important;
    padding: 10px 15px !important;
    font-size: 13px;
}


/* RESPONSIVE */



/* ==================================================
   9) LAYOUT
================================================== */

header.sticky-top {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1030;
}

.navbar:not(.scrolled) {
    background-color: transparent;
}

.navbar.scrolled {
    background-color: #ffffff;
}


/* --------------------------------------------------
   HERO HOME
-------------------------------------------------- */

.home-hero {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 850px;
    padding: 0;
    overflow: hidden;
    border-radius: 0 0 50px 50px;
    background-image: url('../images/banner-hero.jpg');
    background-position: 50% 75%;
    background-repeat: no-repeat;
    background-size: cover;
}

.home-hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    max-width: 650px;
}

.home-hero__title {
    margin: 0 0 35px;
    color: #ffffff;
    font-size: clamp( 40px, 3.75vw, 52px );
    font-weight: 900;
    line-height: 1;
}

.home-hero__title span {
    display: block;
}

.home-hero__text {
    width: 100%;
    max-width: 500px;
    margin: 0;
    color: #ffffff;
    font-size: 16px;
    line-height: 24px;
}

.home-hero__text strong {
    font-weight: 700;
}


.title-section {
    font-size: clamp( 40px, 3.5vw, 48px );
    font-weight: 900;
    line-height: 1.1;
}
.subtitle-section {
    font-size: clamp( 20px, 2vw, 28px );
    font-weight: 300;
}


.chisiamo-section {
    overflow: hidden;
}
.chisiamo-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3rem;
    align-items: stretch;
    margin-top: 3rem;
}
.chisiamo-item {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.text-chisiamo-item {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 70px;
    padding: 15px 25px;
    background-color: #F3F3F3;
    border: 1px solid #DDDDDD;
    border-radius: 100px;
    line-height: 1.3;
    /* stato iniziale animazione */
    opacity: 0;
    transform: scale(0.2);
    transform-origin: center center;
}
/* LINEA TRA I BOX */
.chisiamo-line {
    position: absolute;
    top: 50%;
    left: 100%;
    width: 3rem;
    height: 2px;
    background-color: #DDDDDD;
    z-index: 1;
    transform: translateY(-50%) scaleX(0);
    transform-origin: left center;
}

/* --------------------------------------------------
   FONDATORI
-------------------------------------------------- */

.fondatori-section {
    position: relative;
    overflow: hidden;
}

.fondatori-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(360px, 1.35fr)
        minmax(0, 1fr);
    gap: clamp(45px, 6vw, 85px);
    align-items: start;
}


/* COLONNE LATERALI */

.fondatori-column {
    padding-top: 30px;
}
.fondatore-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.fondatore-logo {
    display: block;
    width: auto;
    max-width: 180px;
    height: 38px;
    margin-bottom: 18px;
    object-fit: contain;
    object-position: left center;
}

.fondatore-item p {
    margin: 0 0 17px;
    font-weight: 300;
    line-height: 1.5;
}


/* READ MORE */

.fondatore-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    font-weight: 700;
    line-height: 1;
}
.fondatore-link:hover {
    color: #ffffff;
}


.fondatore-link__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 1px solid #fff;
    border-radius: 50%;
    font-size: 13px;
    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}
.fondatore-link:hover .fondatore-link__icon {
    background-color: #ffffff;
    color: #3D3D3B;
    transform: translateX(4px);
}


/* SEPARATORE */

.fondatori-divider {
    width: 100%;
    height: 1px;
    margin: 38px 0 30px;
    background-color: rgba(255, 255, 255, 0.35);
}


/* CENTRO */

.fondatori-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.fondatori-symbol {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 440px);
    aspect-ratio: 1 / 1;
    margin: 0 auto;
}
.fondatori-symbol > img {
    display: block;
    object-fit: contain;
}

/* BACCINI */
.fondatore-item--baccini {
    width: 100%;
    max-width: 480px;
    margin-top: 65px;
    align-items: center;
    text-align: center;
}
.fondatore-item--baccini .fondatore-logo {
    margin-left: auto;
    margin-right: auto;
}
.fondatore-item--baccini p {
    text-align: center;
}


.box-white {
    background-color: #F3F3F3;
    border: 1px solid #DDDDDD;
    border-radius: 24px;
    padding: 25px;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.icon-box img {
    object-fit: contain;
    height: 55px;
}
.title-box {
    font-size: 24px;
    font-weight: 700;
    line-height: 30px;
}

.bg-section-contact {
    background-color: #BEBEBE;
    padding: 80px 60px;
    border-radius: 24px;
    width: calc(100% - 60px);
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
}

.contact-form-title {
    color: #fff;
    font-size: 22px;
    line-height: 25px;
    font-weight: 700;;
}

/* ==================================================
   10) ANIMAZIONI
================================================== */