/* ==========================================================================
   Odontoiatri Estensi — main.css
   ========================================================================== */

/* Manrope ospitato sul sito (font variabile 400-800, licenza OFL), al posto di Google Fonts */
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("/fonts/manrope/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("/fonts/manrope/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --oe-primary: #2b275b;
  --oe-primary-dark: #1d1a40;
  --oe-primary-soft: #eceaf5;
  --oe-secondary: #38a7de;
  --oe-secondary-dark: #1a77a6; /* azzurro per testi e link su fondo chiaro: contrasto 4.9:1 (WCAG AA) */
  --oe-accent: #ab2039;
  --oe-text: #23213f;
  --oe-muted: #5d6079;
  --oe-border: #e2e5ee;
  --oe-soft: #f4f6fb;
  --oe-white: #fff;
  --oe-radius: 14px;
  --oe-radius-sm: 10px;
  --oe-shadow: 0 10px 30px rgba(43, 39, 91, .08);
  --oe-shadow-lg: 0 20px 50px rgba(43, 39, 91, .16);
  --oe-header-h: 92px;
  --oe-font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --oe-ease: cubic-bezier(.22, .61, .36, 1);
}

/* Base ------------------------------------------------------------------- */
html { scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: clip; }
body {
  font-family: var(--oe-font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--oe-text);
  background: var(--oe-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--oe-font); color: var(--oe-primary); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
a { color: var(--oe-secondary-dark); text-decoration: none; transition: color .2s var(--oe-ease); }
a:hover { color: var(--oe-primary); }
img { max-width: 100%; height: auto; }
::selection { background: var(--oe-secondary); color: #fff; }
.oe-skip-link { position: absolute; top: 8px; left: 8px; z-index: 2000; background: #fff; padding: 8px 14px; border-radius: 8px; }
svg { flex-shrink: 0; }

/* Container più ampi da desktop per sfruttare lo spazio disponibile */
@media (min-width: 1200px) {
  .container { max-width: 1600px; padding-left: 40px; padding-right: 40px; }
}
@media (min-width: 1600px) {
  .container { padding-left: 56px; padding-right: 56px; }
}

/* Buttons ---------------------------------------------------------------- */
.oe-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .85rem 1.6rem;
  font-weight: 700; font-size: .95rem; line-height: 1.2;
  border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: background-color .25s var(--oe-ease), color .25s var(--oe-ease), border-color .25s var(--oe-ease), transform .25s var(--oe-ease), box-shadow .25s var(--oe-ease);
}
.oe-btn svg { width: 18px; height: 18px; transition: transform .25s var(--oe-ease); }
.oe-btn:hover svg { transform: translateX(4px); }
.oe-btn-sm { padding: .6rem 1.15rem; font-size: .875rem; }
.oe-btn-primary { background: var(--oe-primary); color: #fff; }
.oe-btn-primary:hover { background: var(--oe-secondary); color: #fff; box-shadow: 0 8px 20px rgba(56, 167, 222, .35); }
.oe-btn-secondary { background: var(--oe-secondary); color: var(--oe-primary-dark); } /* testo scuro: il bianco sull'azzurro ha contrasto 2.7:1 */
.oe-btn-secondary:hover { background: #fff; color: var(--oe-primary); }
.oe-btn-outline-light { border-color: rgba(255, 255, 255, .7); color: #fff; }
.oe-btn-outline-light:hover { background: #fff; color: var(--oe-primary); border-color: #fff; }
.oe-btn-light { background: #fff; color: var(--oe-primary); }
.oe-btn-light:hover { background: var(--oe-accent); color: #fff; }
/* Verde-acqua WhatsApp scurito: il bianco sul verde #25d366 ha contrasto 2:1, qui 5.2:1 (WCAG AA) */
.oe-btn-whatsapp { background: #0e7a6e; color: #fff; }
.oe-btn-whatsapp:hover { background: #075e54; color: #fff; }
.oe-btn-whatsapp svg { width: 20px; height: 20px; }

.oe-link-arrow { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--oe-primary); white-space: nowrap; }
.oe-link-arrow svg { width: 18px; height: 18px; transition: transform .25s var(--oe-ease); }
.oe-link-arrow:hover { color: var(--oe-secondary-dark); }
.oe-link-arrow:hover svg { transform: translateX(4px); }
.oe-link-back:hover svg { transform: translateX(-4px); }
/* Frecce ↗: al passaggio del mouse si spostano in diagonale nella direzione della punta */
.oe-btn:hover .oe-icon-arrow-up-right, .oe-link-arrow:hover .oe-icon-arrow-up-right { transform: translate(3px, -3px); }

/* Eyebrow / tags ----------------------------------------------------------- */
.oe-eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--oe-accent); margin-bottom: 1rem;
}
.oe-eyebrow::before { content: ""; width: 32px; height: 2px; background: currentColor; }
.oe-eyebrow-light { color: var(--oe-secondary); }
.oe-tag {
  display: inline-block; padding: .25rem .7rem; border-radius: 999px;
  background: var(--oe-primary-soft); color: var(--oe-primary);
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}

/* Header ---------------------------------------------------------------- */
.oe-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1030;
  padding: 14px 0;
  transition: padding .35s var(--oe-ease);
}
.oe-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(20, 18, 48, .55) 0%, rgba(20, 18, 48, 0) 100%);
  transition: opacity .35s var(--oe-ease);
}
.oe-header.is-scrolled { padding: 12px 0; }
.oe-header.is-scrolled::before { opacity: 0; }
.oe-header-inner {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  border-radius: 999px;
  transition: background-color .35s var(--oe-ease), padding .35s var(--oe-ease), box-shadow .35s var(--oe-ease);
}
/* Il blur sta su uno pseudo-elemento: backdrop-filter sull'header-inner lo renderebbe il containing
   block del menu mobile (position: fixed), che verrebbe tagliato all'altezza della barra */
.oe-header-inner::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  border-radius: inherit;
}
/* Stato scrolled: barra floating con i lati arrotondati */
.oe-header.is-scrolled .oe-header-inner::before {
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
}
.oe-header.is-scrolled .oe-header-inner {
  background: rgba(43, 39, 91, .62);
  padding: 8px 15px 8px 28px;
  box-shadow: 0 12px 32px rgba(10, 8, 30, .28), inset 0 0 0 1px rgba(255, 255, 255, .08);
}
@media (max-width: 575.98px) {
  .oe-header.is-scrolled { padding: 8px 0; }
  .oe-header.is-scrolled .oe-header-inner { padding: 6px 6px 6px 18px; }
}
.oe-logo img { display: block; width: 190px; height: auto; transition: width .3s var(--oe-ease); }
.oe-header.is-scrolled .oe-logo img { width: 150px; }
.oe-header-actions { display: flex; align-items: center; gap: .75rem; }

.oe-nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .25rem; }
.oe-nav-item { position: relative; display: flex; align-items: center; }
.oe-nav-link {
  display: block; padding: .6rem .8rem;
  color: #fff; font-weight: 600; font-size: .95rem;
  position: relative;
}
.oe-nav-link::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .25rem; height: 2px;
  background: var(--oe-secondary); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--oe-ease);
}
.oe-nav-link:hover, .oe-nav-item.active > .oe-nav-link { color: #fff; }
.oe-nav-link:hover::after, .oe-nav-item.active > .oe-nav-link::after { transform: scaleX(1); }
/* 24x24px senza sovrapporsi al link accanto (target-size): lo spazio prima della freccia lo toglie il link, vedi media 992px */
.oe-nav-item-social .oe-nav-link { display: inline-flex; align-items: center; gap: .6rem; }
.oe-nav-item-social svg { width: 22px; height: 22px; }
.oe-nav-item-social .oe-nav-link::after { display: none; }
.oe-nav-item-social .oe-nav-link:hover { color: var(--oe-secondary); }
.oe-nav-toggle { background: none; border: 0; color: #fff; padding: 0; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; }
.oe-nav-toggle svg { width: 16px; height: 16px; transition: transform .25s var(--oe-ease); }
.oe-nav-dropdown {
  list-style: none; margin: 0; padding: .6rem;
  position: absolute; top: 100%; left: 0; min-width: 240px;
  background: #fff; border-radius: var(--oe-radius-sm); box-shadow: var(--oe-shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s var(--oe-ease), transform .25s var(--oe-ease), visibility .25s;
}
.oe-nav-dropdown a { display: block; padding: .55rem .8rem; border-radius: 8px; color: var(--oe-text); font-weight: 600; font-size: .92rem; }
.oe-nav-dropdown a:hover, .oe-nav-dropdown a.active { background: var(--oe-soft); color: var(--oe-secondary-dark); }
.oe-burger, .oe-nav-close {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35);
  background: transparent; color: #fff; display: inline-flex; align-items: center; justify-content: center;
}
.oe-burger svg, .oe-nav-close svg { width: 22px; height: 22px; }

@media (min-width: 992px) {
  .oe-nav-item.has-dropdown:hover .oe-nav-dropdown,
  .oe-nav-item.has-dropdown:focus-within .oe-nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
  .oe-nav-item.has-dropdown:hover .oe-nav-toggle svg { transform: rotate(180deg); }
  .oe-nav-item.has-dropdown > .oe-nav-link { padding-right: .2rem; }
  .oe-nav-item.has-dropdown > .oe-nav-link::after { right: .2rem; }
}
@media (max-width: 1199.98px) and (min-width: 992px) {
  .oe-nav-link { padding: .6rem .55rem; font-size: .9rem; }
  .oe-logo img { width: 160px; }
}
@media (max-width: 991.98px) {
  .oe-logo img { width: 150px; }
  .oe-header.is-scrolled .oe-logo img { width: 130px; }
  .oe-nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(360px, 88vw); z-index: 1050;
    background: var(--oe-primary); padding: 1.25rem 1.5rem 2rem;
    display: flex; flex-direction: column; overflow-y: auto;
    transform: translateX(100%); transition: transform .35s var(--oe-ease);
  }
  .oe-nav { visibility: hidden; transition: transform .35s var(--oe-ease), visibility .35s; }
  .oe-nav.is-open { transform: translateX(0); visibility: visible; }
  .oe-nav-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
  .oe-nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .oe-nav-item { flex-wrap: wrap; border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .oe-nav-link { flex: 1; padding: .95rem 0; font-size: 1.05rem; }
  .oe-nav-link::after { display: none; }
  .oe-nav-item.active > .oe-nav-link { color: var(--oe-secondary); }
  .oe-nav-toggle { width: 44px; height: 44px; margin: 0; }
  .oe-nav-item.is-open .oe-nav-toggle svg { transform: rotate(180deg); }
  .oe-nav-dropdown {
    position: static; width: 100%; min-width: 0; padding: 0 0 .75rem .75rem;
    background: transparent; box-shadow: none; opacity: 1; visibility: visible; transform: none;
    display: none;
  }
  .oe-nav-item.is-open .oe-nav-dropdown { display: block; }
  .oe-nav-dropdown a { color: rgba(255, 255, 255, .8); padding: .45rem 0; }
  .oe-nav-dropdown a:hover, .oe-nav-dropdown a.active { background: none; color: var(--oe-secondary); }
  .oe-nav-contacts { margin-top: auto; padding-top: 2rem; display: flex; flex-direction: column; gap: .75rem; }
  .oe-nav-contacts a { color: #fff; display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; }
  .oe-nav-contacts svg { width: 18px; height: 18px; color: var(--oe-secondary); }
  .oe-nav-overlay {
    position: fixed; inset: 0; z-index: 1040; background: rgba(15, 13, 38, .6);
    opacity: 0; visibility: hidden; transition: opacity .3s var(--oe-ease), visibility .3s;
  }
  .oe-nav-overlay.is-visible { opacity: 1; visibility: visible; }
  body.oe-nav-open { overflow: hidden; }
  body.oe-nav-open .oe-header { z-index: 1045; }
}

/* Hero slider (home) ------------------------------------------------------ */
.oe-hero { position: relative; height: 100vh; height: 100svh; min-height: 600px; background: var(--oe-primary-dark); color: #fff; overflow: hidden; }
.oe-hero-swiper, .oe-hero-swiper .swiper-wrapper, .oe-hero-slide { height: 100%; }
.oe-hero-slide { position: relative; display: flex; align-items: center; overflow: hidden; }
.oe-hero-bg, .oe-hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.oe-hero-bg img { object-fit: cover; transform: scale(1.08); transition: transform 7s linear; }
.oe-hero-slide.swiper-slide-active .oe-hero-bg img { transform: scale(1); }
.oe-hero-slide::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse 70% 90% at 0 0, rgba(51, 157, 212, .55) 0%, rgba(51, 157, 212, 0) 100%),
    linear-gradient(100deg, rgba(29, 26, 64, .94) 0%, rgba(43, 39, 91, .82) 45%, rgba(43, 39, 91, .35) 100%),
    linear-gradient(0deg, rgba(29, 26, 64, .55) 0%, rgba(29, 26, 64, 0) 40%);
}
.oe-hero-container { position: relative; z-index: 2; padding-top: var(--oe-header-h); padding-bottom: 80px; }
.oe-hero-eyebrow {
  display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1.4rem;
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--oe-secondary);
}
.oe-hero-eyebrow::before { content: ""; width: 36px; height: 2px; background: var(--oe-accent); }
.oe-hero-title { color: #fff; font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 800; line-height: 1.1; margin-bottom: 1.25rem; max-width: 20ch; }
.oe-hero-text { font-size: clamp(1rem, 1.6vw, 1.2rem); color: rgba(255, 255, 255, .85); max-width: 46ch; margin-bottom: 2.2rem; }
.oe-hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.oe-hero-claims { list-style: none; margin: 0; padding: .5rem 0 .5rem 2rem; border-left: 2px solid rgba(255, 255, 255, .25); }
.oe-hero-claims li {
  font-size: 1.05rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600;
  color: rgba(255, 255, 255, .75); padding: .45rem 0;
}
.oe-hero-claims li:last-child { color: var(--oe-secondary); }

/* Animazione ingresso testi slide */
.oe-hero-slide .oe-hero-eyebrow, .oe-hero-slide .oe-hero-title, .oe-hero-slide .oe-hero-text, .oe-hero-slide .oe-hero-actions, .oe-hero-slide .oe-hero-claims {
  opacity: 0; transform: translateY(30px); transition: opacity .8s var(--oe-ease), transform .8s var(--oe-ease);
}
.oe-hero-slide.swiper-slide-active .oe-hero-eyebrow { opacity: 1; transform: none; transition-delay: .2s; }
.oe-hero-slide.swiper-slide-active .oe-hero-title { opacity: 1; transform: none; transition-delay: .35s; }
.oe-hero-slide.swiper-slide-active .oe-hero-text { opacity: 1; transform: none; transition-delay: .5s; }
.oe-hero-slide.swiper-slide-active .oe-hero-actions { opacity: 1; transform: none; transition-delay: .65s; }
.oe-hero-slide.swiper-slide-active .oe-hero-claims { opacity: 1; transform: none; transition-delay: .8s; }

.oe-hero-nav {
  position: absolute; top: 50%; z-index: 5; transform: translateY(-50%);
  width: 56px; height: 56px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .06); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px); transition: background-color .25s var(--oe-ease), border-color .25s var(--oe-ease);
}
.oe-hero-nav svg { width: 26px; height: 26px; }
.oe-hero-nav:hover { background: var(--oe-secondary); border-color: var(--oe-secondary); }
.oe-hero-prev { left: 24px; }
.oe-hero-next { right: 24px; }
.oe-hero-pagination { position: absolute; z-index: 5; left: 0; right: 0; bottom: 33px !important; display: flex; justify-content: center; gap: 0; }
/* Pallino visibile disegnato con ::before: il bottone resta di almeno 24x24px per il tocco (target-size) */
.oe-hero-pagination .swiper-pagination-bullet { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin: 0 !important; background: transparent; opacity: 1; border-radius: 999px; transition: width .3s var(--oe-ease); }
.oe-hero-pagination .swiper-pagination-bullet::before { content: ""; width: 10px; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .5); transition: width .3s var(--oe-ease), background-color .3s; }
.oe-hero-pagination .swiper-pagination-bullet-active { width: 40px; }
.oe-hero-pagination .swiper-pagination-bullet-active::before { width: 34px; background: var(--oe-secondary); }
.oe-hero-scroll {
  position: absolute; z-index: 5; right: 40px; bottom: 34px;
  width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .6); border-radius: 20px;
}
.oe-hero-scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: #fff; border-radius: 4px; animation: oe-scroll 1.8s infinite; }
@keyframes oe-scroll { 0% { opacity: 1; transform: translateY(0); } 80% { opacity: 0; transform: translateY(14px); } 100% { opacity: 0; } }
@media (min-width: 992px) and (max-width: 1799.98px) { .oe-hero-container { padding-left: 96px; padding-right: 96px; } }
@media (max-width: 991.98px) {
  .oe-hero-container { padding-left: calc(var(--bs-gutter-x) * .5); padding-right: calc(var(--bs-gutter-x) * .5); }
  .oe-hero-nav { display: none; }
  .oe-hero-scroll { display: none; }
  .oe-hero-title { max-width: none; }
}
@media (max-width: 575.98px) {
  .oe-hero { min-height: 560px; }
  .oe-hero-actions .oe-btn { width: 100%; }
}

