/* ==========================================================================
   ELOì — FOGLIO STILI PRINCIPALE
   Versione: 2026-11-09 | Design system: Newsreader / Montserrat / palette verde

   INDICE
   01. Font, palette e tipografia base
   02. Componenti globali, navigazione e bottoni
   03. Colori, layout e utility
   04. Form globali CF7
   05. Utility grafiche e animazioni
   06. Home Giulia Pintore
   06B. Componenti home precedenti e archivio location
   07. Componenti condivisi: Single Evento + Single Servizio
   08. Elementi specifici: Evento / Servizio
   09. Single Location
   10. Contatti e Contact Form 7
   11. FAQ
   12. Footer condiviso

   REGOLE DEL PROGETTO
   - Valori globali: :root; componenti: sezioni identificate qui sotto.
   - Una sola definizione base per ciascun selettore (nessuna duplicazione).
   - Breakpoint, hover condizionale e reduced-motion: responsive.css.
   - Nessuno <style> all'interno dei template Twig.
   - Caricare style.css PRIMA di responsive.css.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Newsreader:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

/* ================== 01. TOKEN, RESET E TIPOGRAFIA ================== */

/* Palette: valori ricavati dal PDF COLORI. */
:root {
    --primary-color: #5D7A6C;
    --secondary-color: #C6E5D3;
    --tertiary-color: #3D4B44;
    --neutral-color: #F2F7F4;
    --dark-color: #1F2421;
    --white-color: #FFFFFF;
    --gradient-primary: linear-gradient(90deg, var(--tertiary-color), var(--primary-color));

    /* Alias mantenuti per compatibilità con i template esistenti. */
    --color-light: var(--white-color);
    --color-dark: var(--dark-color);
    --pop-color: var(--primary-color);
    --link-hover-color: var(--tertiary-color);
    --background-color: var(--white-color);

    /* Tipografia: misure Figma/PDF desktop; mobile in responsive.css. */
    --main-font: "Montserrat", sans-serif;
    --alt-font: "Newsreader", serif;
    --font-size-display: 100px;
    --font-size-h1: 52px;
    --font-size-h2: 40px;
    --font-size-h3: 32px;
    --font-size-h4: 24px;
    --font-size-h5: 20px;
    --font-size-h6: 16px;
    --font-size-body: 16px;
    --font-size-label: 14px;
    --font-size-caption: 12px;
    --letter-spacing: -0.015em;

    /* Layout e componenti. */
    --custom-radius: 0px;
    --btn-radius: 999px;
    --btn-padding: 11px 24px;
    --btn-padding-lg: 13px 36px;
    --section-padding: 120px;
    --pseudo-container-padding: 6rem;

    /* Variabili condivise dai componenti di pagina. */
    --eloi-text: var(--dark-color);
    --eloi-muted: var(--tertiary-color);
    --eloi-surface: var(--neutral-color);
    --eloi-border: #CDDCD3;
    --eloi-dark: var(--dark-color);
    --eloi-white: var(--white-color);
}

html {
    font-size: 16px; /* Base fissa: 1rem = 16px su tutti i dispositivi. */
    scroll-behavior: smooth;
    color: var(--dark-color);
    font-family: var(--main-font);
}

body {
    background-color: var(--background-color);
    color: var(--dark-color);
    font-family: var(--main-font);
    font-size: var(--font-size-body);
    line-height: 1.6;
    font-weight: 400;
    font-style: normal;
}

.wow {
    visibility: hidden;
}

.alt-font {
    font-family: var(--alt-font);
}

/* Gerarchia tipografica: Newsreader per Display e H1-H5; Montserrat per H6 e testi. */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    font-style: normal;
}

h1, h2, h3, h4, h5,
.h1, .h2, .h3, .h4, .h5 {
    font-family: var(--alt-font);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: var(--letter-spacing);
}

h1, .h1 { font-size: var(--font-size-h1); }
h2, .h2 { font-size: var(--font-size-h2); }
h3, .h3 { font-size: var(--font-size-h3); }
h4, .h4 { font-size: var(--font-size-h4); }
h5, .h5 { font-size: var(--font-size-h5); }

h6, .h6 {
    font-family: var(--main-font);
    font-size: var(--font-size-h6);
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: normal;
}

.text-display, .display {
    font-family: var(--alt-font);
    font-size: var(--font-size-display);
    line-height: 1.02;
    font-weight: 400;
    letter-spacing: var(--letter-spacing);
}

p { font-size: inherit; }
.text-label { font-size: var(--font-size-label); line-height: 1.45; }
/* Microtesto sovratitolo: riutilizzabile in ogni sezione del sito. */
.text-overline {
    margin: 0 0 24px;
    font-size: var(--font-size-label);
    line-height: 1.5;
    font-weight: 500;
    letter-spacing: .055em;
    text-transform: uppercase;
}
.text-caption, figcaption { font-size: var(--font-size-caption); line-height: 1.5; }

/* Utility tipografiche esistenti, aggiornate alla scala del design system. */
.text-xl { font-size: var(--font-size-h1); line-height: 1.1; }
.text-lg { font-size: var(--font-size-h2); line-height: 1.1; }
.text-md { font-size: var(--font-size-h3); line-height: 1.3; font-weight: 400; }
.text-sm { font-size: var(--font-size-label); line-height: 1.5; }
.text-xs { font-size: var(--font-size-caption); line-height: 1.5; }

