/* =========================================================
   ROOT & VARIABLES
   ========================================================= */
:root {
    --primary-text-color: rgba(255, 255, 255, 1);
    --secondary-text-color: rgba(19, 20, 25, 1);
    --company-color: rgba(85, 99, 148, 1);
    --placeholder-color: rgba(208, 212, 224, 1);
    --primary-border-color: rgba(255, 255, 255, 0.65);
    font-size: 18px;
}

/* =========================================================
   RESET & BASE
   ========================================================= */
:focus {
    box-shadow: none !important;
}

body {
    font-family: "Barlow Semi Condensed";
    font-size: 1rem;
    color: var(--primary-text-color, #fff);
}

img {
    max-width: 100%;
}

p {
    margin: 0;
}

ol,
ul {
    padding-left: 1rem;
    margin: 0;
}

/* =========================================================
   LINKS & INTERACTIONS
   ========================================================= */
a,
svg,
button {
    transition: all 0.3s !important;
}

a {
    font-size: 1rem;
    font-weight: 600;
    line-height: 98.111%;
    letter-spacing: 0.353px;
    color: var(--primary-text-color, #fff);
    /*text-transform: capitalize;*/
    text-decoration: none;
}

    a:hover {
        opacity: 0.5;
        color: inherit !important;
    }

        a:hover svg {
            transform: scale(1.2);
        }

/* =========================================================
   BACKGROUNDS & COLORS
   ========================================================= */
.bg-img {
    min-height: 250px;
    max-height: 80vh;
    background: no-repeat center / cover fixed;
}

.w-50-g-0.bg-img {
    aspect-ratio: 1 / 1;
}

.bg-primary {
    background-color: var(--primary-text-color, #fff) !important;
}

    .bg-primary p {
        color: var(--secondary-text-color, #131419);
    }

.bg-secondary {
    background-color: var(--secondary-text-color, #131419) !important;
}

.bg-tertiary {
    background-color: var(--company-color, #556394) !important;
}

/* =========================================================
   NAVBAR
   ========================================================= */
nav .logo {
    max-height: 60px;
}

nav .navbar-toggler {
    border: none;
    color: var(--primary-text-color, #fff);
}

    nav .navbar-toggler .navbar-toggler-icon {
        background-image: none;
    }

nav .offcanvas {
    background-color: var(--company-color, #556394);
    border-color: var(--primary-border-color) !important;
    color: var(--primary-text-color, #fff);
}

    nav .offcanvas * {
        color: inherit !important;
    }

    nav .offcanvas .btn-close {
        display: flex;
        flex-wrap: wrap;
        background-image: none;
        font-size: 1.5rem;
    }

/* =========================================================
   SECTIONS & LAYOUT
   ========================================================= */
.section-header {
    height: 100vh;
    background: no-repeat center / cover fixed;
}

section:not(.section-header) .container {
    display: flex;
    flex-direction: column;
    gap: 45px;
    padding: 120px 15px;
}

/* =========================================================
   OVERLAYS
   ========================================================= */
.overlayed,
.overlayed-dark {
    position: relative;
}

    .overlayed::before,
    .overlayed-dark::before {
        content: '';
        position: absolute;
        inset: 0;
    }

    .overlayed::before {
        background-image: linear-gradient( 0deg, rgba(0, 0, 0, 0.20), rgba(0, 0, 0, 0.20) );
    }

    .overlayed-dark::before {
        background-image: linear-gradient( 0deg, rgba(0, 0, 0, 0.60), rgba(0, 0, 0, 0.60) );
    }

/* =========================================================
   TITLES & TEXT
   ========================================================= */
.subtitle {
    color: var(--secondary-text-color, #131419);
    font-size: 1rem;
    font-weight: 600;
    line-height: 92%;
    letter-spacing: 0.497px;
    text-transform: uppercase;
}

.title {
    color: var(--company-color, #556394);
    font-weight: 600;
}

h2 {
    font-size: 4rem;
    line-height: 113.889%;
    letter-spacing: -1.501px;
    margin: 0;
}

section .title-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 1;
}

    section .title-container .title {
        color: var(--company-color, #556394);
    }

section .bg-tertiary .title-container .title,
section.bg-tertiary .title-container .title,
section.bg-img.overlayed-dark .title-container * {
    color: var(--primary-text-color, #fff);
}

/* =========================================================
   CONTENT
   ========================================================= */
section .content-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    z-index: 1;
}

.header-links {
    padding: 60px;
}

    .header-links > * {
        flex-grow: 1;
        gap: 15px;
    }

/* =========================================================
   WIDTHS & UTILITIES
   ========================================================= */
.w-50-g-0 {
    width: calc(50%);
}

.w-50-g-20 {
    width: calc(100% - 20px);
}

.w-33-g-30 {
    width: calc((100% - 60px) / 3);
}

.p-90 {
    padding: 90px;
}

.gap-10 {
    gap: 10px;
}

.gap-45 {
    gap: 45px;
}

.gap-text {
    gap: 1rem 30px !important;
}

.max-h-fit {
    max-height: fit-content !important;
}




footer {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-content: flex-start;
    align-items: center;
    padding: 100px 60px;
}

    footer p {
        color: rgb(134, 135, 134) !important;
    }

        footer p strong {
            color: var(--secondary-text-color, #131419);
        }

        footer p a {
            color: rgb(134, 135, 134);
            font-weight: inherit;
        }

            footer p a:not([href^="tel:"]):not([href^="mailto:"]) {
                color: var(--secondary-text-color, #131419);
                text-decoration: underline;
                text-underline-offset: 2px;
                text-decoration-thickness: 2px;
                font-weight: 600;
            }

.text-right {
    text-align: right;
}

form {
    transition: all 0.3s;
}

    form.d-none {
        opacity: 0;
        transform: translateY(-20px);
        pointer-events: none;
    }

    #form-success {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
        transition: all 0.3s;
    }

        #form-success.d-none {
            display: flex !important;
            flex-direction: column;
            flex-wrap: wrap;
            opacity: 0;
            transform: translateY(20px); /* leggero movimento dal basso */

            position: absolute; /* sopra la form */
            top: 0;
            left: 0;
            width: 100%;
            text-align: center;
            pointer-events: none; /* non interferisce con altri elementi */
        }

        #form-success *{
            margin: 0;
            text-align: left;
        }

        form input,
        form textarea {
            background-color: transparent;
            border-style: solid;
            border-width: 0 0 1px 0;
            border-color: var(--placeholder-color, #d0d4e0);
            padding: 10px 0 15px 0;
            color: var(--primary-text-color, #fff);
            font-weight: 500;
            transition: all 0.3s;
        }

    form input:focus,
    form textarea:focus {
        border-color: var(--primary-text-color, #fff);
    }

    form input::placeholder,
    form textarea::placeholder {
        color: var(--placeholder-color, #d0d4e0);
    }

    form input:focus-visible,
    form textarea:focus-visible {
        outline: none;
    }

    form input[type="checkbox"] {
        appearance: none;
        border-radius: 6px;
        cursor: pointer;
        position: relative;
        padding: 0;
        width: calc(1rem + 4px);
        height: calc(1rem + 4px);
        border: 1px solid var(--primary-text-color, #fff);
        transition: all 0.3s;
    }

        form input[type="checkbox"]:hover {
            background-color: var(--primary-text-color, #fff);
        }

        form input[type="checkbox"]:checked {
            background-color: var(--primary-text-color, #fff);
        }

            form input[type="checkbox"]:checked::after {
                content: "✓";
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
                color: var(--company-color, #556394);
                font-size: 1rem;
                pointer-events: none;
                font-weight: 700;
            }

form button {
    text-transform: uppercase;
    background-color: var(--primary-text-color, #fff);
    border-radius: 100px;
    color: var(--company-color, #556394);
    border-style: solid;
    border-width: 2px;
    border-color: var(--primary-text-color, #fff);
    font-weight: 600;
    letter-spacing: 0.05rem;
    padding: 13px 25px 13px 25px;
    min-width: 150px;
}

    form button.blocked {
        opacity: 0.5;
        pointer-events: none;
    }

        form button.blocked::selection {
            background-color: transparent;
        }

    form button:hover {
        background-color: transparent;
        color: var(--primary-text-color, #fff);
    }

.navbar.fixed-top{
	width: 100%;
}

.btn.color-invert{
	background-color: #fff;
	color: var(--company-color, #556394)!important;
}

.btn{
	background-color: var(--company-color, #556394);
    color: #fff;
    text-transform: uppercase;
    padding: 7px 15px;
    min-width: 150px;
	font-weight: 500;
}

.btn:hover{
	opacity: 1!important;
	transform: scale(0.95)!important;
}

/* =========================================================
   MEDIA QUERIES
   ========================================================= */
@media screen and (max-width: 1024px) {
    section .container {
        max-width: none;
    }

    .w-33-g-30 {
        width: 100%;
    }

    .p-60-sm {
        padding: 60px;
    }

    section:not(.section-header) .container {
        padding: 60px 15px;
    }

    h2 {
        font-size: 3.5rem;
    }

    footer {
        padding: 45px 15px;
    }

    .gap-30-sm {
        gap: 30px;
    }
}

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

    h2 {
        font-size: 2.75rem;
    }

    section .title-container {
        text-align: center;
    }

    .header-links {
        padding: 30px;
    }

    p {
        text-align: center;
    }

    .bg-img {
        max-height: 25vh;
    }

    .w-100-xs {
        width: 100%;
    }

    .order-1-xs {
        order: 1;
    }

    .p-60-15-xs {
        padding: 60px 15px;
    }

    .text-center-xs {
        text-align: center;
    }

    .justify-content-center-xs {
        justify-content: center;
    }

    .d-none-xs {
        display: none;
    }

    #form-success * {
        text-align: center;
    }
}