@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

body {
    font-family: "Montserrat", sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: #0D1B2A;
    overflow-x: hidden;
    margin: 0;
}
body.modal-open {
    overflow: hidden;
    overflow: hidden; 
}

.centrato {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contatti-back{
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-image: radial-gradient(circle, rgba(13, 102, 194, 0.25) 0%, rgba(13, 102, 194, 0.40) 60%),url(../img/contattaci/absolutvision-WYd_PkCa1BY-unsplash_11zon.jpg);
    width: 100%;
    min-height: 35svh;
}
    .contatti-back h1{
        color: #ffffff;
        font-weight: 400;
        font-size: 2rem;
    }

.contatti-info{
    width: 100%;
    background-color: white;
    flex-direction: column /*Da togliere con responsive*/;
    padding: 30px 0;
}
    .contatti-info-box{
        width: 90%;
        flex-direction: column;
        text-align: start;
        max-width: 556px;
    }
    .contatti-info-box h3{
        text-align: center;
        color: #cf2e2e;
        font-weight: 600;
        width: 100%;
        font-size: 1.4rem;
    }
    .contatti-info-grid-txt p{
        font-size: 1rem;
    }
        .contatti-info-grid-txt{
            max-width: 600px;
            width: 100%;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 2fr));
        }
        .contatti-box-grid{
            display: flex;
            justify-content: left;
            align-items: center;
        }
        .contatti-box-grid a{

            width: 25px;
            height: 25px;
            margin: 0 5px;
        }
        .contatti-box-grid h4{
            color: #005EE9;
            width: 100%;
            font-weight: 600;
            font-size: 1.2rem;
            margin-bottom: 10px;
        }
        .contatti-box-grid svg path{
            stroke: #cf2e2e;
        }
        .contatti-box-grid svg:hover path{
            stroke: #005EE9;
        }
        #icon-mail svg path{
            stroke-width: 0px;
        }
        #icon-mail:hover svg path{
            fill:#005EE9
        }
        .contatti-box-mail span{
            font-style: italic;
            font-size: 0.8rem;
            color: #005EE9;
        }
        #contatti-mail{
            flex-direction: column;
            align-items: start;
        }
        #contatti-numero{
            flex-direction: column;
        }
        #contatti-numero div{
            width: 100%;
            display: flex;
            justify-content: left;
            align-items: center;
        }
        #contatti-orari{
            flex-direction: column;
        }
        #contatti-orari div{
            width: 100%;
            display: flex;
            justify-content: left;
            align-items: center;
        }
        #contatti-orari svg{
            width: 25px;
            height: 25px;
            margin: 0 5px;
        }
        #contatti-orari span{
            color: #005EE9;
        }
        #contatti-social{
            flex-direction: column;
        }
        #contatti-social div{
            width: 100%;
            display: flex;
            justify-content: left;
            align-items: center;
        }

/* Contenitore per Nome e Cognome affiancati */
        .input-group {
            display: flex;
            gap: 20px;
            margin-bottom: 20px;
            width: 100%;
        }
        .input-group > div {
            flex: 1;
        }
        
        label {
            display: flex;
            margin: 5px 0;
            font-weight: 600; /* Font Montserat più spesso */
            color: #0D1B2A; /* Colore scuro */
        }

        /* Campi di input */
        input[type="text"],
        input[type="email"],
        textarea {
            width: 100%;
            padding: 10px;
            border: 1px solid #ccc;
            border-radius: 4px;
            box-sizing: border-box;
            font-size: 1rem;
            font-family: "Montserrat", sans-serif;
            background-color: #f7f7f7;
        }
        textarea {
            resize: vertical;
        }

        /* Stile specifico per il testo placeholder "Nome" / "Cognome" sotto il campo (simulazione) */
        .placeholder-text {
            display: block;
            font-size: 0.8rem;
            color: #777;
            margin-top: 5px;
        }
        
        /* Stili per il pulsante INVIA */
        button[type="submit"] {
            background-color: transparent; /* Colore blu coerente con il tuo CSS */
            color: #005EE9;
            border: solid 2px;
            padding: 12px 25px;
            cursor: pointer;
            font-weight: 600;
            transition: background-color 0.3s;
            text-transform: uppercase;
            letter-spacing: 1px;
            font-weight: 300;
        }
        button[type="submit"]:hover {
            background-color: #005EE9; /* Al passaggio diventa scuro */
            color: white;
        }

        #contatti-form{
            padding-bottom: 25px;
        }
.contatti-maps{
    width: 100%;
    height: 30svh;
}

.privacy-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 15px 0 25px;
    font-size: 0.85rem;
    font-style: italic;
    font-weight: normal;
    color: #555;
    line-height: 1.4;
}

.privacy-consent input[type="checkbox"] {
    margin-top: 3px;
    cursor: pointer;
}
#submitBtn {
    padding: 12px 30px;
    background-color: #005EE9;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Stato DISABILITATO */
#submitBtn:disabled {
    background-color: #cfcfcf;
    color: #888;
    cursor: not-allowed;
    opacity: 0.7;
    box-shadow: none;
}

/* Hover SOLO quando attivo */
#submitBtn:not(:disabled):hover {
    background-color: #004bb8;
}
.privacy-consent input[type="checkbox"]:checked + span,
.privacy-consent input[type="checkbox"]:checked {
    color: #000;
}



/* MODAL BASE */
.privacy-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.privacy-modal.active {
    display: flex;
}

.privacy-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}

/* CONTENUTO */
.privacy-modal-content {
    position: relative;
    max-width: 520px;
    width: calc(100% - 100px);
    max-height: 60vh;
    overflow-y: auto;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}


.privacy-modal-content h2 {
    margin-top: 0;
    font-size: 1.2rem;
}

.privacy-close {
    margin-top: 20px;
    padding: 10px 20px;
    background: #005ee9;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* LINK "HO LETTO" */
.privacy-link {
    background: none;
    border: none;
    padding: 2px;
    font-style: italic;
    font-size: 0.85rem;
    color: #005ee9;
    cursor: pointer;
    margin-left: -6px;
    margin-right: -5px;
}
