/*
Theme Name:  Deltora Servizi
Theme URI:   https://deltora.it
Description: Tema custom per Deltora Servizi SRL — consulenza per il settore funerario. Compatibile con Pagelayer Pro.
Author:      Retro Consulting Group
Author URI:  https://rcginnova.com
Version:     1.3.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
Text Domain: deltora
License:     Proprietary
*/

/* ==========================================
   FONT FACES
   Caricare i file woff2 in /wp-content/uploads/fonts/
   poi decommentare queste regole:
========================================== */
/*
@font-face {
  font-family: 'Moonrising';
  src: url('../uploads/fonts/Moonrising.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'FanIste';
  src: url('../uploads/fonts/FanIste-Italic.woff2') format('woff2');
  font-weight: 400 600;
  font-style: italic;
  font-display: swap;
}
*/

/* ==========================================
   CUSTOM PROPERTIES (DESIGN TOKENS)
========================================== */
:root {
  --green:  #73b797;
  --purple: #703c84;
  --navy:   #293a45;
  --azure:  #239bd4;
  --dark:   #212f57;
  --cream:  #f8f7f4;
  --muted:  #8a8a7a;
  --mid:    #5e7b69;
  --h-pad:  max(28px, calc((100% - 1200px) / 2));
  --font-display: 'Moonrising', 'Cormorant Garamond', Georgia, serif;
  --font-italic:  'FanIste', 'Cormorant Garamond', Georgia, serif;
  --font-body:    system-ui, -apple-system, sans-serif;
}

/* ==========================================
   RESET & BASE
========================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: #1d1d1b;
  -webkit-font-smoothing: antialiased;
}
body.drawer-open { overflow: hidden; touch-action: none; }
a { text-decoration: none; color: inherit; }
img, svg { max-width: 100%; display: block; }

/* ==========================================
   FONT HELPER CLASSES
========================================== */
.f-hero { font-family: var(--font-display); font-weight: 500; font-style: normal; }

h2,
.hub-title, .panel-h2, .chisiamo-title, .cta-bar-h2,
.news-h2, .hub-h1, .storia-h1, .panoptes-title,
.brand-quote, .panel-lead, .hero-logo-sub {
  font-family: var(--font-italic);
  font-style: italic;
}

/* ==========================================
   NAV (DESKTOP)
========================================== */
.deltora-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--h-pad);
  background: #fff;
  border-bottom: 1px solid #e8e4dc;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 200;
}
.deltora-nav .nav-logo { flex-shrink: 0; line-height: 0; }
.deltora-nav .nav-logo svg { height: 28px; width: auto; }
.nav-links { display: flex; gap: 18px; font-size: 14.5px; color: var(--mid); flex-wrap: wrap; }
.nav-links a { color: inherit; transition: color .15s; }
.nav-links a:hover { color: var(--navy); }
.nav-links a.current-menu-item,
.nav-links a[aria-current="page"] {
  color: var(--navy) !important;
  border-bottom: 1.5px solid var(--green);
  padding-bottom: 1px;
}
.nav-ext { color: var(--muted) !important; }
.nav-cta {
  background: var(--purple);
  color: #fff;
  padding: 8px 18px;
  border-radius: 4px;
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background .2s;
}
.nav-cta:hover { background: #5e3270; color: #fff; }

/* ==========================================
   HAMBURGER BUTTON (mobile only)
========================================== */
.nav-burger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 10px 8px;
  cursor: pointer;
  z-index: 301;
  flex-shrink: 0;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 1px;
  transition: transform .28s cubic-bezier(.4,0,.2,1), opacity .2s;
  transform-origin: center;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: #fff; }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: #fff; }

/* ==========================================
   MOBILE DRAWER
========================================== */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--purple);
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.2,.8,.2,1);
  visibility: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-drawer[aria-hidden="false"] { transform: translateX(0); visibility: visible; }