.body-statuto strong { font-weight: 700 !important; }
.semi-bold { font-weight: 600; }
.bold { font-weight: 700; }
.regular { font-weight: 400; }

.text-stroke {
    color: transparent;
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: var(--pop-color);
}

.text-stroke-white {
    color: transparent;
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: var(--white-color);
}

.text-shadow {
    color: var(--white-color);
    text-shadow: 3px 3px 0 var(--pop-color),
    -3px 3px 0 var(--pop-color),
    -3px -3px 0 var(--pop-color),
    3px -3px 0 var(--pop-color);
}

.letter-spacing { letter-spacing: var(--letter-spacing); }

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

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

/* ================== 02. NAVIGAZIONE E COMPONENTI ================== */

/* Titolo con riga inferiore, comune alle card di più pagine. */
.lined-title {
    width: 100%;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--tertiary-color);
}

/* Icona introduttiva di un servizio, percorso o area clinica. */
.feature-icon {
    display: block;
    width: 42px;
    height: 42px;
    object-fit: contain;
    margin-bottom: 22px;
}


.sticky-top {
    top: 0 !important;
    z-index: 1030 !important;
}

.nav-item {
    padding: 0.5rem 2rem;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.nav-link {
    font-size: var(--font-size-label);
    font-weight: 500;
    padding-left: 0px !important;
    padding-right: 0px !important;
}

.navbar-container {
    border-bottom: 1px solid color(srgb 1 1 1 / 0.5);
}

.navbar.scrolled .navbar-container {
    border-bottom: transparent;
}

.sticky-nav {
    position: fixed !important;
    top: 0;
    background: var(--white-color);
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.navbar {
    position: absolute;
    top: 0;
    width: 100%;
    background: transparent;
    transition: background 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    z-index: 1020;
}

.navbar-brand {
    font-family: var(--alt-font) !important;
    color: var(--primary-color);
    letter-spacing: var(--letter-spacing);
}

.navbar.scrolled {
    background-color: rgb(255 255 255 / 88%) !important;
}

.navbar-toggler {
    padding: 0;
}

ul.dropdown-menu {
    background-color: transparent;
    border: transparent;
}

.dropdown-menu li {
    background-color: rgba(0, 0, 0, 0.8) !important;
    margin-bottom: 0.1rem;
}

.dropdown-menu li a {
    color: var(--white-color);
    font-weight: 400;
    font-size: var(--font-size-label);
}

.navbar-toggler, .navbar-toggler:focus, .navbar-toggler:focus-within {
    border: unset;
    box-shadow: none;
}

hr {
    border-top: 1px solid var(--tertiary-color);
    opacity: 1;
}

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

ol li, ul li {
    margin-bottom: 0em;
}

ol li::marker, ul li::marker {
    color: var(--pop-color);
}

.custom-list ul {
    padding-left: 0rem;
    list-style: none;
}

.custom-list li {
    margin-bottom: 1rem;
    background: none;
    background-size: 0.7rem;
    padding: 0px 0 3px 24px;
}

#footer ol li, #footer ul li {
    margin-bottom: 0em;
    color: var(--dark-color);
    font-family: var(--main-font);
    font-weight: 400;
}

section, .section-padding {
    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);
}

.pseudo-container {
    padding-left: calc(var(--pseudo-container-padding)*1);
    padding-right: calc(var(--pseudo-container-padding)*1);
}

.pseudo-container-all {
    padding: calc(var(--pseudo-container-padding)*1);
}