/* Sections -------------------------------------------------------------- */
.oe-section { padding: 96px 0; }
.oe-section + .oe-section:not(.oe-section-soft) { padding-top: 0; }
.oe-section-soft + .oe-section, .oe-section-tight + .oe-section { padding-top: 96px !important; }
.oe-section-soft { background: var(--oe-soft); }
.oe-section-tight { padding: 0 0 96px; }
.oe-section-soft + .oe-section-tight { padding-top: 96px; }
.oe-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.oe-section-head-text { display: flex; align-items: baseline; gap: .5rem 1.5rem; flex-wrap: wrap; }
.oe-section-title { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: .25rem; }
.oe-section-title-lg { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-bottom: 1.25rem; }
.oe-section-lead { color: var(--oe-muted); margin: 0; }
.oe-lead { font-size: 1.15rem; color: var(--oe-text); font-weight: 500; }
@media (max-width: 767.98px) {
  .oe-section { padding: 64px 0; }
  .oe-section-soft + .oe-section, .oe-section-tight + .oe-section, .oe-section-soft + .oe-section-tight { padding-top: 64px !important; }
  .oe-section-tight { padding-bottom: 64px; }
  .oe-section-head { margin-bottom: 1.75rem; }
}

/* Cards ----------------------------------------------------------------- */
.oe-card {
  height: 100%; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--oe-border); border-radius: var(--oe-radius);
  overflow: hidden; transition: transform .35s var(--oe-ease), box-shadow .35s var(--oe-ease), border-color .35s var(--oe-ease);
}
.oe-card:hover { transform: translateY(-6px); box-shadow: var(--oe-shadow-lg); border-color: transparent; }
.oe-card-media { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--oe-soft); }
.oe-card-media img { width: 100%; height: 100%; object-fit: contain; transition: transform .6s var(--oe-ease); }
.oe-card:hover .oe-card-media img { transform: scale(1.04); }
.oe-card-body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding: 1.5rem; }
.oe-card-meta { display: inline-flex; align-items: center; gap: .45rem; font-size: .82rem; font-weight: 600; color: var(--oe-muted); margin-bottom: .75rem; }
.oe-card-meta svg { width: 16px; height: 16px; color: var(--oe-secondary); }
.oe-card-tags { list-style: none; margin: 0 0 .75rem; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.oe-card-tags li {
  padding: .25rem .7rem; border-radius: 999px;
  background: var(--oe-primary-soft); color: var(--oe-primary);
  font-size: .75rem; font-weight: 700; line-height: 1.3;
}
.oe-card-title { font-size: 1.15rem; line-height: 1.3; margin-bottom: .6rem; }
.oe-card-title a { color: var(--oe-primary); }
.oe-card-title a:hover { color: var(--oe-secondary-dark); }
.oe-card-text { font-size: .93rem; color: var(--oe-muted); margin-bottom: 1.25rem; }
.oe-card-plain { border-top: 4px solid var(--oe-secondary); }

/* About (home) ---------------------------------------------------------- */
.oe-about-media { position: relative; border-radius: var(--oe-radius); overflow: hidden; aspect-ratio: 5 / 4; box-shadow: var(--oe-shadow-lg); background: var(--oe-soft); }
.oe-about-media > img { width: 100%; height: 100%; object-fit: cover; }
.oe-about-media-square { aspect-ratio: 1 / 1; }
.oe-about-media[data-oe-fader] > .oe-fader-item { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s var(--oe-ease); }
.oe-about-media[data-oe-fader] > .oe-fader-item.is-active { opacity: 1; }
.oe-about-badge { z-index: 2; }
.oe-about-badge {
  position: absolute; left: 20px; bottom: 20px;
  display: flex; align-items: center; gap: .75rem; padding: .75rem 1.1rem;
  background: rgba(255, 255, 255, .95); border-radius: var(--oe-radius-sm); box-shadow: var(--oe-shadow);
}
.oe-about-badge img { height: 38px; width: auto; }
.oe-about-badge-plus { font-weight: 800; color: var(--oe-accent); }
.oe-richtext-clamp { max-height: 11.5em; overflow: hidden; position: relative; transition: max-height .5s var(--oe-ease); }
.oe-richtext-clamp::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4em; background: linear-gradient(180deg, rgba(244, 246, 251, 0), var(--oe-soft)); transition: opacity .3s; }
.oe-richtext-clamp.is-expanded { max-height: none; }
.oe-richtext-clamp.is-expanded::after { opacity: 0; }