.mobile-drawer:focus { outline: none; }
.mobile-drawer-inner { min-height: 100%; display: flex; flex-direction: column; padding: 0; }
.mobile-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  flex-shrink: 0;
}
.mobile-drawer-logo { line-height: 0; display: block; }
.mobile-drawer-logo svg { height: 32px; width: auto; filter: brightness(0) invert(1); }
.mobile-drawer-close {
  background: none;
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  border-radius: 50%;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  flex-shrink: 0;
}
.mobile-drawer-close:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.55); }
.mobile-drawer-nav { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 20px 28px; }
.mobile-drawer-link {
  font-family: var(--font-italic);
  font-size: 30px;
  font-weight: 500;
  font-style: italic;
  color: #fff;
  line-height: 1.3;
  padding: 11px 0;
  border-bottom: 0.5px solid rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: color .15s;
}
.mobile-drawer-link:hover,
.mobile-drawer-link:focus-visible { color: #d9ecd9; }
.mobile-drawer-link[aria-current="page"] { color: var(--green); }
.mobile-drawer-link[aria-current="page"]::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
  flex-shrink: 0;
}
.mobile-drawer-section-label {
  font-family: var(--font-body);
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin: 22px 0 4px;
  font-weight: 500;
}
.mobile-drawer-link-ext {
  font-family: var(--font-italic);
  font-size: 22px;
  font-style: italic;
  color: rgba(255,255,255,.75);
  padding: 9px 0;
  border-bottom: 0.5px solid rgba(255,255,255,.1);
  transition: color .15s;
}
.mobile-drawer-link-ext:hover,
.mobile-drawer-link-ext:focus-visible { color: #fff; }
.mobile-drawer-foot { padding: 24px 24px 32px; flex-shrink: 0; }
.mobile-drawer-cta {
  display: block;
  background: var(--green);
  color: #fff;
  text-align: center;
  padding: 14px 20px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .02em;
  transition: background .2s, transform .15s;
}
.mobile-drawer-cta:hover,
.mobile-drawer-cta:focus-visible { background: #5a9a80; color: #fff; }
.mobile-drawer-cta:active { transform: scale(.98); }
.mobile-drawer-info {
  text-align: center;
  font-size: 11.5px;
  color: rgba(255,255,255,.5);
  margin-top: 14px;
  line-height: 1.7;
  letter-spacing: .02em;
}

/* ==========================================
   BREADCRUMB
========================================== */
.deltora-breadcrumb {
  padding: 13px var(--h-pad);
  background: #fff;
  border-bottom: 1px solid #e8e4dc;
  font-size: 13.5px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.deltora-breadcrumb a { color: var(--mid); }
.deltora-breadcrumb .sep { color: #c8d4d0; }

/* ==========================================
   ANIMATIONS (hero delta SVG)
========================================== */
@keyframes dxDrawTri  { 0%{stroke-dashoffset:1000;opacity:0}4%{opacity:1}42%{stroke-dashoffset:0;opacity:1}58%{stroke-dashoffset:0;opacity:0}59%{stroke-dashoffset:1000;opacity:0}100%{stroke-dashoffset:1000;opacity:0} }
@keyframes dxDrawLid  { 0%,18%{stroke-dashoffset:1000;opacity:0}22%{opacity:1}50%{stroke-dashoffset:0;opacity:1}60%{opacity:0}61%{stroke-dashoffset:1000;opacity:0}100%{stroke-dashoffset:1000;opacity:0} }
@keyframes dxDrawIris { 0%,28%{stroke-dashoffset:1000;opacity:0}33%{opacity:1}56%{stroke-dashoffset:0;opacity:1}62%{opacity:0}63%{stroke-dashoffset:1000;opacity:0}100%{stroke-dashoffset:1000;opacity:0} }
@keyframes dxDrawGaze { 0%,42%{stroke-dashoffset:1000;opacity:0}46%{opacity:1}61%{stroke-dashoffset:0;opacity:1}66%{opacity:0}67%{stroke-dashoffset:1000;opacity:0}100%{stroke-dashoffset:1000;opacity:0} }
@keyframes dxFillTri  { 0%,40%{opacity:0}54%{opacity:.93}82%{opacity:.93}88%{opacity:0}100%{opacity:0} }
@keyframes dxFillLid  { 0%,48%{opacity:0}59%{opacity:.76}82%{opacity:.76}88%{opacity:0}100%{opacity:0} }
@keyframes dxFillIris { 0%,54%{opacity:0}63%{opacity:.56}82%{opacity:.56}88%{opacity:0}100%{opacity:0} }
@keyframes dxFillGaze { 0%,60%{opacity:0}68%{opacity:.9}82%{opacity:.9}88%{opacity:0}100%{opacity:0} }
@keyframes dxDepth4   { 0%,52%{opacity:0}62%{opacity:.09}82%{opacity:.09}88%{opacity:0}100%{opacity:0} }
@keyframes dxDepth3   { 0%,52%{opacity:0}62%{opacity:.15}82%{opacity:.15}88%{opacity:0}100%{opacity:0} }
@keyframes dxDepth2   { 0%,52%{opacity:0}62%{opacity:.22}82%{opacity:.22}88%{opacity:0}100%{opacity:0} }
@keyframes dxDepth1   { 0%,52%{opacity:0}62%{opacity:.35}82%{opacity:.35}88%{opacity:0}100%{opacity:0} }
@keyframes fadePanel  { from{opacity:0;transform:translateY(-8px)} to{opacity:1;transform:translateY(0)} }

/* ==========================================
   HOME — HERO
========================================== */
.hero {
  background: linear-gradient(135deg, var(--green) 0%, #5a4d90 55%, var(--purple) 100%);
  padding: 72px var(--h-pad) 64px;
  display: flex;
  align-items: center;
  gap: 16px;
  overflow: hidden;
  position: relative;
}
.hero-bg-line { position: absolute; top: -20px; height: 140%; background: rgba(255,255,255,.06); transform: rotate(15deg); }
.hero-text { flex: 1; min-width: 0; position: relative; z-index: 1; }
.hero-claim {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 500;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -.02em;
  font-style: normal;
}
.hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,.76);
  line-height: 1.75;
  max-width: 460px;
  margin: 0 0 32px;
  font-family: var(--font-body);
  font-style: normal;
}
.hero-cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-primary {
  background: #fff;
  color: var(--mid);
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  display: inline-block;
  transition: opacity .2s;
}
.cta-primary:hover { opacity: .88; color: var(--mid); }
.cta-secondary {
  border: 1.5px solid rgba(255,255,255,.45);
  color: #fff;
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 14.5px;
  cursor: pointer;
  background: none;
  display: inline-block;
  transition: border-color .2s;
}
.cta-secondary:hover { border-color: rgba(255,255,255,.75); color: #fff; }
.hero-delta { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; position: relative; z-index: 1; }

/* ==========================================
   HOME — HUB SERVIZI PREVIEW
========================================== */
.hub { padding: 56px var(--h-pad); background: var(--cream); }
.hub-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 34px; }
.hub-label, .panel-eyebrow, .news-eyebrow, .hub-eyebrow, .valore-num { font-style: normal !important; }
.hub-label {
  font-size: 12.5px;
  letter-spacing: .16em;
  color: var(--green);
  font-weight: 500;
  margin-bottom: 7px;
  font-family: var(--font-body);
}
.hub-title { font-size: 42px; color: var(--navy); font-weight: 500; line-height: 1.25; }
.hub-link { font-size: 13.5px; color: var(--mid); border-bottom: 1px solid var(--green); padding-bottom: 2px; cursor: pointer; }
.hub-link:hover { color: var(--navy); }

/* Service Cards Grid */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.card {
  border-radius: 8px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  height: 100%;
}
.card-circle { position: absolute; top: -20px; right: -20px; width: 80px; height: 80px; border-radius: 50%; }
.card-title  { font-size: 17px; font-weight: 500; color: #fff; margin-bottom: 8px; font-family: var(--font-body); font-style: normal; }
.card-desc   { font-size: 13.5px; line-height: 1.65; font-family: var(--font-body); font-style: normal; }
.card-blue   { background: var(--azure); }
.card-blue .card-circle  { background: rgba(255,255,255,.08); }
.card-blue .card-desc    { color: rgba(255,255,255,.82); }
.card-purple { background: var(--purple); }
.card-purple .card-circle { background: rgba(255,255,255,.06); }
.card-purple .card-desc   { color: rgba(255,255,255,.7); }
.card-navy   { background: var(--navy); }
.card-navy .card-circle  { background: rgba(255,255,255,.04); }
.card-navy .card-desc    { color: rgba(255,255,255,.65); }
.card-green  { background: var(--green); }
.card-green .card-circle { background: rgba(255,255,255,.08); }
.card-green .card-desc   { color: rgba(255,255,255,.82); }
.card-white  { background: #fff; border: 1.5px solid #c8d8d0; }
.card-white .card-title     { color: var(--navy); }
.card-white .card-desc      { color: var(--muted); }
.card-white .card-ext-arrow { color: rgba(41,58,69,.5); }
.card-tyche  { background: #266364; }
.card-tyche .card-title  { color: #fff; }
.card-tyche .card-desc   { color: rgba(255,255,255,.75); }
.card-tyche .card-badge  { background: rgba(255,255,255,.1); color: rgba(255,255,255,.8); border: none; }
.card-badge {
  font-size: 11px; letter-spacing: .12em; color: var(--mid);
  background: #e8f5ef; border-radius: 3px; padding: 2px 8px;
  font-weight: 500; font-style: normal;
}
.card-ext-link { font-size: 11px; color: var(--muted); border: 1px solid #e0ddd6; border-radius: 3px; padding: 2px 7px; }
.card-ext-arrow { display: block; font-size: 18px; color: rgba(0,0,0,.3); margin-top: 2px; font-style: normal; }

/* Card icon wrap */
.card-icon-wrap {
  width: 96px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 4px;
  flex-shrink: 0;
}
.card-icon-wrap svg { width: 96px; height: auto; display: block; }
.card-icon-wrap img { width: 96px; height: 80px; object-fit: contain; display: block; }

/* Card button */
.card-btn {
  display: block;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: 8px;
  text-align: left;
  transition: transform .2s, box-shadow .2s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.card-btn:hover   { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.card-btn:active  { opacity: .88; }
.card-btn.active  { box-shadow: 0 0 0 3px var(--navy); }

.card-btn--ext,
.card-btn--anchor,
.card-btn--link   { display: block; text-decoration: none; color: inherit; }

/* ==========================================
   HOME — PANOPTES SECTION
========================================== */
.panoptes-section { background: var(--dark); padding: 44px var(--h-pad); display: flex; gap: 28px; align-items: center; }
.panoptes-left { flex: 1; }
.panoptes-label { font-size: 11px; letter-spacing: .18em; color: rgba(255,255,255,.5); font-weight: 500; margin-bottom: 14px; font-style: normal; font-family: var(--font-body); }
.panoptes-title { font-size: 20px; color: #fff; font-weight: 500; margin-bottom: 10px; }
.panoptes-desc  { font-size: 14.5px; color: rgba(255,255,255,.58); line-height: 1.75; margin: 0 0 20px; font-family: var(--font-body); font-style: normal; }
.panoptes-metrics { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.metric-value    { font-size: 20px; color: #ffd103; font-weight: 500; font-style: normal; font-family: var(--font-body); }
.metric-value-sm { font-size: 16px; color: #ffd103; font-weight: 500; line-height: 1.3; font-style: normal; font-family: var(--font-body); }
.metric-label    { font-size: 11px; color: rgba(255,255,255,.4); margin-top: 2px; font-style: normal; }
.metric-divider  { width: 1px; height: 30px; background: rgba(255,255,255,.1); }
.panoptes-right  {
  flex-shrink: 0;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,209,3,.18);
  border-radius: 10px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.panoptes-btn {
  background: rgba(255,209,3,.15);
  color: #ffd103;
  font-size: 12.5px;
  padding: 8px 20px;
  border-radius: 4px;
  font-weight: 500;
  border: 1px solid rgba(255,209,3,.3);
  white-space: nowrap;
  cursor: pointer;
  display: inline-block;
  transition: background .2s;
}
.panoptes-btn:hover { background: rgba(255,209,3,.25); color: #ffd103; }
.accordion-item { border-bottom: 1px solid rgba(255,255,255,.08); }
.accordion-header { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; font-size: 13px; color: rgba(255,255,255,.7); cursor: pointer; list-style: none; font-style: normal; }
.accordion-header::-webkit-details-marker { display: none; }
.accordion-toggle { color: rgba(255,255,255,.4); font-size: 16px; }
.accordion-content { font-size: 12.5px; color: rgba(255,255,255,.45); line-height: 1.65; padding-bottom: 10px; font-style: normal; }

/* ==========================================
   HOME — CHI SIAMO PREVIEW
========================================== */
.chisiamo-section { padding: 52px var(--h-pad); background: var(--green); display: flex; gap: 12px; }
.chisiamo-main { flex: 1.2; background: var(--cream); border-left: 3px solid var(--navy); border-radius: 0 8px 8px 0; padding: 28px; }
.chisiamo-label { font-size: 11px; letter-spacing: .18em; color: var(--green); font-weight: 500; margin-bottom: 12px; font-style: normal; font-family: var(--font-body); }
.chisiamo-title { font-size: 24px; color: var(--navy); font-weight: 500; margin-bottom: 12px; line-height: 1.3; }
.chisiamo-text  { font-size: 16px; color: var(--mid); line-height: 1.8; margin: 0 0 18px; font-style: normal; }
.chisiamo-link  { font-size: 14.5px; color: var(--mid); border-bottom: 1px solid #b8ddc9; padding-bottom: 2px; display: inline-block; font-weight: 500; cursor: pointer; }
.chisiamo-props { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.prop-box { flex: 1; background: var(--cream); border-radius: 8px; padding: 16px; border-left: 2px solid var(--navy); }
.prop-title { font-size: 14.5px; font-weight: 500; color: var(--navy); margin-bottom: 4px; font-style: normal; }
.prop-desc  { font-size: 13.5px; color: var(--muted); font-style: normal; }

/* ==========================================
   CTA BAR
========================================== */
.cta-bar { background: var(--green); padding: 48px var(--h-pad); text-align: center; }
.cta-bar-h2  { font-size: 32px; color: var(--navy); margin-bottom: 8px; font-weight: 500; }
.cta-bar-sub { font-size: 16px; color: rgba(41,58,69,.7); margin-bottom: 28px; font-style: normal; }
.cta-bar-btn { background: var(--navy); color: #fff; padding: 14px 32px; border-radius: 4px; font-size: 15px; font-weight: 500; display: inline-block; transition: background .2s; }
.cta-bar-btn:hover { background: #1e2d38; color: #fff; }
.cta-bar-eyebrow { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; color: rgba(41,58,69,.65); font-family: inherit; font-style: normal; margin: 0; }
.cta-bar-inner { max-width: 920px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.cta-bar-buttons { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; align-items: center; }
.cta-btn-primary,
.cta-btn-secondary {
  padding: 14px 32px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 500;
  font-style: normal;
  display: inline-block;
  text-decoration: none;
  transition: all .2s ease;
  line-height: 1;
  cursor: pointer;
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.cta-btn-primary { background: var(--navy); color: #fff; }
.cta-btn-primary:hover { background: #1c2a33; color: #fff; transform: translateY(-1px); }
.cta-btn-secondary { background: transparent; border-color: rgba(41,58,69,.4); color: var(--navy); }
.cta-btn-secondary:hover { border-color: var(--navy); background: rgba(41,58,69,.08); color: var(--navy); }

/* ==========================================
   CHI SIAMO PAGE
========================================== */
.hero-logo-sec {
  background: #faf9f6;
  padding: 72px var(--h-pad) 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-logo-sec::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(113,60,132,.06) 0%, transparent 70%);
  top: -200px; right: -100px;
}
.hero-logo-sec::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(115,183,151,.07) 0%, transparent 70%);
  bottom: -100px; left: -60px;
}
.hero-logo-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 28px; max-width: 640px; width: 100%; }
.hero-logo-tag   { font-size: 11px; letter-spacing: .2em; color: var(--muted); text-transform: uppercase; font-weight: 500; font-style: normal; }
.hero-logo-divider { width: 40px; height: 1px; background: #c8d8c8; }
.hero-logo-sub   { font-size: 16px; color: var(--mid); letter-spacing: .04em; text-align: center; }
.hero-logo-since { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 6px 16px; border: 1px solid #ddd8d0; border-radius: 20px; font-style: normal; }
.storia-section  { padding: 72px var(--h-pad); background: var(--cream); display: grid; grid-template-columns: 1fr 2fr; gap: 64px; align-items: start; }
.storia-left     { position: sticky; top: 80px; }
.storia-eyebrow  { font-size: 11px; letter-spacing: .2em; color: var(--green); font-weight: 500; text-transform: uppercase; margin-bottom: 14px; font-style: normal; font-family: var(--font-body); }
.storia-h1       { font-family: var(--font-display); font-size: 56px; line-height: 1.08; color: var(--navy); font-weight: 500; margin-bottom: 24px; letter-spacing: -.02em; font-style: normal; }
.storia-year     { font-size: 100px; font-weight: 600; color: rgba(113,60,132,.08); line-height: 1; letter-spacing: -.04em; font-family: 'Cormorant Garamond', Georgia, serif; font-style: normal; }
.storia-text     { font-size: 18px; color: #3a3a32; line-height: 1.85; margin-bottom: 28px; font-style: normal; }
.storia-pillars  { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; margin-top: 40px; }
.pillar          { background: #fff; border-radius: 8px; padding: 20px; border-left: 2px solid var(--navy); }
.pillar-icon     { width: 20px; height: 20px; margin-bottom: 10px; }
.pillar-title    { font-size: 14.5px; font-weight: 600; color: var(--navy); margin-bottom: 4px; font-style: normal; }
.pillar-desc     { font-size: 13.5px; color: var(--muted); line-height: 1.55; font-style: normal; }
.valori-section  { padding: 56px var(--h-pad); background: var(--green); display: flex; gap: 28px; flex-wrap: wrap; }
.valore-box      { flex: 1; min-width: 200px; background: var(--cream); border-radius: 8px; padding: 24px; border-left: 3px solid var(--navy); }
.valore-num      { font-size: 36px; font-weight: 600; color: var(--purple); margin-bottom: 6px; font-family: var(--font-display); }
.valore-title    { font-size: 15px; font-weight: 600; color: var(--navy); margin-bottom: 6px; font-style: normal; }
.valore-desc     { font-size: 13.5px; color: var(--muted); line-height: 1.6; font-style: normal; }

/* ==========================================
   NEWS SECTION
========================================== */
.news-section { padding: 56px var(--h-pad); background: var(--cream); }
.news-header  { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 28px; }
.news-eyebrow { font-size: 11px; letter-spacing: .18em; color: var(--green); font-weight: 500; text-transform: uppercase; margin-bottom: 6px; font-family: var(--font-body); }
.news-h2      { font-size: 26px; color: var(--navy); font-weight: 500; }
.news-link    { font-size: 13.5px; color: var(--mid); border-bottom: 1px solid var(--green); padding-bottom: 2px; cursor: pointer; }
.news-grid    { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.news-card    { background: #fff; border-radius: 8px; overflow: hidden; border: 1px solid #e8e4dc; }
.news-card-img    { height: 140px; display: flex; align-items: center; justify-content: center; }
.news-card-body   { padding: 20px; }
.news-cat         { display: inline-block; font-size: 10.5px; letter-spacing: .1em; font-weight: 600; text-transform: uppercase; padding: 2px 8px; border-radius: 3px; margin-bottom: 10px; font-style: normal; }
.cat-tecnologia   { background: #e4f4fd; color: #1a7aad; }
.cat-normativa    { background: #f0e8f8; color: #6a2d8a; }
.cat-settore      { background: #e8f4ee; color: #3a7a5a; }
.news-card-title  { font-size: 15px; font-weight: 600; color: var(--navy); line-height: 1.4; margin-bottom: 8px; font-style: normal; }
.news-card-excerpt{ font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 14px; font-style: normal; }
.news-card-meta   { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); }
.news-card-read   { color: var(--mid); font-weight: 500; }

/* ==========================================
   SERVIZI PAGE — HUB HERO
========================================== */
.hub-hero { padding: 48px var(--h-pad) 32px; background: var(--cream); }
.hub-hero-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; margin-bottom: 32px; }
.hub-h1   { font-family: var(--font-display); font-size: 40px; color: var(--navy); font-weight: 500; line-height: 1.15; font-style: normal; }
.hub-intro { font-size: 15px; color: var(--muted); line-height: 1.7; max-width: 380px; font-style: normal; }

/* Service Panels */
.svc-panel {
  display: none;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e8e4dc;
  margin-top: 16px;
  animation: fadePanel .25s ease;
}
.svc-panel.active { display: block; }

.panel-header {
  padding: 32px var(--h-pad);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}
.panel-header > div:first-child {
  flex: 0 0 62%;
  max-width: 62%;
}

/* Panel typography — desktop */
.panel-eyebrow  {
  font-size: 13px;
  letter-spacing: .06em;
  font-weight: 600;
  margin-bottom: 10px;
  font-family: var(--font-body);
}
.panel-h2 {
  font-size: 34px;
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 12px;
}
.panel-subtitle {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: .01em;
  margin: 0 0 10px;
  font-style: normal;
  font-family: var(--font-body);
}
.panel-lead {
  font-size: 20px;
  line-height: 1.7;
  font-style: normal;
  font-weight: 500;
  font-family: var(--font-body);
  max-width: 100%;
}

.panel-close {
  flex-shrink: 0;
  background: rgba(0,0,0,.08);
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 6px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--navy);
  transition: background .15s;
}
.panel-close:hover { background: rgba(0,0,0,.15); }
.panel-body { padding: 28px var(--h-pad) 40px; background: #fff; }

/* svc-blocks */
.svc-blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.svc-block  { padding: 20px; border-left: 3px solid #e0ddd6; background: var(--cream); border-radius: 0 8px 8px 0; }
.svc-block-title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--navy); margin-bottom: 8px; font-style: normal; }
.svc-block-icon  { width: 18px; height: 18px; flex-shrink: 0; }
.svc-block-text  { font-size: 13.5px; color: #4a4a42; line-height: 1.7; font-style: normal; }
.svc-list        { margin-top: 10px; padding-left: 16px; font-size: 13px; color: var(--muted); line-height: 1.9; }

/* GDPR accordion */
.topic-item         { border-bottom: 1px solid #e8e4dc; }
.topic-item summary { padding: 14px 0; font-size: 15px; font-weight: 600; color: var(--navy); cursor: pointer; list-style: none; font-style: normal; }
.topic-item summary::-webkit-details-marker { display: none; }
.topic-item[open] summary { color: var(--purple); }
.topic-content      { padding-bottom: 16px; font-size: 13.5px; color: #4a4a42; line-height: 1.75; font-style: normal; }
.topic-content p    { margin-bottom: 10px; }
.topic-content ul   { padding-left: 18px; }
.topic-content li   { margin-bottom: 4px; }
.accordion-section  { border-bottom: 1px solid #e8e4dc; }
.accordion-section summary { display: flex; justify-content: space-between; padding: 14px 0; cursor: pointer; list-style: none; font-size: 15px; font-weight: 600; color: var(--navy); }
.accordion-section summary::-webkit-details-marker { display: none; }
.accordion-body     { padding-bottom: 16px; font-size: 13.5px; color: #4a4a42; line-height: 1.75; }

/* Brand panels */
.brand-intro        { margin-bottom: 28px; }
.brand-quote        { font-size: 20px; color: var(--navy); line-height: 1.5; margin-bottom: 16px; padding-left: 16px; border-left: 3px solid var(--green); }
.brand-text         { font-size: 14.5px; color: #3a3a32; line-height: 1.8; font-style: normal; }
.brand-values       { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.brand-value        { padding: 18px; border-radius: 8px; background: var(--cream); border-left: 3px solid var(--navy); }
.brand-value.green  { border-left-color: var(--green); }
.brand-value.blue   { border-left-color: var(--azure); }
.brand-value-title  { font-size: 14.5px; font-weight: 600; color: var(--navy); margin-bottom: 4px; font-style: normal; }
.brand-value-text   { font-size: 13px; color: var(--muted); line-height: 1.6; font-style: normal; }

#panels-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 24px; color: var(--muted); font-size: 15px; gap: 10px; text-align: center; font-style: normal; }

/* ==========================================
   FOOTER
========================================== */
.deltora-footer { background: var(--purple); color: rgba(255,255,255,.75); font-size: 14px; }
.footer-bridge  { height: 20px; position: relative; }
.footer-bridge-inner { position: absolute; bottom: 0; left: 0; right: 0; height: 20px; background: var(--purple); border-radius: 20px 20px 0 0; }
.footer-top     { display: flex; gap: 40px; padding: 44px var(--h-pad) 32px; flex-wrap: wrap; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-logo-col { flex: 1; min-width: 180px; }
.footer-claim   { margin-top: 16px; font-size: 14px; color: rgba(255,255,255,.55); line-height: 1.6; font-style: italic; font-family: var(--font-italic); }
.footer-contacts { flex: 1; min-width: 180px; }
.footer-contact-label { font-size: 10.5px; letter-spacing: .2em; color: rgba(255,255,255,.4); font-weight: 500; margin-bottom: 10px; font-style: normal; }
.footer-contact-item  { color: rgba(255,255,255,.65); line-height: 1.8; }
.footer-links-col { flex: 1; min-width: 140px; display: flex; flex-direction: column; gap: 10px; }
.footer-link    { color: rgba(255,255,255,.55); cursor: pointer; transition: color .15s; }
.footer-link:hover { color: #fff; }
.footer-contact-section { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; padding: 36px var(--h-pad); }
.footer-map-title,
.footer-form-title  { font-size: 13px; letter-spacing: .14em; font-weight: 500; color: rgba(255,255,255,.45); text-transform: uppercase; margin-bottom: 16px; font-style: normal; }
.footer-map-wrap    { border-radius: 8px; overflow: hidden; }
.footer-map-wrap iframe { display: block; border: 0; }
.footer-form-sub    { font-size: 13px; color: rgba(255,255,255,.45); margin-bottom: 20px; margin-top: -8px; font-style: normal; }
.form-row           { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.form-field         { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.form-label         { font-size: 12px; color: rgba(255,255,255,.5); font-weight: 500; font-style: normal; }
.form-input, .form-textarea, .form-select {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 13.5px;
  color: #fff;
  font-family: var(--font-body);
  width: 100%;
  transition: border-color .15s;
}
.form-input::placeholder, .form-textarea::placeholder { color: rgba(255,255,255,.3); }
.form-input:focus, .form-textarea:focus { outline: none; border-color: rgba(255,255,255,.4); }
.form-select option { background: var(--purple); }
.form-textarea  { min-height: 100px; resize: vertical; }
.form-privacy   { display: flex; align-items: flex-start; gap: 10px; font-size: 12.5px; color: rgba(255,255,255,.5); margin: 10px 0 16px; font-style: normal; }
.form-privacy input[type="checkbox"] { margin-top: 2px; flex-shrink: 0; }
.form-submit    { background: var(--green); color: #fff; border: none; padding: 12px 28px; border-radius: 4px; font-size: 14.5px; font-weight: 500; cursor: pointer; width: 100%; transition: background .2s; }
.form-submit:hover { background: #5a9a80; }
.form-success   { display: none; text-align: center; padding: 24px; background: rgba(255,255,255,.06); border-radius: 8px; color: rgba(255,255,255,.65); font-size: 14px; font-style: normal; }
.deltora-footer .wpforms-form .wpforms-field-label { color: rgba(255,255,255,.5) !important; font-size: 12px !important; }
.deltora-footer .wpforms-form input[type="text"],
.deltora-footer .wpforms-form input[type="email"],
.deltora-footer .wpforms-form input[type="tel"],
.deltora-footer .wpforms-form select,
.deltora-footer .wpforms-form textarea { background: rgba(255,255,255,.08) !important; border: 1px solid rgba(255,255,255,.16) !important; color: #fff !important; border-radius: 4px !important; }
.deltora-footer .wpforms-form .wpforms-submit { background: var(--green) !important; border: none !important; width: 100% !important; padding: 12px !important; border-radius: 4px !important; }
.deltora-footer .wpforms-form .wpforms-submit:hover { background: #5a9a80 !important; }
.footer-bottom  { display: flex; justify-content: space-between; align-items: center; padding: 20px var(--h-pad); border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; flex-wrap: wrap; gap: 8px; }
.footer-vat     { color: rgba(255,255,255,.4); }
.footer-legal   { color: rgba(255,255,255,.3); }

/* ==========================================
   BLOG INDEX — La Rassegna
========================================== */
.blog-index     { max-width: 1200px; margin: 0 auto; padding: 48px 32px 80px; background: transparent; color: var(--navy); }
.blog-head      { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 36px; flex-wrap: wrap; gap: 24px; }
.blog-eyebrow   { font-size: 11px; letter-spacing: .22em; color: var(--green); font-weight: 600; text-transform: uppercase; margin-bottom: 12px; }
.blog-title     { font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-size: clamp(34px, 5vw, 52px); line-height: 1.05; font-weight: 500; color: var(--navy); margin: 0; }
.blog-head-right { max-width: 320px; text-align: right; font-size: 14px; color: var(--muted); line-height: 1.65; padding-bottom: 8px; }
.blog-filters   { display: flex; gap: 8px; margin-bottom: 40px; padding-bottom: 18px; border-bottom: 1px solid #e8e4dc; flex-wrap: wrap; }
.blog-filter    { display: inline-flex; align-items: center; font-size: 12.5px; font-weight: 500; padding: 7px 16px; border-radius: 22px; text-decoration: none; transition: all .2s ease; background: transparent; color: var(--navy); border: 1px solid transparent; }
.blog-filter.is-active          { background: var(--navy); color: #fff; }
.blog-filter.cat-tecnologia     { background: #E6F1FB; color: #185FA5; }
.blog-filter.cat-tecnologia:hover { background: #d3e6f5; }
.blog-filter.cat-normativa      { background: #EEEDFE; color: #3C3489; }
.blog-filter.cat-normativa:hover  { background: #dfdcfc; }
.blog-filter.cat-settore        { background: #EAF3DE; color: #3B6D11; }
.blog-filter.cat-settore:hover    { background: #d5e9bf; }
.blog-filter.cat-default        { background: #f0ede6; color: var(--navy); }
.blog-filter.cat-default:hover    { background: #e6e0d2; }
.blog-filter-count { opacity: .65; font-weight: 400; margin-left: 4px; }
.blog-hero      { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; margin-bottom: 40px; }
.blog-featured  { background: #fff; border-radius: 10px; overflow: hidden; border: 1px solid #e8e4dc; display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.blog-featured:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(41,58,69,.08); }
.blog-featured-img { position: relative; display: block; height: 280px; overflow: hidden; }
.blog-featured-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.blog-featured:hover .blog-featured-img img { transform: scale(1.03); }
.blog-featured-img-placeholder              { background: linear-gradient(135deg, #e6f1fb, #b5d4f4); }
.blog-featured-img-placeholder.cat-bg-tecnologia { background: linear-gradient(135deg, #e6f1fb, #b5d4f4); }
.blog-featured-img-placeholder.cat-bg-normativa  { background: linear-gradient(135deg, #EEEDFE, #cecbf6); }
.blog-featured-img-placeholder.cat-bg-settore    { background: linear-gradient(135deg, #EAF3DE, #c0dd97); }
.blog-featured-img-placeholder.cat-bg-default    { background: linear-gradient(135deg, #f0ede6, #d6cfb8); }
.blog-featured-badge { position: absolute; top: 16px; left: 16px; background: var(--navy); color: #fff; font-size: 10px; letter-spacing: .12em; padding: 4px 12px; border-radius: 3px; font-weight: 500; text-transform: uppercase; }
.blog-featured-img .blog-cat-pill { position: absolute; top: 16px; right: 16px; background: rgba(255,255,255,.93); }
.blog-featured-body   { padding: 24px 28px 28px; flex: 1; display: flex; flex-direction: column; }
.blog-featured-title  { font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-size: 28px; line-height: 1.2; font-weight: 500; margin: 0 0 12px; }
.blog-featured-title a { color: var(--navy); text-decoration: none; transition: color .2s; }
.blog-featured-title a:hover { color: var(--purple); }
.blog-featured-excerpt { font-size: 14.5px; color: var(--muted); line-height: 1.65; margin: 0 0 20px; flex: 1; }
.blog-featured-meta   { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); margin-top: auto; }
.blog-featured-read   { color: var(--green); font-weight: 500; text-decoration: none; transition: color .2s; }
.blog-featured-read:hover { color: var(--navy); }
.blog-secondary { display: flex; flex-direction: column; gap: 18px; }
.blog-compact   { background: #fff; border: 1px solid #e8e4dc; border-left: 3px solid var(--navy); border-radius: 10px; padding: 18px 20px; flex: 1; transition: transform .25s ease, box-shadow .25s ease; }
.blog-compact:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(41,58,69,.06); }
.blog-compact.cat-border-tecnologia { border-left-color: var(--azure); }
.blog-compact.cat-border-normativa  { border-left-color: var(--purple); }
.blog-compact.cat-border-settore    { border-left-color: var(--green); }
.blog-compact-title { font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-size: 19px; line-height: 1.3; font-weight: 500; margin: 12px 0 10px; }
.blog-compact-title a { color: var(--navy); text-decoration: none; transition: color .2s; }
.blog-compact-title a:hover { color: var(--purple); }
.blog-compact-meta  { font-size: 12.5px; color: var(--muted); }
.blog-cat-pill      { display: inline-block; font-size: 10.5px; font-weight: 600; padding: 3px 10px; border-radius: 3px; text-transform: uppercase; letter-spacing: .08em; }
.blog-cat-pill.cat-tecnologia { background: #E6F1FB; color: #185FA5; }
.blog-cat-pill.cat-normativa  { background: #EEEDFE; color: #3C3489; }
.blog-cat-pill.cat-settore    { background: #EAF3DE; color: #3B6D11; }
.blog-cat-pill.cat-default    { background: #f0ede6; color: var(--navy); }
.blog-divider   { display: flex; align-items: center; gap: 18px; margin: 8px 0 20px; }
.blog-divider span { font-size: 11px; letter-spacing: .22em; color: var(--muted); font-weight: 500; text-transform: uppercase; }
.blog-divider hr   { flex: 1; border: none; border-top: 1px solid #e8e4dc; margin: 0; }
.blog-grid      { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.blog-card      { background: #fff; border-radius: 10px; overflow: hidden; border: 1px solid #e8e4dc; display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.blog-card:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(41,58,69,.08); }
.blog-card-img  { display: block; height: 140px; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.blog-card:hover .blog-card-img img { transform: scale(1.04); }
.blog-card-img-placeholder              { background: #f0ede6; }
.blog-card-img-placeholder.cat-bg-tecnologia { background: #E6F1FB; }
.blog-card-img-placeholder.cat-bg-normativa  { background: #EEEDFE; }
.blog-card-img-placeholder.cat-bg-settore    { background: #EAF3DE; }
.blog-card-body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; }
.blog-card-title { font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-size: 17px; line-height: 1.3; font-weight: 500; margin: 10px 0 auto; padding-bottom: 10px; }
.blog-card-title a { color: var(--navy); text-decoration: none; transition: color .2s; }
.blog-card-title a:hover { color: var(--purple); }
.blog-card-meta { font-size: 12px; color: var(--muted); }
.blog-pagination { display: flex; justify-content: center; margin-top: 48px; }
.blog-pagination .page-numbers { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0; }
.blog-pagination .page-numbers li { margin: 0; }
.blog-pagination a,
.blog-pagination span.page-numbers { display: flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 12px; border: 1px solid #e0ddd6; border-radius: 4px; color: var(--muted); font-size: 13px; text-decoration: none; transition: all .2s; background: #fff; }
.blog-pagination a:hover    { border-color: var(--navy); color: var(--navy); }
.blog-pagination .current   { background: var(--navy); color: #fff; border-color: var(--navy); }
.blog-empty { text-align: center; padding: 80px 20px; color: var(--muted); font-size: 16px; font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; }

/* ==========================================
   SINGLE POST - La Rassegna
========================================== */
.single-post-wrap { max-width: 1200px; margin: 0 auto; padding: 48px var(--h-pad) 80px; }
.single-article   { max-width: 780px; margin: 0 auto; }
.single-header    { margin-bottom: 32px; }
.single-header .blog-cat-pill { display: inline-block; margin-bottom: 16px; }
.single-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 500;
  color: var(--navy);
  line-height: 1.1;
  margin: 0 0 14px;
}
.single-meta      { font-size: 13.5px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.single-meta-sep  { color: #c8d4d0; }
.single-thumb     { margin: 0 0 36px; border-radius: 10px; overflow: hidden; aspect-ratio: 16/7; }
.single-thumb-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.single-content   { font-size: 17px; line-height: 1.85; color: #2a2a22; font-style: normal; }
.single-content p         { margin-bottom: 1.4em; }
.single-content h2        { font-size: 26px; font-weight: 500; color: var(--navy); margin: 2em 0 .6em; font-family: 'Cormorant Garamond', serif; font-style: italic; }
.single-content h3        { font-size: 20px; font-weight: 500; color: var(--navy); margin: 1.6em 0 .5em; }
.single-content ul,
.single-content ol        { padding-left: 1.5em; margin-bottom: 1.4em; }
.single-content li        { margin-bottom: .4em; }
.single-content img       { max-width: 100%; border-radius: 8px; margin: 1.6em 0; display: block; }
.single-content blockquote { border-left: 3px solid var(--green); padding: 12px 20px; margin: 1.8em 0; font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 20px; color: var(--navy); background: rgba(115,183,151,.07); border-radius: 0 8px 8px 0; }
.single-content a         { color: var(--mid); border-bottom: 1px solid var(--green); text-decoration: none; }
.single-content a:hover   { color: var(--navy); }
.single-content strong    { font-weight: 600; color: var(--navy); }
.single-content hr        { border: none; border-top: 1px solid #e8e4dc; margin: 2.4em 0; }
.single-footer  { margin-top: 48px; padding-top: 24px; border-top: 1px solid #e8e4dc; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.single-tags    { display: flex; gap: 8px; flex-wrap: wrap; }
.single-tag     { font-size: 12px; color: var(--muted); background: #f0ede6; padding: 4px 10px; border-radius: 4px; text-decoration: none; transition: background .15s; }
.single-tag:hover { background: #e0ddd6; }
.single-back    { font-size: 14px; color: var(--mid); border-bottom: 1px solid var(--green); padding-bottom: 1px; text-decoration: none; font-weight: 500; white-space: nowrap; }
.single-back:hover { color: var(--navy); }
.single-nav     { max-width: 780px; margin: 48px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.single-nav-item { background: #fff; border: 1px solid #e8e4dc; border-radius: 8px; padding: 16px 20px; text-decoration: none; display: flex; flex-direction: column; gap: 6px; transition: border-color .2s, transform .2s; }
.single-nav-item:hover { border-color: var(--green); transform: translateY(-2px); }
.single-nav-next  { text-align: right; }
.single-nav-label { font-size: 11.5px; color: var(--muted); letter-spacing: .04em; }
.single-nav-title { font-size: 14px; font-weight: 500; color: var(--navy); line-height: 1.35; }

/* ==========================================
   LOGHI CLIENTI - Lavoriamo con
========================================== */
.loghi-clienti__eyebrow {
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--green);
  font-weight: 500;
  text-transform: uppercase;
  margin: 0 0 8px;
  font-style: normal;
  font-family: var(--font-body);
}
.loghi-clienti__title {
  font-family: var(--font-italic);
  font-size: 30px;
  font-weight: 500;
  font-style: italic;
  color: var(--navy);
  margin: 0;
  line-height: 1.2;
}

/* ==========================================
   RESPONSIVE — TABLET (max 900px)
========================================== */
@media (max-width: 900px) {
  .deltora-nav .nav-links,
  .deltora-nav .nav-cta   { display: none; }
  .deltora-nav .nav-burger { display: flex; }

  .service-grid    { grid-template-columns: repeat(2, 1fr); }
  .news-grid       { grid-template-columns: repeat(2, 1fr); }
  .storia-section  { grid-template-columns: 1fr; gap: 32px; }
  .storia-left     { position: static; }
  .storia-pillars  { grid-template-columns: 1fr 1fr; }
  .hero-claim      { font-size: 40px; }
  .storia-h1       { font-size: 40px; }
  .hero-delta      { display: none; }
  .svc-blocks      { grid-template-columns: 1fr; }
  .footer-contact-section { grid-template-columns: 1fr; }
  .hub-hero-header { flex-direction: column; gap: 16px; }
  .panoptes-section { flex-direction: column; }
  .chisiamo-section { flex-direction: column; }
  .blog-hero       { grid-template-columns: 1fr; }
  .blog-grid       { grid-template-columns: repeat(2, 1fr); }
  .blog-head       { flex-direction: column; align-items: flex-start; }
  .blog-head-right { text-align: left; max-width: 100%; padding-bottom: 0; }

  /* Panel header — mobile: full width, no flex constraint */
  .panel-header > div:first-child {
    flex: 1 1 auto;
    max-width: calc(100% - 48px);
  }
  .panel-eyebrow  { font-size: 12px; }
  .panel-h2       { font-size: 26px; line-height: 1.2; }
  .panel-subtitle { font-size: 15px; }
  .panel-lead     { font-size: 15px; }
}

/* ==========================================
   RESPONSIVE — MOBILE (max 640px)
========================================== */
@media (max-width: 640px) {
  .service-grid   { grid-template-columns: 1fr; }
  .news-grid      { grid-template-columns: 1fr; }
  .storia-pillars { grid-template-columns: 1fr; }
  .brand-values   { grid-template-columns: 1fr; }
  .form-row       { grid-template-columns: 1fr; }
  .hero           { padding: 48px 20px 40px; }
  .hub            { padding: 40px 20px; }
  .footer-top     { flex-direction: column; gap: 24px; }
  .deltora-nav    { padding: 12px 20px; }
  .mobile-drawer-link     { font-size: 26px; }
  .mobile-drawer-link-ext { font-size: 19px; }
  .blog-grid      { grid-template-columns: 1fr; }
  .blog-index     { padding: 32px 20px 60px; }
  .blog-featured-img  { height: 200px; }
  .blog-featured-body { padding: 20px; }
  .blog-featured-title { font-size: 24px; }
  .single-post-wrap { padding: 32px 20px 60px; }
  .single-nav     { grid-template-columns: 1fr; }
  .single-nav-next  { text-align: left; }
  .single-content { font-size: 16px; }

  /* Panel header full width on small screens */
  .panel-header > div:first-child {
    max-width: calc(100% - 44px);
  }
  .panel-h2   { font-size: 22px; }
  .panel-lead { font-size: 14px; }
}

/* ==========================================
   CDA — Consiglio di Amministrazione
   Fascia organigramma nella pagina Chi Siamo.
   Condizionale: visibile solo se il repeater
   ACF contiene almeno un membro.
========================================== */
.cda-section {
  background: #f8f7f4;
  padding: 72px 0 80px;
}
.cda-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}
.cda-header {
  text-align: center;
  margin-bottom: 52px;
}
.cda-eyebrow {
  font-size: .76rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 8px;
  font-style: normal;
  font-family: var(--font-body);
}
.cda-h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--navy);
  margin: 0;
}

/* griglia card — 4 colonne su desktop, ridotte via media query */
.cda-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* singola card */
.cda-card {
  background: #fff;
  border: 1px solid #e8e4dd;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s;
}
.cda-card:hover {
  box-shadow: 0 6px 28px rgba(41,58,69,.09);
}

/* foto */
.cda-photo-wrap {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #f0ede8;
  flex-shrink: 0;
}
.cda-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform .35s ease;
}
.cda-card:hover .cda-photo { transform: scale(1.03); }
.cda-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0ede8 0%, #e8e4dd 100%);
}

/* body testo */
.cda-card-body {
  padding: 18px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.cda-name {
  font-size: .95rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 4px;
  font-style: normal;
}
.cda-role {
  font-size: .72rem;
  color: var(--green);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-style: normal;
}

/* accordion bio */
.cda-accordion {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #ede9e2;
}
.cda-acc-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  text-align: left;
  color: var(--navy);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .03em;
  font-style: normal;
  transition: color .2s;
}
.cda-acc-btn:hover,
.cda-acc-btn[aria-expanded="true"] { color: var(--green); }
.cda-acc-icon {
  margin-left: auto;
  flex-shrink: 0;
  transition: transform .25s ease;
}
.cda-acc-btn[aria-expanded="true"] .cda-acc-icon { transform: rotate(180deg); }

.cda-acc-body {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  font-size: .82rem;
  color: #5a5a4a;
  line-height: 1.7;
  font-style: normal;
  transition: max-height .35s ease, opacity .25s ease, padding-top .25s;
}
.cda-acc-body.is-open {
  max-height: 500px;
  opacity: 1;
  padding-top: 10px;
}
.cda-acc-body p { margin: 0 0 .6em; }
.cda-acc-body p:last-child { margin-bottom: 0; }

/* responsive CDA */
@media (max-width: 860px) {
  .cda-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}
@media (max-width: 480px) {
  .cda-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .cda-card-body { padding: 14px 14px 16px; }
  .cda-section   { padding: 52px 0 60px; }
}