/* PULSANTI — varianti del design system; classi precedenti riutilizzate. */
:is(.custom-button, .custom-button-dark, .custom-button-transparent, .custom-button-light) {
    --button-background: var(--primary-color);
    --button-text: var(--white-color);
    --button-border: var(--primary-color);
    --button-hover-background: var(--tertiary-color);
    --button-hover-text: var(--white-color);
    --button-hover-border: var(--tertiary-color);

    display: inline-flex;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    width: auto;
    padding: var(--btn-padding);
    border: 1px solid var(--button-border);
    border-radius: var(--btn-radius);
    background-color: var(--button-background);
    color: var(--button-text);
    font-family: var(--main-font);
    font-size: var(--font-size-body);
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: normal;
    text-decoration: none;
    text-transform: none;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.custom-button-dark {
    --button-background: var(--dark-color);
    --button-border: var(--dark-color);
    --button-hover-background: var(--tertiary-color);
    --button-hover-border: var(--tertiary-color);
}

.custom-button-transparent {
    --button-background: transparent;
    --button-text: var(--tertiary-color);
    --button-border: var(--tertiary-color);
    --button-hover-background: var(--neutral-color);
    --button-hover-text: var(--tertiary-color);
    --button-hover-border: var(--tertiary-color);
}

.custom-button-light {
    --button-background: var(--white-color);
    --button-text: var(--dark-color);
    --button-border: var(--dark-color);
    --button-hover-background: var(--neutral-color);
    --button-hover-text: var(--dark-color);
    --button-hover-border: var(--dark-color);
}

/* La versione grande conserva le proporzioni del JPEG. */
.custom-button-lg {
    min-height: 50px;
    padding: var(--btn-padding-lg);
}

:is(.custom-button, .custom-button-dark, .custom-button-transparent, .custom-button-light):focus-visible,
.custom-link:focus-visible {
    outline: 2px solid var(--tertiary-color);
    outline-offset: 3px;
}

:is(.custom-button, .custom-button-dark, .custom-button-transparent, .custom-button-light):disabled,
:is(.custom-button, .custom-button-dark, .custom-button-transparent, .custom-button-light)[aria-disabled="true"] {
    opacity: .55;
    cursor: not-allowed;
}

/* Freccia facoltativa senza dipendenze da librerie di icone. */
:is(.custom-button, .custom-button-dark, .custom-button-transparent, .custom-button-light, .custom-link).custom-button--arrow::after,
.custom-link--arrow::after {
    content: "\2192";
    display: inline-block;
    font-family: var(--main-font);
    font-size: 1.125em;
    line-height: 1;
    font-weight: 400;
    transition: transform .2s ease;
}

:is(.custom-button, .custom-button-dark, .custom-button-transparent, .custom-button-light, .custom-link) i {
    color: inherit;
    font-size: 1rem;
    line-height: 1;
    transition: transform .2s ease;
}

/* Link sottolineati del design system, con o senza freccia. */
.custom-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    padding: 0 0 9px;
    border: 0;
    border-bottom: 1px solid currentColor;
    border-radius: 0;
    background: transparent;
    color: var(--dark-color);
    font-family: var(--main-font);
    font-size: var(--font-size-body);
    font-weight: 400;
    line-height: 1.35;
    text-decoration: none;
    text-transform: none;
    transition: color .2s ease;
}

.custom-link--primary { color: var(--primary-color); }
.custom-link--tertiary { color: var(--tertiary-color); }
.custom-link--strong { font-weight: 600; }

.flag {
    width: 150px;
    height: 80px;
    position: fixed;
    right: -0.5em;
    top: 50%;
    display: flex;
    transition: all 0.3s ease-in-out;
    color: white;
    z-index: 10;
    border-radius: var(--custom-radius) 0 0 var(--custom-radius);
    box-shadow: 0px 4px 0px #888888;
}

.flag:hover {
    transition: all 0.3s ease-in-out;
    transform: translatex(-0.5em);
}

.flag a, .flag a:hover {
    color: white !important;
    font-family: var( --main-font);
    text-transform: uppercase;
    font-size: 20px;
    line-height: 1.1;
}

.flag img {
    height: 50px;
    width: 50px;
    object-fit: contain;
    margin-right: 1em;
}

/* ================== 03. UTILITY E COLORI ================== */

.border-bottom, .border-top, .border-start, .border-end, .border {
    border-width: 1px !important;
}

.pop-border {
    border-color: var( --pop-color) !important;
}

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

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

.color-pop {
    color: var(--pop-color) !important;
}

.color-light {
    color: var(--color-light) !important;
}

.color-white {
    color: #fff;
}

.bg-gray, .bg-neutral {
    background-color: var(--neutral-color);
}

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

.bg-dark * {
    color: var(--color-light);
}

.bg-dark ul li a:hover, .bg-dark a:hover {
    color: var(--pop-color);
}

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

.bg-light-gray {
    background-color: var(--secondary-color);
    color: var(--dark-color);
}

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

.bg-transparent {
    background-color: transparent;
}

.opacity-5 {
    opacity: 0.5;
}

.mask {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-attachment: fixed;
}

.w-20 {
    width: 20%;
}

.w-90 {
    width: 90%;
}

.h-90 {
    height: 90%;
}

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

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

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

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

.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-70 {
    width: 70vw;
}

.vh-50 {
    height: 50vh;
}

.vh-80 {
    height: 80vh;
}

.vh-75 {
    height: 75vh;
}

.vh-100 {
    height: 100vh;
}

.vw-100 {
    width: 100vw;
}

/* ================== 04. FORM GLOBALI ================== */

.custom-form {
    width: 100%;
    border-bottom: 1px solid var(--primary-color);
    margin-bottom: 0.75rem;
}

.custom-form input, .custom-form optgroup, .custom-form select, .custom-form textarea {
    margin: 0;
    border: transparent;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    width: 100%;
}

.custom-form input:focus-visible, .custom-form optgroup:focus-visible, .custom-form select:focus-visible, .custom-form textarea:focus-visible {
    outline: unset;
}

.custom-form p {
    border: unset;
}

.wpcf7-list-item {
    margin: 0 0 0 0;
}

.custom-contact {
    padding: 0;
    box-shadow: none;
    border-color: transparent;
    width: 100%;
    background-color: transparent;
    font-family: var(--alt-font);
    font-size: 1.6rem;
    line-height: 1.4;
    font-weight: 500;
    color: #000;
}

.custom-contact p {
    margin-bottom: 0px;
}

.custom-contact::placeholder {
    color: #000 !important;
}

.custom-contact:focus, .custom-contact:focus-within {
    outline: none;
}

label {
    color: var(--tertiary-color);
    width: 100%;
    font-size: var(--font-size-label);
}

label input, label optgroup, label select, label textarea {
    width: 100%;
}

