/* 1. RESET E REGOLE BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
font-family: Arial, Helvetica, sans-serif;
    background-color: #ffffff; /* Sfondo bianco di base */
    color: #002855;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.home-page .main-wrapper {
    background: url('../images/sfondo-donna.jpg') no-repeat center top;
    background-size: cover;
    padding-top: 60px;
}

.inner-content {
    max-width: 1110px;
    width: 100%;
    margin-bottom: auto;
    padding: 20px 0;
}

.site-footer .footer-text {
    font-size: 16px;
    color: #002855; /* Testo blu per le pagine a sfondo bianco */
    font-weight: bold;
}
.site-footer .footer-text a {
    color: #002855;
}

body.home-page .site-footer .footer-text,
body.home-page .site-footer .footer-text a {
    color: #ffffff;
}

/* 2. HEADER DI NAVIGAZIONE */
body.home-page .site-header {
    border-bottom: none;
}

.site-header {
    width: 100%;
    background: #ffffff;
    padding: 25px 0;
    border-bottom: 1px solid #eaeaea;
}
.header-container {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
}
.main-logo img {
    height: 48px;
    width: auto;
}
.nav-links {
    margin-left: auto;
    margin-right: 40px;
}
.nav-links a {
    text-decoration: none;
    color: #002855;
    font-size: 24px;
    margin: 0 15px;
    font-weight: 600;
}
.nav-links a.active, .nav-links a:hover {
    color: #00a3e0;
}
.lang-flags img {
    width: 50px;
    height: auto;
    margin-left: 6px;
    vertical-align: middle;
}