/* Associazioni (home) ---------------------------------------------------- */
.oe-assoc-box {
  height: 100%; display: flex; gap: 1.75rem; align-items: center;
  padding: 2.25rem; border-radius: var(--oe-radius);
  background: var(--oe-primary); color: rgba(255, 255, 255, .8);
  position: relative; overflow: hidden;
}
.oe-assoc-box::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: rgba(56, 167, 222, .18); }
/* Gradienti distinti: ANDI vira verso il blu, AIO verso il bordeaux dell'accento */
.oe-assoc-box-andi { background: linear-gradient(135deg, var(--oe-primary) 0%, #23477e 55%, #1b6a9e 100%); }
.oe-assoc-box-andi::after { background: rgba(56, 167, 222, .22); }
.oe-assoc-box-aio { background: linear-gradient(135deg, var(--oe-primary-dark) 0%, #4a1d4d 55%, #7a1832 100%); }
.oe-assoc-box-aio::after { background: rgba(171, 32, 57, .35); }
.oe-assoc-logo { flex: 0 0 130px; background: #fff; border-radius: var(--oe-radius-sm); padding: 1rem; align-self: stretch; display: flex; align-items: center; justify-content: center; }
.oe-assoc-logo img { width: 100%; height: auto; max-height: 90px; object-fit: contain; }
.oe-assoc-body { position: relative; z-index: 1; }
.oe-assoc-title { color: #fff; font-size: 1.6rem; margin-bottom: .35rem; }
.oe-assoc-claim { color: var(--oe-secondary); font-weight: 700; margin-bottom: .5rem; }
.oe-assoc-text { font-size: .93rem; margin-bottom: 1.25rem; }
@media (max-width: 575.98px) {
  .oe-assoc-box { flex-direction: column; align-items: flex-start; padding: 1.75rem; }
  .oe-assoc-logo { flex-basis: auto; width: 120px; align-self: flex-start; }
}

/* Partner --------------------------------------------------------------- */
.oe-partners { padding: 56px 0; border-top: 1px solid var(--oe-border); }
.oe-partners-inner { display: flex; align-items: center; gap: 2rem 3rem; flex-wrap: wrap; }
.oe-partners-title { font-size: 1.5rem; margin: 0; flex: 0 0 auto; }
.oe-partners-swiper { flex: 1; min-width: 0; width: 100%; }
.oe-partners-list { list-style: none; margin: 0; padding: 0; align-items: center; }
.oe-partners-swiper:not(.swiper-initialized) .oe-partners-list { flex-wrap: wrap; justify-content: space-around; gap: 2rem 3rem; }
.oe-partners-swiper:not(.swiper-initialized) .swiper-slide { width: auto; }
.oe-partners-list .swiper-slide { display: flex; align-items: center; justify-content: center; height: auto; }
.oe-partners-list img { height: 64px; width: auto; max-width: 180px; object-fit: contain; opacity: .7; transition: opacity .3s; }
.oe-partners-list li:hover img { opacity: 1; }
@media (max-width: 767.98px) {
  .oe-partners-inner { flex-direction: column; text-align: center; }
  .oe-partners-swiper:not(.swiper-initialized) .oe-partners-list { justify-content: center; }
  .oe-partners-list img { max-width: 100%; }
}

/* Carosello annunci correlati ------------------------------------------- */
.oe-related-swiper .swiper-slide { height: auto; }
/* Spazio interno per non troncare il sollevamento e l'ombra dei box in hover (fino a ~50px); i margini negativi mantengono la spaziatura originale.
   Le slide fuori vista sono nascoste, cosi' nello spazio laterale non si intravede l'annuncio successivo */
.oe-related-swiper { padding: 32px 56px 64px; margin: -32px -56px -64px; }
.oe-related-swiper .swiper-slide { transition: opacity .3s var(--oe-ease); }
.oe-related-swiper .swiper-slide:not(.swiper-slide-visible) { opacity: 0; pointer-events: none; }
.oe-related-controls[hidden] { display: none; }
.oe-related-controls { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 2rem; }
.oe-related-nav {
  width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--oe-border); color: var(--oe-primary);
  transition: background-color .25s var(--oe-ease), color .25s var(--oe-ease), border-color .25s var(--oe-ease);
}
.oe-related-nav svg { width: 20px; height: 20px; }
.oe-related-nav:hover { background: var(--oe-primary); border-color: var(--oe-primary); color: #fff; }
.oe-related-nav.swiper-button-disabled { opacity: .4; pointer-events: none; }
.oe-related-pagination { position: static; display: flex; gap: 0; width: auto !important; }
/* Come nella hero: area di tocco 24x24px, pallino disegnato con ::before */
.oe-related-pagination .swiper-pagination-bullet { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin: 0 !important; background: transparent; opacity: 1; border-radius: 999px; transition: width .3s var(--oe-ease); }
.oe-related-pagination .swiper-pagination-bullet::before { content: ""; width: 10px; height: 10px; border-radius: 999px; background: var(--oe-border); transition: width .3s var(--oe-ease), background-color .3s; }
.oe-related-pagination .swiper-pagination-bullet-active { width: 34px; }
.oe-related-pagination .swiper-pagination-bullet-active::before { width: 28px; background: var(--oe-secondary); }

/* Page banner ----------------------------------------------------------- */
.oe-page-banner {
  position: relative; overflow: hidden; color: #fff;
  background: var(--oe-primary);
  padding: calc(var(--oe-header-h) + 72px) 0 72px;
}
.oe-page-banner-bg, .oe-page-banner-bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.oe-page-banner-bg img { object-fit: cover; }
.oe-page-banner-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 90% at 0 0, rgba(51, 157, 212, .55) 0%, rgba(51, 157, 212, 0) 100%), linear-gradient(100deg, rgba(29, 26, 64, .95) 0%, rgba(43, 39, 91, .85) 55%, rgba(43, 39, 91, .55) 100%); }
.oe-page-banner::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--oe-primary), var(--oe-secondary), var(--oe-accent)); }
.oe-page-banner-content { max-width: 820px; }
.oe-page-banner h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.4rem); margin-bottom: .75rem; }
.oe-page-banner-subtitle { font-size: 1.15rem; color: rgba(255, 255, 255, .85); margin: 0; }
.oe-page-banner nav[aria-label="breadcrumb"] { justify-content: flex-start !important; }
.oe-page-banner .breadcrumb { margin-bottom: 1.25rem; font-size: .85rem; font-weight: 600; --bs-breadcrumb-divider-color: rgba(255, 255, 255, .5); --bs-breadcrumb-item-active-color: var(--oe-secondary); }
.oe-page-banner .breadcrumb-item, .oe-page-banner .breadcrumb-item::before { color: rgba(255, 255, 255, .6); }
.oe-page-banner .breadcrumb-item:last-child { color: var(--oe-secondary); }
.oe-page-banner .breadcrumb a { color: rgba(255, 255, 255, .85); }
.oe-page-banner .breadcrumb a:hover { color: #fff; }
/* Testata alta 2/3 della finestra (es. contatti) */
.oe-page-banner-tall { display: flex; align-items: center; min-height: 66.667vh; min-height: 66.667svh; }
.oe-page-banner-tall > .container { width: 100%; }
@media (min-width: 768px) {
  .oe-page-banner-tall { align-items: flex-end; }
}
@media (max-width: 767.98px) {
  .oe-page-banner { padding: calc(var(--oe-header-h) + 32px) 0 48px; }
}

/* Rich text ------------------------------------------------------------- */
.oe-richtext { font-size: 1.02rem; color: var(--oe-text); overflow-wrap: anywhere; }
.oe-richtext > *:last-child { margin-bottom: 0; }
.oe-richtext p { margin-bottom: 1.1rem; }
.oe-richtext h2, .oe-richtext h3, .oe-richtext h4 { margin: 2rem 0 1rem; }
.oe-richtext h2 { font-size: 1.7rem; }
.oe-richtext h3 { font-size: 1.35rem; }
.oe-richtext strong { color: var(--oe-primary); }
.oe-richtext a { color: var(--oe-secondary-dark); text-decoration: underline; text-underline-offset: 3px; }
.oe-richtext a:hover { color: var(--oe-accent); }
.oe-richtext ul, .oe-richtext ol { padding-left: 1.25rem; margin-bottom: 1.1rem; }
.oe-richtext li { margin-bottom: .35rem; }
.oe-richtext li::marker { color: var(--oe-secondary); }
.oe-richtext img { border-radius: var(--oe-radius-sm); height: auto !important; }
/* Tabelle dell'editor: il wrapper (aggiunto da main.js) da' bordo arrotondato e scroll orizzontale per le tabelle larghe */
.oe-table-wrap { margin-bottom: 1.5rem; border: 1px solid var(--oe-border); border-radius: var(--oe-radius-sm); overflow-x: auto; background: #fff; }
.oe-richtext table { width: 100% !important; height: auto !important; margin: 0; border-collapse: collapse; }
.oe-table-wrap table { margin: 0; }
.oe-richtext table td, .oe-richtext table th { padding: .85rem 1.25rem; border: 0; border-bottom: 1px solid var(--oe-border); vertical-align: top; text-align: left; }
.oe-richtext table tr:last-child td { border-bottom: 0; }
.oe-richtext table th, .oe-richtext table thead td { background: var(--oe-primary); color: #fff; font-weight: 700; font-size: .9rem; }
.oe-richtext table tbody tr:nth-child(even) { background: var(--oe-soft); }
.oe-richtext table tbody tr { transition: background-color .2s var(--oe-ease); }
.oe-richtext table tbody tr:hover { background: var(--oe-primary-soft); }
.oe-richtext table p:last-child { margin-bottom: 0; }
/* Tabelle senza intestazione (es. ruolo / nome): prima colonna come etichetta */
.oe-richtext .oe-table-stack td:first-child { width: 45%; color: var(--oe-muted); font-weight: 600; }
.oe-richtext .oe-table-stack td strong { color: var(--oe-primary); }
@media (max-width: 575.98px) {
  /* Su mobile le celle si impilano: etichetta sopra, valore sotto */
  .oe-richtext .oe-table-stack, .oe-richtext .oe-table-stack tbody, .oe-richtext .oe-table-stack tr, .oe-richtext .oe-table-stack td { display: block; width: 100% !important; }
  .oe-richtext .oe-table-stack td { padding: 0 1rem; border-bottom: 0; }
  .oe-richtext .oe-table-stack td:first-child { padding-top: .8rem; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
  .oe-richtext .oe-table-stack td:last-child { padding-bottom: .8rem; }
  .oe-richtext .oe-table-stack tr { border-bottom: 1px solid var(--oe-border); }
  .oe-richtext .oe-table-stack tr:last-child { border-bottom: 0; }
  .oe-richtext table:not(.oe-table-stack) td, .oe-richtext table:not(.oe-table-stack) th { padding: .7rem .9rem; min-width: 140px; }
}
.oe-richtext blockquote { border-left: 4px solid var(--oe-secondary); padding: .5rem 0 .5rem 1.25rem; color: var(--oe-muted); font-style: italic; }

/* Detail ---------------------------------------------------------------- */
.oe-detail-aside { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 1.5rem; }
.oe-detail-cover { margin: 0 0 2rem; border-radius: var(--oe-radius); overflow: hidden; box-shadow: var(--oe-shadow); }
.oe-detail-cover img { width: 100%; height: auto; }
.oe-detail-image { display: block; border-radius: var(--oe-radius); overflow: hidden; box-shadow: var(--oe-shadow); background: var(--oe-soft); }
.oe-detail-image img { width: 100%; height: auto; transition: transform .5s var(--oe-ease); }
.oe-detail-image:hover img { transform: scale(1.03); }
.oe-detail-thumbs .oe-detail-image { aspect-ratio: 1; }
.oe-detail-thumbs .oe-detail-image img { height: 100%; object-fit: cover; }
@media (max-width: 991.98px) { .oe-detail-aside { position: static; } }
/* Colonna con il form: troppo alta per restare sticky */
.oe-detail-aside-static { position: static; }
/* Testata dettaglio news/annuncio ----------------------------------------- */
.oe-detail-banner { padding-bottom: 64px; }
.oe-detail-banner .oe-page-banner-content { max-width: none; }
.oe-detail-badges { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-bottom: 1rem; }
.oe-detail-badge {
  display: inline-block; padding: .35rem .9rem; border-radius: 999px;
  background: var(--oe-accent); color: #fff;
  font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}
.oe-detail-category {
  display: inline-block; padding: .3rem .85rem; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .55); color: #fff;
  font-size: .8rem; font-weight: 700;
}
.oe-detail-date { display: inline-flex; align-items: center; gap: .45rem; font-size: .9rem; font-weight: 600; color: rgba(255, 255, 255, .85); }
.oe-detail-date svg { width: 18px; height: 18px; color: var(--oe-secondary); }
.oe-detail-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.oe-detail-cta { margin-left: auto; }

.oe-detail-banner-image { display: block; border-radius: var(--oe-radius); overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); border: 4px solid rgba(255, 255, 255, .12); cursor: zoom-in; }
.oe-detail-banner-image img { display: block; width: 100%; height: auto; }

/* Slideshow gallery dettaglio news ---------------------------------------- */
.oe-gallery-slideshow { margin-top: 3rem; }
.oe-gallery-title { font-size: 1.5rem; margin-bottom: 1.25rem; }
.oe-gallery-main { position: relative; }
.oe-gallery-swiper { border-radius: var(--oe-radius); background: var(--oe-soft); box-shadow: var(--oe-shadow); }
/* Immagine principale intera (contain), senza tagli */
.oe-gallery-item { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; cursor: zoom-in; }
.oe-gallery-item img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.oe-gallery-nav { position: absolute; top: 50%; z-index: 2; transform: translateY(-50%); box-shadow: var(--oe-shadow); }
.oe-gallery-prev { left: 1rem; }
.oe-gallery-next { right: 1rem; }
.oe-gallery-thumbs { margin-top: 12px; }
.oe-gallery-thumbs .swiper-slide { aspect-ratio: 1; border-radius: var(--oe-radius-sm); overflow: hidden; cursor: pointer; opacity: .55; border: 3px solid transparent; transition: opacity .25s var(--oe-ease), border-color .25s var(--oe-ease); }
.oe-gallery-thumbs .swiper-slide:hover { opacity: .85; }
.oe-gallery-thumbs .swiper-slide-thumb-active { opacity: 1; border-color: var(--oe-secondary); }
.oe-gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* Dettaglio annuncio ------------------------------------------------------ */
.oe-annuncio-section { padding-top: 64px; }
.oe-detail-article {
  background: #fff; border: 1px solid var(--oe-border); border-top: 4px solid var(--oe-secondary);
  border-radius: var(--oe-radius); box-shadow: var(--oe-shadow); padding: 2.5rem;
}
.oe-detail-article .oe-richtext { font-size: 1.05rem; }
.oe-annuncio-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; margin-top: 2rem; }
.oe-annuncio-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.oe-apply-box { padding: 2rem; scroll-margin-top: 110px; border-top: 4px solid var(--oe-accent); }
.oe-apply-title { font-size: 1.4rem; margin-bottom: .75rem; }
.oe-apply-ref { margin-bottom: .75rem; padding: .75rem 1rem; border-radius: var(--oe-radius-sm); background: var(--oe-primary-soft); color: var(--oe-primary); font-weight: 700; }
.oe-apply-ref span { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--oe-muted); }
.oe-apply-cta { padding: 2rem; }
.oe-apply-cta .oe-apply-title { font-weight: 800; color: var(--oe-primary); }
.oe-apply-cta .oe-apply-ref { margin-bottom: 1.5rem; }
.oe-apply-cta-btn { width: 100%; padding: 1.05rem 1.6rem; font-size: 1.05rem; box-shadow: 0 8px 20px rgba(43, 39, 91, .25); }
.oe-listing-intro { margin-bottom: 3.5rem; }
.oe-listing-intro .oe-richtext ul { margin-bottom: 0; }
.oe-listing-intro-cta { margin-top: 1.75rem; }
.oe-listing-intro-cta-title { font-size: 1.15rem; font-weight: 800; color: var(--oe-primary); margin-bottom: .85rem; }
.oe-listing-intro-cta .oe-btn { width: auto; }
.oe-filter { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin-bottom: 2rem; }
.oe-filter-label { font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--oe-muted); }
.oe-filter-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.oe-filter-chip {
  display: inline-flex; align-items: center; min-height: 40px; padding: .45rem 1.1rem; border-radius: 999px;
  border: 1px solid var(--oe-border); background: #fff; color: var(--oe-primary);
  font-size: .9rem; font-weight: 700; text-decoration: none;
  transition: background-color .25s var(--oe-ease), color .25s var(--oe-ease), border-color .25s var(--oe-ease);
}
.oe-filter-chip:hover { border-color: var(--oe-secondary); color: var(--oe-primary); }
.oe-filter-chip.active { background: var(--oe-primary); border-color: var(--oe-primary); color: #fff; }
@media (min-width: 992px) {
  .oe-listing-intro { display: flex; align-items: flex-start; gap: 3rem; }
  .oe-listing-intro .oe-richtext { flex: 1; min-width: 0; }
  .oe-listing-intro-cta { flex: 0 0 auto; margin-top: 0; }
}
@media (max-width: 575.98px) {
  .oe-listing-intro { margin-bottom: 2.5rem; }
  .oe-listing-intro-cta .oe-btn { width: 100%; }
}
@media (max-width: 767.98px) {
  .oe-detail-banner { padding-bottom: 48px; }
  .oe-detail-actions .oe-btn { width: 100%; }
  .oe-annuncio-section { padding-top: 40px; }
  .oe-detail-article { padding: 1.5rem; }
}
@media (max-width: 575.98px) { .oe-apply-box { padding: 1.5rem; } }

/* Upload file nei form di sito: nasconde l'input nativo, resta solo la drop-zone formattata */
.oe-form .upload-file-wrapper .form-upload { display: none; }
.oe-form .upload-zone-wrapper { background: none; margin-bottom: .5rem !important; }
.oe-form .upload-file-wrapper .form-upload + label {
  min-height: 0; margin: 0; padding: 1.75rem 1rem;
  background: var(--oe-soft); background-image: none;
  border: 2px dashed var(--oe-border); border-radius: var(--oe-radius-sm);
  color: var(--oe-muted); font-weight: 500; font-size: .9rem;
  transition: border-color .2s, background-color .2s;
}
.oe-form .upload-file-wrapper .form-upload + label:hover,
.oe-form .upload-file-wrapper .form-upload + label.dragover { border-color: var(--oe-secondary); background-color: rgba(56, 167, 222, .06); }
.oe-form .upload-file-wrapper .form-upload + label.is-invalid { border-color: #dc3545; }
.oe-form .upload-file-wrapper .form-upload + label svg { scale: 1; width: 30px; height: 30px; margin: 0; fill: var(--oe-secondary); }
.oe-form .upload-file-wrapper .form-upload + label span > span:not(.upload-suggestion) { font-size: .95rem; }
.oe-form .upload-file-wrapper .form-upload + label .btn {
  display: inline-flex; align-items: center; padding: .6rem 1.15rem;
  font-weight: 700; font-size: .875rem; line-height: 1.2;
  border-radius: 999px; border: 2px solid var(--oe-primary);
  background: transparent; color: var(--oe-primary);
  transition: background-color .25s var(--oe-ease), color .25s var(--oe-ease);
}
.oe-form .upload-file-wrapper .form-upload + label:hover .btn { background: var(--oe-primary); color: #fff; }
.oe-form .upload-file-wrapper .item-document { border-color: var(--oe-border); border-radius: var(--oe-radius-sm); }

.oe-documents { background: var(--oe-soft); border-radius: var(--oe-radius); padding: 1.5rem; }
.oe-documents-title { font-size: 1.1rem; margin-bottom: 1rem; }
.oe-documents-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.oe-documents-list a {
  display: flex; align-items: center; gap: .85rem; padding: .85rem 1rem;
  background: #fff; border-radius: var(--oe-radius-sm); border: 1px solid var(--oe-border);
  color: var(--oe-text); font-weight: 600; font-size: .93rem; line-height: 1.35;
  transition: border-color .25s, box-shadow .25s;
}
.oe-documents-list a:hover { border-color: var(--oe-secondary); box-shadow: var(--oe-shadow); }
.oe-documents-icon { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 10px; background: rgba(171, 32, 57, .1); color: var(--oe-accent); display: inline-flex; align-items: center; justify-content: center; }
.oe-documents-icon svg { width: 22px; height: 22px; }
.oe-documents-label { flex: 1; }
.oe-documents-action svg { width: 20px; height: 20px; color: var(--oe-secondary); }

.oe-videos { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 2rem; }
.oe-video .ratio { border-radius: var(--oe-radius); overflow: hidden; box-shadow: var(--oe-shadow); }

.oe-subnav { border: 1px solid var(--oe-border); border-radius: var(--oe-radius); padding: 1.25rem; }
.oe-subnav-title { font-weight: 800; font-size: 1.05rem; padding: 0 .5rem .75rem; border-bottom: 1px solid var(--oe-border); margin-bottom: .5rem; }
.oe-subnav-title a { color: var(--oe-primary); }
.oe-subnav ul { list-style: none; margin: 0; padding: 0; }
.oe-subnav li a { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .6rem .5rem; border-radius: 8px; color: var(--oe-text); font-weight: 600; font-size: .93rem; }
.oe-subnav li a svg { width: 16px; height: 16px; color: var(--oe-secondary); }
.oe-subnav li a:hover, .oe-subnav li a.active { background: var(--oe-soft); color: var(--oe-secondary-dark); }

.oe-aside-cta { border-radius: var(--oe-radius); padding: 1.75rem; background: var(--oe-primary); color: rgba(255, 255, 255, .8); font-size: .93rem; }
.oe-aside-cta-title { color: #fff; font-weight: 800; font-size: 1.2rem; margin-bottom: .5rem; }
.oe-aside-cta p:not(.oe-aside-cta-title) { margin-bottom: 1.25rem; }

.oe-assoc-card { border: 1px solid var(--oe-border); border-radius: var(--oe-radius); padding: 1.75rem; text-align: center; }
.oe-assoc-card img { max-width: 200px; max-height: 110px; width: auto; margin: 0 auto 1rem; display: block; }
.oe-assoc-card p { margin: 0; font-weight: 600; color: var(--oe-muted); }

.oe-section-link {
  height: 100%; display: flex; align-items: center; gap: 1rem;
  padding: 1.35rem 1.5rem; border-radius: var(--oe-radius);
  background: var(--oe-soft); border: 1px solid transparent;
  transition: background-color .25s, border-color .25s, box-shadow .25s, transform .25s var(--oe-ease);
}
.oe-section-link:hover { background: #fff; border-color: var(--oe-border); box-shadow: var(--oe-shadow); transform: translateY(-3px); }
.oe-section-link-body { flex: 1; display: flex; flex-direction: column; }
.oe-section-link-title { font-weight: 800; color: var(--oe-primary); font-size: 1.1rem; }
.oe-section-link-text { color: var(--oe-muted); font-size: .9rem; }
.oe-section-link-icon { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%; background: var(--oe-primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; transition: background-color .25s; }
.oe-section-link-icon svg { width: 18px; height: 18px; }
.oe-section-link:hover .oe-section-link-icon { background: var(--oe-secondary); }

/* Links ----------------------------------------------------------------- */
.oe-link-card {
  height: 100%; display: flex; align-items: center; gap: 1rem; padding: 1.25rem;
  border: 1px solid var(--oe-border); border-radius: var(--oe-radius); background: #fff; color: var(--oe-text);
  transition: box-shadow .3s, transform .3s var(--oe-ease), border-color .3s;
}
.oe-link-card:hover { box-shadow: var(--oe-shadow-lg); transform: translateY(-4px); border-color: transparent; color: var(--oe-text); }
.oe-link-card-media { width: 64px; height: 64px; flex: 0 0 64px; border-radius: 12px; background: var(--oe-soft); display: inline-flex; align-items: center; justify-content: center; overflow: hidden; color: var(--oe-secondary); }
.oe-link-card-media img { width: 100%; height: 100%; object-fit: contain; }
.oe-link-card-media svg { width: 26px; height: 26px; }
.oe-link-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.oe-link-card-title { font-weight: 800; color: var(--oe-primary); }
.oe-link-card-url { font-size: .85rem; color: var(--oe-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oe-link-card-icon svg { width: 20px; height: 20px; color: var(--oe-secondary); }

/* Contatti -------------------------------------------------------------- */
.oe-contact-card {
  height: 100%; display: flex; align-items: center; gap: 1.1rem; padding: 1.5rem;
  border-radius: var(--oe-radius); background: var(--oe-soft); color: var(--oe-text);
  transition: background-color .3s, box-shadow .3s, transform .3s var(--oe-ease);
}
.oe-contact-card:hover { background: #fff; box-shadow: var(--oe-shadow-lg); transform: translateY(-4px); color: var(--oe-text); }
.oe-contact-card > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.oe-contact-card-icon { width: 54px; height: 54px; flex: 0 0 54px; border-radius: 50%; background: var(--oe-primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; transition: background-color .3s; }
.oe-contact-card:hover .oe-contact-card-icon { background: var(--oe-secondary); }
.oe-contact-card-icon svg { width: 22px; height: 22px; }
.oe-contact-card-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--oe-accent); }
.oe-contact-card-text { font-weight: 700; color: var(--oe-primary); overflow-wrap: anywhere; }
.oe-form-box { background: #fff; border: 1px solid var(--oe-border); border-radius: var(--oe-radius); box-shadow: var(--oe-shadow); padding: 2.5rem; }
@media (max-width: 575.98px) { .oe-form-box { padding: 1.5rem; } }
.oe-form label { font-weight: 600; font-size: .9rem; color: var(--oe-primary); margin-bottom: .35rem; }
.oe-form .form-control, .oe-form .form-select {
  border-radius: var(--oe-radius-sm); border: 1px solid var(--oe-border); background: var(--oe-soft);
  padding: .8rem 1rem; font-size: .95rem; transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.oe-form .form-control:focus, .oe-form .form-select:focus { background: #fff; border-color: var(--oe-secondary); box-shadow: 0 0 0 4px rgba(56, 167, 222, .15); }
.oe-form .form-floating > textarea.form-control { height: 200px; min-height: 200px; resize: vertical; }
.oe-form .form-floating > textarea.form-control ~ label::after,
.oe-form .form-floating > .form-select ~ label::after { display: none; }
.oe-form .form-check-input:checked { background-color: var(--oe-primary); border-color: var(--oe-primary); }
.oe-form .form-check-label, .oe-form .form-check label { font-weight: 500; font-size: .88rem; color: var(--oe-muted); }
.oe-form .gdpr-link { color: var(--oe-secondary-dark); text-decoration: underline; cursor: pointer; }

/* Thank you / 404 / empty ------------------------------------------------ */
.oe-thankyou { padding: calc(var(--oe-header-h) + 96px) 0 96px; background: linear-gradient(180deg, var(--oe-primary) 0, var(--oe-primary) 260px, var(--oe-soft) 260px); }
.oe-thankyou-box { max-width: 680px; margin: 0 auto; background: #fff; border-radius: var(--oe-radius); box-shadow: var(--oe-shadow-lg); padding: 3.5rem 2rem; text-align: center; }
.oe-thankyou-box h1 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: 1rem; }
.oe-thankyou-box .oe-lead { color: var(--oe-muted); margin-bottom: 2rem; }
.oe-thankyou-icon { width: 76px; height: 76px; border-radius: 50%; background: var(--oe-secondary); color: #fff; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; box-shadow: 0 0 0 10px rgba(56, 167, 222, .15); }
.oe-thankyou-icon svg { width: 36px; height: 36px; }
.oe-404-code { font-size: clamp(4rem, 12vw, 7.5rem); font-weight: 800; line-height: 1; color: var(--oe-secondary); letter-spacing: -.04em; margin-bottom: 1rem; }
.oe-empty { text-align: center; padding: 3rem 1rem; background: var(--oe-soft); border-radius: var(--oe-radius); color: var(--oe-muted); }
.oe-empty .oe-btn { margin-top: .5rem; }

/* Pager ----------------------------------------------------------------- */
.oe-pager .pagination { gap: .4rem; flex-wrap: wrap; justify-content: center; }
.oe-pager .page-link { border-radius: 50% !important; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--oe-border); color: var(--oe-primary); font-weight: 700; }
.oe-pager .page-item.active .page-link { background: var(--oe-primary); border-color: var(--oe-primary); color: #fff; }
.oe-pager .page-link:hover { background: var(--oe-soft); color: var(--oe-secondary-dark); }
.oe-pager .page-item.active .page-link span.d-md-none { display: none !important; }
.oe-pager small { color: var(--oe-muted); margin-top: .75rem; }

/* Sitemap --------------------------------------------------------------- */
.sitemap a { color: var(--oe-primary); }
.sitemap a:hover { color: var(--oe-secondary-dark); }

/* Footer ---------------------------------------------------------------- */
.oe-footer { background: radial-gradient(ellipse 70% 90% at 0 0, rgba(51, 157, 212, .55) 0%, rgba(51, 157, 212, 0) 100%), var(--oe-primary-dark); color: rgba(255, 255, 255, .72); font-size: .93rem; }
.oe-footer-main { padding: 80px 0 56px; position: relative; }
.oe-footer-main::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--oe-primary), var(--oe-secondary), var(--oe-accent)); }
.oe-footer a { color: rgba(255, 255, 255, .8); }
.oe-footer a:hover { color: var(--oe-secondary); }
.oe-footer-logo img { width: 200px; height: auto; margin-bottom: 1.25rem; }
.oe-footer-claim { max-width: 34ch; }
.oe-footer-assoc { display: flex; gap: .75rem; margin-top: 1.5rem; width: 200px; }
.oe-footer-assoc a { flex: 1 1 0; min-width: 0; background: #fff; border-radius: 10px; padding: .5rem .75rem; display: inline-flex; align-items: center; justify-content: center; transition: transform .25s var(--oe-ease); }
.oe-footer-assoc a:hover { transform: translateY(-3px); }
.oe-footer-assoc img { width: 100%; height: 38px; object-fit: contain; }
.oe-footer-title { color: #fff; font-weight: 800; font-size: 1.05rem; margin-bottom: 1.25rem; }
.oe-footer-links { list-style: none; margin: 0; padding: 0; }
.oe-footer-links li { margin-bottom: .55rem; }
.oe-footer-contacts { list-style: none; margin: 0; padding: 0; }
.oe-footer-contacts li { display: flex; gap: .85rem; margin-bottom: 1rem; align-items: flex-start; }
.oe-footer-contacts a { min-width: 0; overflow-wrap: anywhere; }
.oe-footer-contacts svg { width: 18px; height: 18px; color: var(--oe-secondary); margin-top: .2rem; }
.oe-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 1.25rem 0; font-size: .82rem; color: rgba(255, 255, 255, .55); }

/* GDPR bar (come pmpiovan) */
.oe-gdpr-bar { background: #000; padding: 1rem 0; }
.oe-gdpr-bar #cookies-manager-list-of-choices-made { color: #cfd2cb; font-size: .82rem; }
.oe-gdpr-bar #cookies-manager-list-of-choices-made a { color: #cfd2cb; }
@media (max-width: 991.98px) {
  #cookies-manager-list-of-choices-made div { display: inline-block !important; }
}

/* WhatsApp floating + back to top ------------------------------------------ */
.oe-whatsapp-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 1020;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: #fff; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 25px rgba(37, 211, 102, .45);
  transition: transform .25s var(--oe-ease);
}
.oe-whatsapp-float:hover { color: #fff; transform: scale(1.08); }
.oe-whatsapp-float svg { width: 30px; height: 30px; position: relative; z-index: 1; }
.oe-whatsapp-ring { position: absolute; inset: 0; border-radius: 50%; background: #25d366; animation: oe-pulse 2s infinite; }
@keyframes oe-pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.7); opacity: 0; } }
.oe-back-to-top {
  position: fixed; right: 30px; bottom: 96px; z-index: 1020;
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: var(--oe-primary); color: #fff; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--oe-shadow); opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s, visibility .3s, transform .3s var(--oe-ease), background-color .25s;
}
.oe-back-to-top svg { width: 20px; height: 20px; }
.oe-back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.oe-back-to-top:hover { background: var(--oe-secondary); }
body:not(:has(.oe-whatsapp-float)) .oe-back-to-top { bottom: 30px; }
@media (max-width: 575.98px) {
  .oe-whatsapp-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
  .oe-back-to-top { right: 21px; bottom: 82px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Ricerca ---------------------------------------------------------------- */
.oe-search-toggle {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35);
  background: transparent; color: #fff; display: inline-flex; align-items: center; justify-content: center;
  transition: background-color .25s, border-color .25s;
}
.oe-search-toggle svg { width: 20px; height: 20px; }
.oe-search-toggle:hover { background: var(--oe-secondary); border-color: var(--oe-secondary); }
.oe-search-panel {
  position: fixed; inset: 0 0 auto 0; z-index: 1060;
  background: var(--oe-primary); padding: 2.5rem 0; box-shadow: 0 20px 60px rgba(10, 8, 30, .4);
  animation: oe-slide-down .3s var(--oe-ease);
}
.oe-search-panel[hidden] { display: none; }
.oe-search-panel .container { position: relative; padding-right: 72px; }
@keyframes oe-slide-down { from { transform: translateY(-100%); } to { transform: none; } }
.oe-search-close {
  position: absolute; right: calc(var(--bs-gutter-x) * .5); top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35);
  background: transparent; color: #fff; display: inline-flex; align-items: center; justify-content: center;
}
.oe-search-close svg { width: 22px; height: 22px; }
.oe-search-form { display: flex; gap: .75rem; max-width: 820px; }
.oe-search-form input {
  flex: 1; min-width: 0; border: 1px solid var(--oe-border); background: var(--oe-soft);
  border-radius: 999px; padding: .9rem 1.4rem; font-size: 1rem; color: var(--oe-text);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.oe-search-form input:focus { outline: 0; background: #fff; border-color: var(--oe-secondary); box-shadow: 0 0 0 4px rgba(56, 167, 222, .15); }
.oe-search-form-panel { max-width: none; }
.oe-search-form-panel input { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .25); color: #fff; font-size: 1.1rem; }
.oe-search-form-panel input::placeholder { color: rgba(255, 255, 255, .6); }
.oe-search-form-panel input:focus { background: rgba(255, 255, 255, .12); }
@media (max-width: 575.98px) {
  .oe-search-form .oe-btn span { display: none; }
  .oe-search-form .oe-btn { padding: .85rem 1rem; }
  .oe-search-toggle { width: 42px; height: 42px; }
}
.oe-search-summary { margin: 2rem 0 1.5rem; color: var(--oe-muted); }
.oe-search-summary strong { color: var(--oe-primary); }
.oe-search-results { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.oe-search-result {
  display: flex; align-items: center; gap: 1.25rem; padding: 1rem;
  border: 1px solid var(--oe-border); border-radius: var(--oe-radius); background: #fff; color: var(--oe-text);
  transition: box-shadow .3s, transform .3s var(--oe-ease), border-color .3s;
}
.oe-search-result:hover { box-shadow: var(--oe-shadow-lg); transform: translateY(-3px); border-color: transparent; color: var(--oe-text); }
.oe-search-result:hover .oe-section-link-icon { background: var(--oe-secondary); }
.oe-search-result-media { width: 96px; height: 96px; flex: 0 0 96px; border-radius: var(--oe-radius-sm); overflow: hidden; background: var(--oe-soft); }
.oe-search-result-media img { width: 100%; height: 100%; object-fit: cover; }
.oe-search-result-body { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; }
.oe-search-result-title { font-weight: 800; color: var(--oe-primary); font-size: 1.1rem; line-height: 1.3; }
.oe-search-result-text { color: var(--oe-muted); font-size: .92rem; }
@media (max-width: 575.98px) {
  .oe-search-result { align-items: flex-start; }
  .oe-search-result-media { width: 64px; height: 64px; flex-basis: 64px; }
  .oe-search-result .oe-section-link-icon { display: none; }
}