input[type="checkbox" i] {
    width: auto;
}

.wpcf7-list-item-label {
    color: var(--primary-color);
    font-size: 0.9em;
}

.wpcf7-spinner {
    display: none;
}

.form-button {
    font-size: 22px;
    color: var(--pop-color);
    background-color: transparent;
    border: none;
    text-transform: uppercase;
}

p:has(.form-button) {
    margin-bottom: 0px;
}

/* ================== 05. ANIMAZIONI E ELEMENTI GRAFICI ================== */

.custom-radius {
    border-radius: var( --custom-radius);
}

.carousel-inner {
    height: 100%;
}

.carousel-item {
    height: 100%;
}

.carousel-indicators [data-bs-target] {
    height: 10px;
    width: 10px;
    border-radius: 100%;
}

.text-running-right {
    overflow: hidden;
    width: 100%;
    white-space: nowrap;
    position: relative;
}

.text-running-right p {
    font-size: 5rem;
    font-family: var(--alt-font);
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: moveText 10s linear infinite;
}

@keyframes moveText {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ================== 06. HOME — GIULIA PINTORE ================== */
/* Solo geometria dei componenti: font, pesi, colori e bottoni sono globali.
   Le utility .display, .text-overline, .lined-title e .feature-icon sono riutilizzabili. */

/* ---- 06.1. Hero ---- */
.gp-home .gp-home-hero { padding: 0; }
.gp-home-hero__row { min-height: 875px; }
.gp-home-hero__content {
    position: relative;
    z-index: 1;
    padding: 165px 0 125px clamp(0px, 5vw, 115px);
}
.gp-home-hero h1 { margin-bottom: 30px; white-space: nowrap; }
.gp-home-hero__content > p { max-width: 560px; }
.gp-home-hero__content > p:last-of-type { margin-bottom: 0; }
.gp-home-hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 30px; }
.gp-home-hero__visual {
    display: flex;
    align-self: stretch;
    align-items: flex-end;
    justify-content: center;
}
.gp-home-hero__image {
    display: block;
    width: min(120%, 740px);
    max-width: none;
    height: auto;
    max-height: 790px;
    object-fit: contain;
    object-position: center bottom;
}

/* ---- 06.2. Presentazione ---- */
.gp-home .gp-home-about { padding: 155px 0 165px; }
.gp-home-about h2 { max-width: 1250px; margin-bottom: 46px; }
.gp-home-about__columns { --bs-gutter-x: 60px; }
.gp-home-about__columns p { margin-bottom: 0; }

/* ---- 06.3. Aree cliniche ---- */
.gp-home .gp-home-areas { padding: 115px 0 125px; }
.gp-home-areas__intro { align-items: start; margin-bottom: 72px; }
.gp-home-areas__intro p { max-width: 805px; }
.gp-home-areas__grid { --bs-gutter-x: 52px; --bs-gutter-y: 55px; }
.gp-home-area { display: flex; flex-direction: column; align-items: flex-start; }
.gp-home-area > p { flex-grow: 1; margin-bottom: 24px; }

/* ---- 06.4. Percorsi ---- */
.gp-home .gp-home-paths { padding: 128px 0; }
.gp-home-paths__row { --bs-gutter-x: 72px; }
.gp-home-paths__image {
    display: block;
    width: 100%;
    height: 880px;
    object-fit: cover;
    object-position: center;
}
.gp-home-paths__content { padding-top: 25px; padding-bottom: 25px; }
.gp-home-path + .gp-home-path { margin-top: 54px; }
.gp-home-path p { margin-bottom: 24px; }

/* ---- 06.5. Sedi ---- */
.gp-home .gp-home-locations { padding: 130px 0; }
.gp-home-locations__list {
    padding: 0;
    margin: 0;
    list-style: none;
    border-top: 1px solid var(--tertiary-color);
}
.gp-home-locations__item {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    column-gap: 16px;
    row-gap: 4px;
    padding: 17px 0;
    margin: 0;
    border-bottom: 1px solid var(--tertiary-color);
}
.gp-home-locations__address { text-align: right; }

/* ================== 06B. HOME PRECEDENTE E ARCHIVIO LOCATION ================== */

/* Componenti esistenti conservati per compatibilità con altri template. */

.home-hero__panel {
    min-height: 100vh;
    overflow: hidden;
}

.home-hero__image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.home-hero__overlay {
    inset: 0;
    background-color: var(--eloi-dark);
    opacity: .6;
    z-index: 1;
    pointer-events: none;
}

.home-hero__panel > .container {
    z-index: 2;
}

.location-card__image {
    display: block;
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
}

.home-media__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.home-placeholder__image {
    max-height: 60px;
}