/* 3. CONTENITORE DI SFONDO */
.main-wrapper {
    width: 100%;
    min-height: calc(100vh - 98px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 40px 15px;
}

/* 4. IL BOX BIANCO TRASPARENTE (CORRETTO) */
.content-box {
    background: rgba(255, 255, 255, 0.75); /* Opacità perfetta come l'originale */
    max-width: 1110px; /* Molto largo, lascia solo un piccolo margine ai lati */
    width: 100%;
    padding: 50px 60px; /* Grandi spazi interni per allargare il riquadro */
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    margin-bottom: auto; /* Spinge via il footer verso il fondo */
}

/* 5. TESTI DENTRO IL BOX */
.content-box h2 {
    font-size: 18px;
    color: #002855;
    margin-bottom: 18px;
    font-weight: bold;
    letter-spacing: -0.2px; /* Compatta leggermente i caratteri di Arial */
}
.content-box p {
  font-size: 18px; 
    line-height: 1.6; /* Spaziatura tra le righe identica all'originale */
    color: #002855;
    margin-bottom: 20px;
    letter-spacing: -0.1px; /* Rende il blocco di testo fitto e uniforme */
}
.content-box p:last-child {
    margin-bottom: 0;
}
.content-box .highlight-text {
	font-weight: bold;
}
.content-box a {
    color: #00a3e0;
    text-decoration: none;
    font-weight: 700;
}
.content-box a:hover {
    text-decoration: underline;
}

/* 6. FOOTER */
.site-footer {
    width: 100%;
    max-width: 1110px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 40px;
}
.footer-logo img {
    height: 32px;
    width: auto;
    margin-bottom: 12px;
}
.footer-text {
font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    color: #ffffff;
    font-weight: bold;
    letter-spacing: 0.2px;
}
.footer-text a {
    color: #ffffff;
    text-decoration: none;
}
.footer-text a:hover {
    text-decoration: underline;
}

/* STILI SPECIFICI PER LE PAGINE LEGALI */
.page-title {
    font-size: 42px;
    color: #002855;
    font-weight: normal;
    margin-bottom: 5px;
}
.page-subtitle {
    font-size: 16px;
    color: #718096;
    margin-bottom: 20px;
}
.title-divider {
    border: 0;
    height: 1px;
    background: #eaeaea;
    margin-bottom: 30px;
}
.legal-text p {
    font-size: 16px;
    line-height: 1.7;
    color: #4a5568; /* Grigio scuro leggibile per testi lunghi */
    margin-bottom: 20px;
}
.inner-content {
    max-width: 1140px; /* Allineato perfettamente all'header */
    width: 100%;
    margin-bottom: auto;
    padding: 20px 15px;
}

/* DESIGN FOOTER PAGINE LEGALI */
.legal-footer {
    width: 100%;
    margin-top: auto; /* Spinge il footer sempre in fondo alla pagina */
    background-color: #ffffff;
}

/* La fascia grigia con logo e link */
.footer-gray-band {
    background-color: #e9ecf0; /* Grigio chiaro azzurrato identico all'originale */
    padding: 30px 0;
    width: 100%;
}

.footer-internal-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

.legal-footer .footer-logo img {
    height: 42px;
    width: auto;
    margin-bottom: 20px;
    display: block;
}

/* I link scritti in bianco dentro la fascia grigia */
.footer-links-white {
    font-size: 16px;
    font-weight: bold;
    color: #ffffff; /* Testo e divisori in bianco */
    letter-spacing: 0.5px;
    line-height: 1.8;
}

.footer-links-white a {
    color: #ffffff;
    text-decoration: none;
    margin-right: 12px;
}

.footer-links-white a:after {
    content: " "; /* Rilascia lo spazio corretto tra i link dello screenshot */
}

.footer-links-white span {
    margin-left: 5px;
}

/* La fascia del copyright in fondo su sfondo bianco */
.footer-copyright-band {
    width: 100%;
    padding: 20px 0;
    border-top: 1px solid #dcdfe6; /* Riga di separazione sottile */
}

.footer-copyright-band p {
    font-size: 14px;
    color: #002855; /* Blu scuro BRITA */
    font-weight: bold;
}

/* STRUTTURA GENERALE DEL FOOTER LEGALE */
.site-footer-legal {
    width: 100%;
    background-color: #e9ecf0; /* Banda grigia a tutta larghezza */
    padding: 40px 0 30px 0;
    margin-top: auto; /* Spinge il footer in fondo se la pagina ha poco testo */
    box-sizing: border-box;
}

/* Contenitore interno allineato al resto del sito */
.footer-container-legal {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Logo */
.site-footer-legal .footer-logo img {
    height: 45px;
    width: auto;
    margin-bottom: 25px;
    display: block;
}

/* Riga dei Link in Bianco */
.footer-links-row {
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px; /* Crea lo spazio perfetto tra i link senza barre verticali */
}

.footer-links-row a {
    color: #484848;
    text-decoration: none;
}

.footer-links-row a:hover {
    text-decoration: underline;
}

.footer-links-row .piva {
    color: #484848;
}

/* Linea di divisione dentro il footer */
.footer-divider {
    border: 0;
    height: 1px;
    background-color: #dcdfe6; /* Sottile e discreta come nell'originale */
    margin: 0 0 20px 0;
}

/* Riga del Copyright in Blu Scuro */
.footer-copyright-row p {
    font-size: 14px;
    color: #002855; /* Blu istituzionale BRITA */
    font-weight: bold;
    margin: 0;
}

/* REGOLE SPECIFICHE PER LA PAGINA MODELLO 231 */

/* Titolo grande, centrato e blu */
.page-title-centered {
    font-size: 42px;
    color: #002855;
    text-align: center;
    font-weight: normal;
    margin-top: 40px;
    margin-bottom: 70px; /* Grande spazio prima dei bottoni */
}

/* Griglia per affiancare le 3 colonne */
.download-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 60px;
}

/* Singola scheda documento */
.download-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Titoli sopra i bottoni */
.download-card h2 {
    font-size: 20px;
    color: #002855;
    line-height: 1.4;
    font-weight: normal;
    margin-bottom: 25px;
    min-height: 44px; /* Mantiene i bottoni allineati anche se il testo sopra ha lunghezze diverse */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Il bottone Blu Scuro rettangolare dello screenshot */
.btn-download {
    display: block;
    width: 100%;
    max-width: 280px;
    background-color: #1d2869; /* Blu scuro identico all'immagine */
    color: #ffffff !important;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    padding: 13px 0;
    border-radius: 2px; /* Angoli vivi quasi a 90 gradi */
    transition: background-color 0.2s ease;
}

.btn-download:hover {
    background-color: #002855; /* Si scurisce leggermente al passaggio del mouse */
}

/* RESPONSIVE PER APPARECCHI MOBILI */
@media (max-width: 768px) {
    .download-grid {
        flex-direction: column;
        align-items: center;
        gap: 50px;
    }
    .download-card h2 {
        min-height: auto;
        margin-bottom: 15px;
    }
    .page-title-centered {
        font-size: 24px;
        margin-bottom: 40px;
    }
}

/* RESPONSIVE SMARTPHONE */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    .nav-links {
        margin: 0;
    }
    .content-box {
        padding: 25px;
    }
    .footer-text {
        font-size: 9px;
        line-height: 1.6;
    }
}

/* REGOLE SPECIFICHE PAGINA CONTATTI */
.contacts-block {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-top: 50px;
    margin-bottom: 60px;
    width: 100%;
}

/* 1. Forma azzurra asimmetrica a sinistra */
.contacts-shape-container {
    flex: 1.2;
    display: flex;
    justify-content: flex-start;
}

.contacts-blue-shape {
   background-color: #4da6ff; /* Azzurro brillante BRITA */
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 26px;
    font-weight: bold;
    text-align: left;
    
    /* Modificate le proporzioni: meno larga e più alta per dare spazio alla punta inferiore */
    width: 245px;
    height: 195px;
    
    /* Spostiamo il testo leggermente più al centro-sinistra */
    padding: 45px 0 0 40px; 
    box-sizing: border-box;
    line-height: 1.1;
    letter-spacing: 0.5px;
    
    /* La combinazione esatta per appiattire la cima, allungare il lato destro e fare la punta sotto */
    border-radius: 50% 85% 40% 60% / 80% 45% 85% 50%;
    
    display: block;
}

/* 2. Blocco Indirizzo centrale */
.contacts-address {
    flex: 1.5;
    font-size: 16px;
    line-height: 1.6;
    color: #002855;
}

.contacts-address p {
    margin-bottom: 4px;
}

.contacts-address .company-name {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 8px;
}

.contacts-address .bold-text {
    font-weight: bold;
}

.contacts-address a {
    color: #3ba3f8;
    text-decoration: none;
    font-weight: bold;
}

.contacts-address a:hover {
    text-decoration: underline;
}

/* 3. Elenco Dipartimenti a destra */
.contacts-departments {
    flex: 1.5;
    font-size: 16px;
    color: #002855;
}

.contacts-departments ul {
    list-style-type: none; /* Rimuove i pallini */
}

.contacts-departments li {
    margin-bottom: 6px;
    position: relative;
    padding-left: 12px;
}

/* Ricrea il piccolo quadratino o punto elenco elegante */
.contacts-departments li::before {
    content: "•";
    color: #002855;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: -1px;
}

.contacts-departments a {
    color: #3ba3f8;
    text-decoration: none;
}

.contacts-departments a:hover {
    text-decoration: underline;
}

/* CONTAINER MAPPA LEAFLET */
#map {
    width: 100%;
    height: 380px; /* Altezza proporzionata allo screenshot */
    border: 1px solid #eaeaea;
    margin-bottom: 40px;
    z-index: 1; /* Impedisce alla mappa di sovrapporsi ai menu a tendina */
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .contacts-block {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 35px;
    }
    .contacts-shape-container {
        justify-content: center;
    }
    .contacts-departments li {
        padding-left: 0;
    }
    .contacts-departments li::before {
        display: none;
    }
    #map {
        height: 280px;
    }
}