.home-placeholder__banner {
    background-image: url(https://placehold.co/600x400);
    background-size: cover;
    background-position: center;
}

/* ================== 07. LAYOUT CONDIVISO EVENTO E SERVIZIO ================== */

.eloi-detail {
    --eloi-detail-text: var(--eloi-text);
    --eloi-detail-muted: var(--eloi-muted);
    --eloi-detail-light: var(--eloi-surface);
    --eloi-detail-border: var(--eloi-border);
    --eloi-detail-dark: var(--eloi-dark);
    color: var(--eloi-detail-text);
}

.eloi-detail-section-label {
    margin: 0 0 22px;
    color: var(--eloi-detail-muted);
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0.015em;
    text-transform: uppercase;
}

.eloi-detail-section-title {
    font-family: var(--alt-font);
    margin: 0;
    font-size: var(--font-size-h2);
    line-height: 1.15;
    font-weight: 400;
    letter-spacing: var(--letter-spacing);
}

.eloi-detail .eloi-detail-hero {
    padding: 125px 0 135px;
    background: var(--eloi-detail-light);
}

.eloi-detail-hero__title {
    font-family: var(--alt-font);
    max-width: 530px;
    margin: 0;
    font-size: var(--font-size-h1);
    font-weight: 400;
    line-height: 1.035;
    letter-spacing: var(--letter-spacing);
    overflow-wrap: break-word;
    text-wrap: balance;
}

.eloi-detail-hero__content {
    max-width: 690px;
    font-size: clamp(1.0625rem, 1.4vw, 1.3rem);
    line-height: 1.58;
    overflow-wrap: break-word;
}

.eloi-detail-hero__content > :last-child {
    margin-bottom: 0;
}

.eloi-detail-hero__content p {
    margin: 0 0 1.1em;
}

.eloi-detail-hero__content ul,
    .eloi-detail-hero__content ol {
    padding-left: 1.4em;
}

.eloi-detail-hero__content img {
    max-width: 100%;
    height: auto;
}

.eloi-detail-hero__content .wp-block-image {
    max-width: 100%;
}

.eloi-detail-hero__button {
    margin-top: 46px;
}

.eloi-detail .eloi-detail-gallery {
    padding: 0 0 105px;
    background: var(--eloi-detail-light);
}

.eloi-detail-gallery__grid {
    margin-top: 0;
}

.eloi-detail-gallery__image {
    display: block;
    width: 100%;
    aspect-ratio: 1.68 / 1;
    object-fit: cover;
    object-position: center;
    filter: grayscale(100%);
    background: #e3e3df;
}

.eloi-detail-gallery__image--team {
    object-position: center 42%;
}

.eloi-detail .eloi-detail-faq {
    padding: 115px 0 110px;
    color: #fff;
    background: var(--eloi-detail-dark);
}

.eloi-detail-faq .eloi-detail-section-label {
    color: #d3d3d0;
}

.eloi-detail-faq__items {
    margin: 35px 0 0;
    padding: 0;
}

.eloi-detail-faq__item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.eloi-detail-faq__item:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.eloi-detail-faq__question {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 25px;
    padding: 24px 0;
    color: #fff;
    cursor: pointer;
    list-style: none;
    font-size: clamp(1.075rem, 1.45vw, 1.32rem);
    font-weight: 600;
    line-height: 1.4;
}

.eloi-detail-faq__question::-webkit-details-marker {
    display: none;
}

.eloi-detail-faq__question::marker {
    content: "";
}

.eloi-detail-faq__question::after {
    content: "+";
    flex: 0 0 auto;
    font-size: 1.4em;
    font-weight: 300;
    line-height: 1;
    opacity: 0.8;
}

.eloi-detail-faq__item[open] .eloi-detail-faq__question::after {
    content: "−";
}

.eloi-detail-faq__question:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 5px;
}

.eloi-detail-faq__answer {
    max-width: 1040px;
    padding: 0 55px 28px 0;
    color: #eeeeec;
    font-size: clamp(1rem, 1.25vw, 1.13rem);
    line-height: 1.65;
}

.eloi-detail-faq__answer > :last-child {
    margin-bottom: 0;
}

.eloi-detail--service .eloi-detail-gallery__image {
    aspect-ratio: 1264 / 848;
}

/* ================== 08A. SOLO SINGLE EVENTO ================== */

.eloi-detail .event-detail-services {
    padding: 105px 0 115px;
    background: #fff;
}

.event-detail-services__description {
    max-width: 590px;
    margin: 22px 0 36px;
    font-size: clamp(1.0625rem, 1.45vw, 1.25rem);
    line-height: 1.6;
}

.event-detail-services__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.event-detail-services__list li {
    padding: 17px 0;
    border-top: 1px solid var(--eloi-detail-border);
    font-size: 1rem;
    line-height: 1.5;
}

.event-detail-services__list li:last-child {
    border-bottom: 1px solid var(--eloi-detail-border);
}

/* ================== 08B. SOLO SINGLE SERVIZIO ================== */

.eloi-detail .service-detail-related {
    padding: 105px 0 110px;
    background: #fff;
}

.service-detail-related__grid {
    margin-top: 35px;
}

.service-detail-related__card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 26px 24px 30px;
    border: 1px solid var(--eloi-border);
    background: var(--eloi-detail-light);
}

.service-detail-related__card-title {
    margin: 0 0 16px;
    font-family: var(--alt-font);
    font-size: var(--font-size-h4);
    line-height: 1.25;
    font-weight: 400;
}

.service-detail-related__card-description {
    margin: 0;
    font-size: 1rem;
    line-height: 1.55;
}

.eloi-detail .service-detail-request {
    padding: 105px 0;
    border-top: 1px solid var(--eloi-detail-border);
    background: #fff;
}

.service-detail-request__description {
    margin: 17px 0 0;
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    line-height: 1.55;
}

/* ================== 09. SINGLE LOCATION ================== */

.location-detail {
    --location-detail-text: var(--eloi-text);
    --location-detail-muted: var(--eloi-muted);
    --location-detail-light: var(--eloi-surface);
    --location-detail-border: var(--eloi-border);
    --location-detail-dark: var(--eloi-dark);
    color: var(--location-detail-text);
}

.location-detail .location-detail-hero {
    padding-bottom: 0;
    background: var(--location-detail-light);
}

.location-detail-hero__row {
    min-height: 620px;
}

.location-detail-hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    min-height: 620px;
    padding: 64px clamp(28px, 5vw, 100px);
}

.location-detail-hero__title {
    font-family: var(--alt-font);
    max-width: 600px;
    margin: 0 0 20px;
    font-size: var(--font-size-h1);
    line-height: 1.02;
    font-weight: 400;
    letter-spacing: var(--letter-spacing);
}

.location-detail-hero__subtitle {
    margin: 0;
    color: var(--location-detail-muted);
    font-size: clamp(1rem, 1.35vw, 1.2rem);
}

.location-detail-hero__button {
    margin-top: 60px;
}

.location-detail-hero__image-container {
    position: relative;
    min-height: 620px;
    overflow: hidden;
}

.location-detail-hero__image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.location-detail .location-detail-event-types {
    padding: 29px 0;
    border-bottom: 1px solid var(--location-detail-border);
    background: #fff;
}

.location-detail-event-types__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.location-detail-event-types__label {
    margin: 0 50px 0 0;
    color: var(--location-detail-muted);
    font-size: 0.875rem;
    line-height: 1.4;
    text-transform: uppercase;
}

.location-detail-event-types__tag {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 100px;
    background: var(--secondary-color);
    font-size: 0.875rem;
    line-height: 1.4;
    white-space: nowrap;
}

.location-detail .location-detail-introduction {
    padding: 105px 0;
}

.location-detail-section-title {
    font-family: var(--alt-font);
    margin: 0;
    font-size: var(--font-size-h2);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: var(--letter-spacing);
}

.location-detail-introduction__description {
    margin: 0;
    font-size: clamp(1.05rem, 1.5vw, 1.38rem);
    line-height: 1.55;
}

.location-detail .location-detail-overview {
    padding: 100px 0 115px;
    background: var(--location-detail-light);
}

.location-detail-facts,
    .location-detail-lined-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.location-detail-facts li {
    padding: 15px 0;
    border-top: 1px solid var(--location-detail-border);
}

.location-detail-floorplan {
    display: block;
    max-height:50vh;
    max-width:100%;
    object-fit:cover;
    object-position:center;
}

.location-detail-section-label {
    margin: 0 0 24px;
    color: var(--location-detail-muted);
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.015em;
}

.location-detail-gallery {
    padding-top: 50px;
}

.location-detail-gallery__image {
    display: block;
    width: 100%;
    aspect-ratio: 1264 / 848;
    object-fit: cover;
    object-position: center;
    filter: grayscale(100%);
}

.location-detail .location-detail-quote {
    padding: 95px 0;
    background: var(--location-detail-dark);
    color: #fff;
}

.location-detail-quote .location-detail-section-label {
    color: #d1d1ce;
}

.location-detail-quote__text {
    font-family: var(--alt-font);
    margin: 0 0 24px;
    font-size: var(--font-size-h2);
    line-height: 1.16;
    font-weight: 400;
    letter-spacing: -0.025em;
}

.location-detail-quote__author {
    display: block;
    color: #dededc;
    font-size: 0.95rem;
    font-style: normal;
}

.location-detail .location-detail-technical-information {
    padding: 105px 0 120px;
    background: var(--location-detail-light);
}

.location-detail-lined-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 0;
}

.location-detail-lined-list li {
    min-width: 0;
    padding: 17px 0;
    border-top: 1px solid var(--location-detail-border);
}

.location-detail-accessibility .location-detail-section-title {
    margin-bottom: 26px;
}

.location-detail-specifications {
    margin-top: 155px;
}

.location-detail-specifications .location-detail-section-title {
    max-width: 420px;
    margin-bottom: 36px;
}

.location-detail .location-detail-services {
    padding: 105px 0;
    background: #fff;
}

.location-detail-services__description {
    max-width: 570px;
    margin: 20px 0 35px;
    font-size: clamp(1rem, 1.45vw, 1.25rem);
    line-height: 1.6;
}

.location-detail-services .location-detail-lined-list {
    display: block;
}

/* ================== 10. PAGINA CONTATTI / CF7 ================== */

.contacts-page {
    --contacts-page-background: var(--eloi-surface);
    --contacts-page-text: var(--eloi-text);
    --contacts-page-border: var(--eloi-border);
    --contacts-page-input-background: var(--white-color);
    --contacts-page-input-border: var(--eloi-border);
    --contacts-page-input-focus: var(--tertiary-color);
    color: var(--contacts-page-text);
    background: var(--contacts-page-background);
}

.contacts-page .contacts-page__section {
    padding-top: clamp(80px, 8vw, 135px);
    padding-bottom: clamp(100px, 10vw, 160px);
    background: var(--contacts-page-background);
}

.contacts-page__title {
    font-family: var(--alt-font);
    max-width: 520px;
    margin: 0 0 28px;
    font-size: var(--font-size-h2);
    line-height: 1.13;
    font-weight: 400;
    letter-spacing: -.025em;
    text-wrap: balance;
}

.contacts-page__description {
    max-width: 495px;
    margin: 0;
    font-size: clamp(1.0625rem, 1.45vw, 1.3125rem);
    line-height: 1.6;
}

.contacts-page__form,
    .contacts-page__form .wpcf7 {
    width: 100%;
    min-width: 0;
}

.contacts-page .wpcf7 form {
    margin: 0;
}

.contacts-page .wpcf7 .contacts-form p {
    margin: 0;
}

.contacts-page .wpcf7 .contacts-form br {
    display: none;
}

.contacts-page .wpcf7 .contacts-form__group {
    min-width: 0;
    margin: 0;
}

.contacts-page .wpcf7 .contacts-form__group + .contacts-form__group {
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid var(--contacts-page-border);
}

.contacts-page .wpcf7 .contacts-form__fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 18px;
    row-gap: 18px;
}

.contacts-page .wpcf7 .contacts-form__field {
    min-width: 0;
}

.contacts-page .wpcf7 .contacts-form__label {
    display: block;
    margin: 0 0 7px;
    color: var(--contacts-page-text);
    font-size: var(--font-size-label);
    font-weight: 400;
    line-height: 1.45;
}

.contacts-page .wpcf7 .contacts-form__field .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.contacts-page .wpcf7 .contacts-form__field :is(
        .wpcf7-text,
        .wpcf7-email,
        .wpcf7-tel,
        .wpcf7-number,
        .wpcf7-date,
        .wpcf7-select,
        .wpcf7-textarea
    ) {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 48px;
    margin: 0;
    padding: 10px 13px;
    border: 1px solid var(--contacts-page-input-border);
    border-radius: 0;
    background: var(--contacts-page-input-background);
    box-shadow: none;
    color: var(--contacts-page-text);
    font: inherit;
    font-size: 1rem;
    line-height: 1.5;
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.contacts-page .wpcf7 .contacts-form__field .wpcf7-textarea {
    min-height: 130px;
    resize: vertical;
}

.contacts-page .wpcf7 .contacts-form__field :is(
        .wpcf7-text,
        .wpcf7-email,
        .wpcf7-tel,
        .wpcf7-number,
        .wpcf7-date,
        .wpcf7-select,
        .wpcf7-textarea
    ):focus-visible {
    outline: 2px solid var(--contacts-page-input-focus);
    outline-offset: 2px;
    border-color: var(--contacts-page-input-focus);
    background: #fff;
}

.contacts-page .wpcf7 .contacts-form__field .wpcf7-not-valid {
    border-color: #a12c2c;
}

.contacts-page .wpcf7 .wpcf7-not-valid-tip {
    display: block;
    margin-top: 6px;
    color: #982626;
    font-size: .875rem;
    line-height: 1.45;
}

.contacts-page .wpcf7 .contacts-form__legend {
    margin: 0 0 32px;
    padding: 0;
    font-size: 1.0625rem;
    line-height: 1.5;
    font-weight: 400;
}

.contacts-page .wpcf7 .contacts-form__services {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

.contacts-page .wpcf7 .contacts-form__services-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 26px;
    row-gap: 22px;
}

.contacts-page .wpcf7 .contacts-form__services-options .wpcf7-list-item {
    display: block;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.contacts-page .wpcf7 .contacts-form__services-options .wpcf7-list-item > label,
    .contacts-page .wpcf7 .wpcf7-acceptance .wpcf7-list-item > label {
    display: inline-flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1.5;
}

.contacts-page .wpcf7 .wpcf7-list-item-label {
    min-width: 0;
}

.contacts-page .wpcf7 .contacts-form__services-options input[type="checkbox"],
    .contacts-page .wpcf7 .wpcf7-acceptance input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin: 2px 0 0;
    padding: 0;
    border: 1px solid #c5c5c3;
    border-radius: 50%;
    background: var(--white-color);
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease;
}

.contacts-page .wpcf7 .contacts-form__services-options input[type="checkbox"]:checked,
    .contacts-page .wpcf7 .wpcf7-acceptance input[type="checkbox"]:checked {
    border-color: var(--dark-color);
    background: radial-gradient(circle at center, var(--white-color) 0 4px, transparent 4.5px) var(--dark-color);
}

.contacts-page .wpcf7 .contacts-form__services-options input[type="checkbox"]:focus-visible,
    .contacts-page .wpcf7 .wpcf7-acceptance input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--dark-color);
    outline-offset: 3px;
}

.contacts-page .wpcf7 .contacts-form__privacy .wpcf7-acceptance,
    .contacts-page .wpcf7 .contacts-form__privacy .wpcf7-list-item {
    display: block;
    margin: 0;
}

.contacts-page .wpcf7 .contacts-form__privacy a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.contacts-page .wpcf7 .contacts-form__actions {
    margin-top: 38px;
}

/* CF7 usa <input>: stesso aspetto del pulsante primario del design system. */
.contacts-page .wpcf7 input.wpcf7-submit.contacts-form__submit {
    display: inline-flex;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    width: auto;
    min-height: 46px;
    margin: 0;
    padding: var(--btn-padding);
    border: 1px solid var(--primary-color);
    border-radius: var(--btn-radius);
    background-color: var(--primary-color);
    color: var(--white-color);
    font-family: var(--main-font);
    font-size: var(--font-size-body);
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: normal;
    text-transform: none;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease;
}

.contacts-page .wpcf7 input.wpcf7-submit.contacts-form__submit:focus-visible {
    outline: 2px solid var(--tertiary-color);
    outline-offset: 3px;
}

.contacts-page .wpcf7 input.wpcf7-submit.contacts-form__submit:disabled {
    opacity: .65;
    cursor: not-allowed;
}

.contacts-page .wpcf7 .wpcf7-spinner {
    margin-left: 12px;
    vertical-align: middle;
}

.contacts-page .wpcf7 form .wpcf7-response-output {
    margin: 24px 0 0;
    padding: 12px 16px;
    border-width: 1px;
    font-size: .9375rem;
    line-height: 1.5;
}

/* ================== 11. PAGINA FAQ ================== */

.faq-page {
    --faq-page-background: var(--dark-color);
    --faq-page-text: var(--white-color);
    --faq-page-border: rgba(255, 255, 255, .42);
    color: var(--faq-page-text);
    background: var(--faq-page-background);
}

.faq-page .faq-page__section {
    padding: clamp(85px, 8vw, 120px) 0 clamp(88px, 8vw, 120px);
    background: var(--faq-page-background);
}

.faq-page__title {
    font-family: var(--alt-font);
    margin: 0 0 clamp(32px, 3.8vw, 54px);
    color: var(--faq-page-text);
    font-size: var(--font-size-h2);
    line-height: 1.15;
    font-weight: 400;
    letter-spacing: -.025em;
}

.faq-page__list {
    margin: 0;
    padding: 0;
}

.faq-page__item {
    margin: 0;
    border: 0;
    border-bottom: 1px solid var(--faq-page-border);
}

.faq-page__question {
    display: block;
    position: relative;
    margin: 0;
    padding: 22px 0;
    color: var(--faq-page-text);
    font-size: clamp(1.125rem, 1.45vw, 1.35rem);
    line-height: 1.43;
    font-weight: 500;
    cursor: pointer;
    list-style: none;
    overflow-wrap: break-word;
}

.faq-page__item:first-child .faq-page__question {
    padding-top: 0;
}

.faq-page__question::-webkit-details-marker {
    display: none;
}

.faq-page__question::marker {
    content: "";
}

.faq-page__question:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

.faq-page__answer {
    max-width: 1050px;
    padding: 5px 0 44px;
    color: #ececea;
    font-size: clamp(1rem, 1.25vw, 1.15rem);
    line-height: 1.65;
    overflow-wrap: break-word;
}

.faq-page__answer p {
    margin: 0 0 1em;
}

.faq-page__answer > :last-child {
    margin-bottom: 0;
}

.faq-page__answer a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ================== 12. FOOTER GLOBALE ================== */

#footer.eloi-footer {
    background: #fff;
    color: var(--dark-color);
    padding: clamp(38px, 4.5vw, 66px) 0 30px;
}

#footer.eloi-footer .eloi-footer__top {
    align-items: flex-start;
}

#footer.eloi-footer .eloi-footer__brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

#footer.eloi-footer .eloi-footer__logo {
    display: block;
    width: auto;
    height: 32px;
    max-width: 130px;
    filter: brightness(0);
}

#footer.eloi-footer .eloi-footer__nav-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px clamp(16px, 2vw, 30px);
    list-style: none;
    padding: 0;
    margin: 4px 0 0;
}

#footer.eloi-footer .eloi-footer__nav-list li {
    margin: 0;
    padding: 0;
    list-style: none;
}

#footer.eloi-footer .eloi-footer__nav-list a,
#footer.eloi-footer .eloi-footer__contacts a {
    color: inherit;
    text-decoration: none;
    transition: opacity 180ms ease;
}

#footer.eloi-footer .eloi-footer__nav-list a {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

#footer.eloi-footer .eloi-footer__nav-list a:hover,
#footer.eloi-footer .eloi-footer__contacts a:hover {
    opacity: .55;
}

#footer.eloi-footer a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

#footer.eloi-footer .eloi-footer__bottom {
    margin-top: clamp(26px, 3.5vw, 48px);
}

#footer.eloi-footer .eloi-footer__contacts {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    column-gap: clamp(18px, 2.5vw, 36px);
    row-gap: 10px;
    color: var(--tertiary-color);
    font-size: 13px;
    line-height: 1.6;
}

#footer.eloi-footer .eloi-footer__social {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}


/* ==========================================
   MASONRY — GALLERIA CONDIVISA
   ========================================== */

.eloi-masonry__grid {
    position: relative;
}

.eloi-masonry__sizer,
.eloi-masonry__item {
    width: 32%;
}

.eloi-masonry__gutter {
    width: 2%;
}

.eloi-masonry__item--featured {
    width: 66%;
}

.eloi-masonry__item {
    margin: 0 0 2%;
}

.eloi-masonry__image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}
