/* =========================================================
   Il Centro Impresa Sociale — stili del tema a blocchi
   Colori e font principali sono in theme.json
   ========================================================= */

:root {
  --ink: #1d2a22; --ink-soft: #4a574f; --muted: #6b766f;
  --cream: #fbf7ef; --cream-2: #f4eddf; --paper: #fff; --line: #e6dfd0;
  --green: #2f6a43; --green-dark: #1f4a2e; --green-soft: #e3eedf;
  --sun: #f7be36; --sun-soft: #fdf0cc;
  --orange: #c85a1c; --orange-soft: #fbe5d4;
  --red: #a93a2a; --red-soft: #f6e0da;
  --accent: var(--green); --accent-soft: var(--green-soft);
  --radius: 20px; --radius-lg: 32px;
  --shadow: 0 1px 2px rgba(29,42,34,.06), 0 8px 24px -8px rgba(29,42,34,.14);
  --shadow-lg: 0 2px 4px rgba(29,42,34,.05), 0 24px 48px -16px rgba(29,42,34,.22);

  --i-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E");
  --i-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-10 6L2 7'/%3E%3C/svg%3E");
  --i-pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
  --i-clock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E");
  --i-file: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6M9 13h6M9 17h6'/%3E%3C/svg%3E");
  --i-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
}
.theme-anziani { --accent: var(--green); --accent-soft: var(--green-soft); }
.theme-minori  { --accent: var(--orange); --accent-soft: var(--orange-soft); }
.theme-dislo   { --accent: var(--red); --accent-soft: var(--red-soft); }

html { scroll-behavior: smooth; scroll-padding-top: 130px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
a { text-underline-offset: .2em; }
h1, h2, h3, h4 { margin-top: 0; font-variation-settings: "SOFT" 50; }
h1 em, h2 em { font-style: italic; font-weight: 500; color: var(--accent); }

/* Niente spazi tra le fasce colorate */
.wp-site-blocks > * + * { margin-block-start: 0; }
.wp-site-blocks > main, .site-main { margin-block: 0 !important; }
.wp-block-post-content > .alignfull, .wp-block-post-content > .alignfull + * { margin-block-start: 0; }
.wp-block-post-content > .alignfull { margin-block-end: 0; }

/* ---------- Testi ---------- */
.is-style-occhiello {
  display: flex; align-items: center; gap: .6em; margin-bottom: .2rem !important;
  font-size: .8rem !important; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
}
.is-style-occhiello::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; flex: none; }
.is-style-lead { font-size: clamp(1.08rem, 1.5vw, 1.22rem); color: var(--ink-soft); max-width: 62ch; }
.is-style-petali { list-style: none; padding-left: 0; display: grid; gap: 8px; }
.is-style-petali li { position: relative; padding-left: 26px; color: var(--ink-soft); }
.is-style-petali li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 12px; border-radius: 50% 0 50% 0; background: var(--accent); opacity: .85; }
.small-title { font-size: 1.15rem !important; margin-top: 1.4rem !important; }

/* ---------- Pulsanti ---------- */
.wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 52px; border: 2px solid transparent; transition: transform .2s, background-color .2s, color .2s; }
.wp-block-button__link:hover { transform: translateY(-2px); }
.wp-block-button:not([class*="is-style-"]) .wp-block-button__link { box-shadow: 0 6px 18px -6px rgba(47,106,67,.6); }
.wp-block-button.is-style-sole .wp-block-button__link { background: var(--sun); color: var(--ink); }
.wp-block-button.is-style-sole .wp-block-button__link:hover { background: #f2ae12; color: var(--ink); }
.wp-block-button.is-style-contorno .wp-block-button__link { background: transparent; color: var(--ink); border-color: currentColor; }
.wp-block-button.is-style-contorno .wp-block-button__link:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.wp-block-button.is-style-chiaro .wp-block-button__link { background: #fff; color: var(--ink); }
.wp-block-button.is-style-chiaro .wp-block-button__link:hover { background: var(--sun); color: var(--ink); }
.wp-block-button.is-style-accento .wp-block-button__link { background: var(--accent); color: #fff; }
.wp-block-button.is-style-accento .wp-block-button__link:hover { filter: brightness(.9); }
a[href^="tel:"].wp-block-button__link::before { content: ""; width: 1.1em; height: 1.1em; background: currentColor; -webkit-mask: var(--i-phone) center / contain no-repeat; mask: var(--i-phone) center / contain no-repeat; }

/* ---------- Topbar ---------- */
.topbar { background: var(--green-dark); color: #e6efe8; font-size: .875rem; }
.topbar-inner { min-height: 40px; gap: 16px; }
.topbar-contacts { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.topbar a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: .45em; }
.topbar a:hover { color: var(--sun); }
.topbar-contacts a::before { content: ""; width: 15px; height: 15px; background: currentColor; -webkit-mask: var(--i-pin) center / contain no-repeat; mask: var(--i-pin) center / contain no-repeat; }
.topbar-contacts a[href^="tel:"]::before { -webkit-mask-image: var(--i-phone); mask-image: var(--i-phone); }
.topbar-contacts a[href^="mailto:"]::before { -webkit-mask-image: var(--i-mail); mask-image: var(--i-mail); }
.topbar-social { margin: 0 !important; }
@media (max-width: 720px) { .topbar .addr, .topbar-social { display: none !important; } .topbar-inner { justify-content: center !important; } }

/* ---------- Header ---------- */
.site-header-wrap { position: sticky; top: 0; z-index: 50; }
.admin-bar .site-header-wrap { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header-wrap { top: 46px; } }
.site-header { background: var(--cream); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-header-wrap.scrolled .site-header { border-color: var(--line); box-shadow: 0 6px 20px -14px rgba(0,0,0,.25); }
.header-inner { min-height: 84px; gap: 20px; }
.brand { gap: 12px; }
.brand .wp-block-site-logo img { width: 64px; height: auto; }
.brand-text { gap: 0 !important; line-height: 1.1; }
.brand-text .wp-block-site-title { font-family: var(--wp--preset--font-family--display); font-size: 1.35rem; font-weight: 700; letter-spacing: -.01em; margin: 0; }
.brand-text .wp-block-site-title a { color: var(--ink); text-decoration: none; }
.brand-text .wp-block-site-tagline { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 0; }
.header-right { gap: 10px; }

.main-nav { font-weight: 600; font-size: .98rem; gap: 2px !important; }
.main-nav .wp-block-navigation-item__content { padding: 10px 14px !important; border-radius: 999px; text-decoration: none; color: var(--ink); }
.main-nav .wp-block-navigation-item__content:hover,
.main-nav .current-menu-item > .wp-block-navigation-item__content,
.main-nav .current-menu-ancestor > .wp-block-navigation-item__content { background: var(--cream-2); }
.main-nav .current-menu-item > .wp-block-navigation-item__content { color: var(--green); }
.main-nav .wp-block-navigation__submenu-container {
  border: 1px solid var(--line) !important; border-radius: var(--radius); padding: 8px !important; box-shadow: var(--shadow-lg); background: #fff !important; min-width: 260px !important;
}
.main-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { border-radius: 12px; display: block; width: 100%; }
.main-nav .wp-block-navigation__submenu-icon { margin-left: -6px; }
.wp-block-navigation__responsive-container-open, .wp-block-navigation__responsive-container-close { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; }
.wp-block-navigation__responsive-container-open { border: 1px solid var(--line); background: #fff; }
.wp-block-navigation__responsive-container.is-menu-open { padding: 24px clamp(16px, 4vw, 40px) !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { align-items: stretch !important; padding-top: 56px; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { align-items: stretch !important; gap: 4px !important; width: 100%; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 1.25rem; padding: 12px 16px !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container { border: 0 !important; box-shadow: none; background: transparent !important; padding: 0 0 0 16px !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { font-size: 1.05rem; }
@media (max-width: 600px) {
  .header-cta { display: none !important; }
  .header-inner { min-height: 72px; }
  .brand .wp-block-site-logo img { width: 52px; }
}

/* ---------- Sezioni ---------- */
.sec { padding-block: clamp(64px, 9vw, 120px); }
.sec-tight { padding-block: clamp(48px, 6vw, 80px); }
.sec.no-top { padding-top: 0; }
.sec-paper { background: var(--paper); }
.sec-cream2 { background: var(--cream-2); }
.sec-green { background: var(--green-dark); color: #eef4ef; }
.sec-green h2, .sec-green h3 { color: #fff; }
.sec-green .is-style-occhiello { color: var(--sun); }
.sec > h2 { margin-bottom: clamp(28px, 4vw, 48px); }
.sec > .is-style-lead + .is-style-lead { margin-top: .4em; }
.sec > .is-style-lead:last-of-type { margin-bottom: clamp(28px, 4vw, 48px); }

/* ---------- Hero home ---------- */
.hero { padding-block: clamp(40px, 6vw, 88px) clamp(56px, 8vw, 110px); overflow: hidden; }
.hero-cols { gap: clamp(32px, 5vw, 72px) !important; }
.hero h1 em { color: var(--green); position: relative; white-space: nowrap; z-index: 0; }
.hero h1 em::after { content: ""; position: absolute; left: -2%; right: -2%; bottom: .04em; height: .22em; background: var(--sun); opacity: .55; z-index: -1; border-radius: 4px; }
.hero .wp-block-buttons { margin-top: 1.6rem; }
.hero-media { position: relative; max-width: 560px; margin-inline: auto; }
.hero-media::before, .hero-media::after { content: ""; position: absolute; border-radius: 50% 0 50% 0; z-index: 0; }
.hero-media::before { width: 38%; aspect-ratio: 1; background: var(--sun); top: -6%; right: -4%; transform: rotate(12deg); }
.hero-media::after { width: 22%; aspect-ratio: 1; background: var(--green); bottom: 4%; left: -6%; transform: rotate(-20deg); opacity: .9; }
.hero-photo { position: relative; z-index: 1; margin: 0; }
.hero-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 48% 52% 40% 60% / 44% 40% 60% 56%; box-shadow: var(--shadow-lg); }
.hero-badge {
  position: absolute; z-index: 2; left: -4%; bottom: 10%; margin: 0; max-width: 230px;
  background: #fff; border-radius: var(--radius); padding: 14px 20px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 14px;
  font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); line-height: 1.3;
}
.hero-badge strong { font-family: var(--wp--preset--font-family--display); font-size: 2.6rem; line-height: 1; color: var(--green); letter-spacing: 0; }
@media (max-width: 781px) { .hero-badge { left: 0; } }

/* ---------- Card servizi ---------- */
.service-card {
  position: relative; display: flex; flex-direction: column; height: 100%;
  background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card > * { margin: 0 !important; }
.card-num { position: absolute; top: 16px; left: 16px; z-index: 2; background: #fff; color: var(--accent); font-weight: 700; font-size: .85rem; padding: 6px 12px; border-radius: 999px; letter-spacing: .08em; }
.card-photo { overflow: hidden; }
.card-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s; display: block; }
.service-card:hover .card-photo img { transform: scale(1.05); }
.card-body { padding: 0 26px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card-body > * { margin: 0 !important; }
.card-body .badge img { width: 60px; margin-top: -34px; border: 4px solid #fff; border-radius: 18px; position: relative; }
.card-body h3 a { color: var(--ink); text-decoration: none; }
.card-body h3 a:hover { color: var(--accent); }
.card-body p { color: var(--ink-soft); font-size: 1rem; }
.card-hours { margin-top: auto !important; padding-top: 14px; border-top: 1px dashed var(--line); font-size: .92rem !important; display: flex; gap: 8px; }
.card-hours::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; background: var(--accent); -webkit-mask: var(--i-clock) center / contain no-repeat; mask: var(--i-clock) center / contain no-repeat; }
.card-more a, .link-arrow a { font-weight: 700; color: var(--accent); text-decoration: none; display: inline-flex; align-items: center; gap: .4em; }
.card-more a::after { content: ""; width: 1.1em; height: 1.1em; background: currentColor; -webkit-mask: var(--i-arrow) center / contain no-repeat; mask: var(--i-arrow) center / contain no-repeat; transition: transform .2s; }
.card-more a:hover::after { transform: translateX(4px); }

/* ---------- Chi siamo (home) ---------- */
.split { gap: clamp(32px, 6vw, 88px) !important; }
.stack-photos { position: relative; aspect-ratio: 5 / 5.4; max-width: 520px; margin-inline: auto; width: 100%; }
.stack-photos::before { content: ""; position: absolute; width: 96px; height: 96px; border-radius: 50%; background: var(--sun); right: 10%; top: 8%; }
.stack-photos .wp-block-image { position: absolute; margin: 0; }
.stack-photos .wp-block-image img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.stack-photos .sp-1 { width: 68%; height: 74%; top: 0; left: 0; }
.stack-photos .sp-2 { width: 54%; height: 56%; bottom: 0; right: 0; }
.stack-photos .sp-2 img { border: 8px solid var(--cream); }
.areas { list-style: none; padding: 0; display: grid; gap: 10px; margin: 1rem 0 1.6rem; }
.areas a { display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 12px; background: #fff; border-radius: 16px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; transition: border-color .2s, transform .2s; }
.areas a:hover { border-color: var(--green); transform: translateX(4px); }
.areas a::before { content: ""; width: 40px; height: 40px; flex: none; background: url("../img/badge-anziani.svg") center / contain no-repeat; }
.areas li:nth-child(2) a::before { background-image: url("../img/badge-minori.svg"); }
.areas li:nth-child(3) a::before { background-image: url("../img/badge-dislo.svg"); }
.areas a::after { content: ""; margin-left: auto; width: 18px; height: 18px; background: var(--muted); -webkit-mask: var(--i-arrow) center / contain no-repeat; mask: var(--i-arrow) center / contain no-repeat; }

/* ---------- Linea del tempo ---------- */
.timeline { position: relative; }
.timeline::before { content: ""; position: absolute; top: 34px; left: 0; right: 0; height: 2px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.35) 0 8px, transparent 8px 16px); }
.tl-item { position: relative; }
.tl-item > * { margin: 0 !important; }
.tl-dot img, .tl-dot.tl-big { width: 68px; height: 68px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); }
.tl-dot { margin-bottom: 22px !important; }
.tl-big { display: grid; place-items: center; background: var(--sun); color: var(--ink); font-family: var(--wp--preset--font-family--display); font-size: 1.6rem; font-weight: 600; }
.tl-year { font-family: var(--wp--preset--font-family--display); font-size: clamp(2.2rem, 4vw, 3.2rem); color: var(--sun); line-height: 1; font-weight: 600; margin-bottom: 8px !important; }
.tl-text { color: #d5e2d8; font-weight: 600; max-width: 22ch; }
@media (max-width: 1100px) { .timeline::before { display: none; } }

/* ---------- Orari ---------- */
.hours-card { background: #fff; border-radius: var(--radius); padding: 26px; border-top: 6px solid var(--accent); box-shadow: var(--shadow); }
.hours-card > * { margin: 0 !important; }
.hc-head { gap: 12px; margin-bottom: 18px !important; }
.hc-head > * { margin: 0 !important; }
.hc-head .badge img { width: 40px; }
.hc-head h3 { font-size: 1.15rem; }
.hours-row { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); font-weight: 600; color: var(--ink-soft); }
.hours-row + .hours-row { margin-top: 10px !important; }
.hours-row:last-child { border-bottom: 0; padding-bottom: 0; }
.hours-row strong { color: var(--ink); font-variant-numeric: tabular-nums; text-align: right; }

/* ---------- Card gallerie ---------- */
.gallery-card { position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius-lg); overflow: hidden; }
.gallery-card > * { margin: 0 !important; }
.gc-photo { position: absolute !important; inset: 0; }
.gc-photo a, .gc-photo img { display: block; width: 100%; height: 100%; }
.gc-photo img { object-fit: cover; transition: transform .7s; }
.gallery-card:hover .gc-photo img { transform: scale(1.06); }
.gallery-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(15,25,18,.82)); pointer-events: none; }
.gc-small, .gc-title { position: absolute; left: 24px; right: 24px; z-index: 2; pointer-events: none; }
.gc-small { bottom: 64px; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--sun); }
.gc-title { bottom: 22px; font-family: var(--wp--preset--font-family--display); font-size: 1.6rem; font-weight: 600; color: #fff; }
@media (max-width: 700px) { .gallery-card { aspect-ratio: 4 / 3; } }

/* ---------- Documenti ---------- */
.doc { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: border-color .2s, transform .2s, box-shadow .2s; }
.doc:hover { border-color: var(--green); transform: translateY(-4px); box-shadow: var(--shadow); }
.doc > * { margin: 0 !important; }
.doc::before { content: ""; width: 48px; height: 48px; border-radius: 14px; background: var(--green-soft) var(--i-file) center / 24px no-repeat; }
.doc h3 { font-size: 1.2rem; }
.doc-link { margin-top: auto !important; font-size: .85rem; font-weight: 700; }
.doc-link a { color: var(--green); text-decoration: none; }
.doc-link a::after { content: ""; position: absolute; inset: 0; }

/* ---------- Fascia contatti ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--green); color: #fff; padding: clamp(36px, 6vw, 72px) !important; gap: 32px !important; }
.cta-band::before { content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50% 0 50% 0; background: var(--sun); opacity: .16; right: -90px; top: -120px; transform: rotate(18deg); pointer-events: none; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: #dbe9df; max-width: 46ch; margin: 0; }
.cta-buttons { justify-content: flex-end; }
@media (max-width: 781px) { .cta-buttons { justify-content: flex-start; } }

/* ---------- Titolo pagine interne ---------- */
.page-hero { position: relative; overflow: hidden; padding-block: clamp(48px, 7vw, 96px) clamp(40px, 6vw, 72px); }
.page-hero::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: var(--accent-soft); right: -160px; top: -200px; z-index: 0; }
.page-hero > * { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
.page-hero .wp-block-buttons { margin-top: 1.6rem; }
.ph-cols { gap: clamp(28px, 5vw, 64px) !important; }
.ph-text { flex-basis: 55% !important; }
.ph-photo { margin: 0; }
.ph-photo img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.gallery-chips { margin-top: 1.6rem; }

/* ---------- Schede attività ---------- */
.feature { background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.feature > * { margin-block: 0 .7rem !important; }
.feature > :last-child { margin-bottom: 0 !important; }
.feat-n { font-family: var(--wp--preset--font-family--display); font-size: 2.6rem; line-height: 1; color: var(--accent); font-weight: 600; }
.feature h3 { font-size: 1.3rem; }
.feature p { color: var(--ink-soft); }
.aside-layout { gap: 40px !important; }
.aside-col { position: sticky; top: 150px; align-self: flex-start; }
@media (max-width: 781px) { .aside-col { position: static; } }

.info-box { background: var(--accent); color: #fff; border-radius: var(--radius); padding: 28px; }
.info-box > * { margin-block: 0 !important; }
.info-box h3 { color: #fff; font-size: 1.25rem; margin-bottom: 14px !important; }
.info-box .hours-row { color: rgba(255,255,255,.88); border-color: rgba(255,255,255,.25); border-bottom-style: solid; padding-bottom: 10px; border-bottom-width: 1px; }
.info-box .hours-row:last-of-type { border-bottom: 1px solid rgba(255,255,255,.25); padding-bottom: 10px; }
.info-box .hours-row strong { color: #fff; }
.ib-buttons { flex-direction: column; align-items: stretch !important; gap: 10px !important; margin-top: 20px !important; }
.ib-buttons .wp-block-button, .ib-buttons .wp-block-button__link { width: 100%; }
.info-box .is-style-contorno .wp-block-button__link { color: #fff; }
.info-box .is-style-contorno .wp-block-button__link:hover { background: #fff; color: var(--ink); border-color: #fff; }
.rounded-photo img { border-radius: var(--radius-lg); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* ---------- Valori ---------- */
.value { background: #fff; border-radius: var(--radius); padding: 22px; gap: 16px !important; align-items: center !important; border: 1px solid var(--line); }
.value > * { margin: 0 !important; }
.vi { flex: none; width: 52px; height: 52px; border-radius: 50% 0 50% 0; display: grid; place-items: center; font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: 1.2rem; background: var(--green-soft); color: var(--green); }
.value:nth-child(4n+2) .vi { background: var(--sun-soft); color: #8a5e00; }
.value:nth-child(4n+3) .vi { background: var(--orange-soft); color: var(--orange); }
.value:nth-child(4n+4) .vi { background: var(--red-soft); color: var(--red); }
.vt strong { font-family: var(--wp--preset--font-family--display); font-size: 1.15rem; font-weight: 600; line-height: 1.25; }

/* ---------- Testi lunghi ---------- */
.prose, .legal { max-width: 72ch; }
.prose p { font-size: 1.12rem; color: var(--ink-soft); }
.prose strong { color: var(--ink); background: linear-gradient(transparent 62%, var(--sun-soft) 62%); }
.prose .is-style-petali li { background: #fff; padding: 16px 18px 16px 44px; border-radius: 16px; border: 1px solid var(--line); }
.prose .is-style-petali li::before { left: 18px; top: 1.45em; }
.legal h2 { font-size: 1.45rem; margin-top: 2rem; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--ink-soft); }
.legal .updated { margin-top: 2rem; font-size: .9rem; color: var(--muted); }

/* ---------- Gallerie foto ---------- */
.zoom-gallery { gap: 16px !important; }
.zoom-gallery .wp-block-image img { border-radius: 16px; }
.zoom-gallery .wp-block-image a { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 9999; background: rgba(12,18,14,.94); display: none; align-items: center; justify-content: center; padding: 64px 72px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox button { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; cursor: pointer; display: grid; place-items: center; font-size: 26px; line-height: 1; }
.lightbox button:hover { background: rgba(255,255,255,.28); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: #fff; font-size: .9rem; opacity: .8; }
@media (max-width: 640px) { .lightbox { padding: 72px 12px; } .lb-prev, .lb-next { top: auto; bottom: 12px; transform: none; } }

/* ---------- Contatti ---------- */
.contact-card { background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.contact-card > * { margin-block: 0 .5rem !important; }
.contact-card::before { content: ""; display: block; width: 52px; height: 52px; border-radius: 16px; margin-bottom: 14px; background: var(--green-soft) var(--i-pin) center / 26px no-repeat; }
.cc-clock::before { background-image: var(--i-clock); }
.cc-phone::before { background-image: var(--i-phone); }
.cc-mail::before { background-image: var(--i-mail); }
.contact-card h3 { font-size: 1.25rem; }
.contact-card p { color: var(--ink-soft); }
.cc-big, .cc-big a { font-size: 1.25rem; font-weight: 700; color: var(--ink) !important; text-decoration: none; }
.porta { display: inline-block; background: var(--sun); color: var(--ink) !important; font-weight: 800; letter-spacing: .08em; font-size: .85rem; padding: 6px 12px; border-radius: 8px; }
.cc-mails { list-style: none; padding: 0; display: grid; gap: 8px; }
.cc-mails a { font-weight: 600; }
.cc-label { display: block; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.contact-card .wp-block-buttons { margin-top: 14px !important; }
.map-card { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius-lg); min-height: 360px; padding: 32px; margin-top: 20px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; }
.map-card > * { margin-block: 0 .6rem !important; }
.map-bg { position: absolute !important; inset: 0; z-index: -2; margin: 0 !important; }
.map-bg img { width: 100%; height: 100%; object-fit: cover; }
.map-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(31,74,46,.1), rgba(20,40,27,.92)); }
.map-card h3 { color: #fff; font-size: 1.8rem; }
.map-card p { color: #dbe9df; }
.map-card .is-style-occhiello { color: var(--sun); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c9d3cc; padding-top: clamp(56px, 7vw, 88px); font-size: .97rem; }
.site-footer a { color: #e7eee9; text-decoration: none; }
.site-footer a:hover { color: var(--sun); }
.footer-grid { gap: 40px !important; padding-bottom: 40px; }
.footer-brand .wp-block-site-logo img { width: 92px; background: #fff; border-radius: 20px; padding: 8px; }
.footer-brand p { max-width: 34ch; }
.footer-title { font-family: var(--wp--preset--font-family--body) !important; font-size: .78rem !important; letter-spacing: .16em; text-transform: uppercase; color: var(--sun) !important; font-weight: 700 !important; }
.footer-links, .footer-contact { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 4px; background: var(--sun); -webkit-mask: var(--i-pin) center / contain no-repeat; mask: var(--i-pin) center / contain no-repeat; }
.footer-contact .fc-phone::before { -webkit-mask-image: var(--i-phone); mask-image: var(--i-phone); }
.footer-contact .fc-mail::before { -webkit-mask-image: var(--i-mail); mask-image: var(--i-mail); }
.footer-contact .fc-clock::before { -webkit-mask-image: var(--i-clock); mask-image: var(--i-clock); }
.footer-social .wp-social-link { background: rgba(255,255,255,.08) !important; border-radius: 50%; }
.footer-social .wp-social-link a { padding: 10px !important; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 22px; margin: 0 !important; font-size: .85rem; color: #98a69d; }

/* ---------- Pulsante chiama (telefono) ---------- */
.call-fab { display: none; }
@media (max-width: 720px) {
  .call-fab { display: flex; position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; background: var(--green); align-items: center; justify-content: center; box-shadow: 0 10px 30px -6px rgba(31,74,46,.6); }
  .call-fab::before { content: ""; width: 26px; height: 26px; background: #fff; -webkit-mask: var(--i-phone) center / contain no-repeat; mask: var(--i-phone) center / contain no-repeat; }
  .has-modal-open .call-fab { display: none; }
}

/* ---------- Editor: niente posizionamenti che ostacolano la modifica ---------- */
.editor-styles-wrapper .gc-photo, .editor-styles-wrapper .map-bg { position: relative !important; }
.editor-styles-wrapper .gc-small, .editor-styles-wrapper .gc-title { position: relative; left: auto; bottom: auto; }
.editor-styles-wrapper .gallery-card { aspect-ratio: auto; background: var(--ink); padding-bottom: 16px; }
.editor-styles-wrapper .stack-photos { aspect-ratio: auto; }
.editor-styles-wrapper .stack-photos .wp-block-image { position: relative; width: 70% !important; height: auto !important; }
.editor-styles-wrapper .site-header-wrap { position: static; }

/* ---------- Correzioni di allineamento ---------- */
.hero-badge strong { white-space: nowrap; flex: none; }
.sec > .is-style-lead { box-sizing: border-box; max-width: var(--wp--style--global--content-size) !important; padding-right: min(35%, 420px); }
.wp-block-post-content.site-main { margin-top: 0; }
.ph-media { flex-basis: 45% !important; }
.ph-photo, .ph-photo img, .card-photo, .rounded-photo, .rounded-photo img { width: 100%; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { align-items: flex-start !important; text-align: left; width: 100%; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { width: 100%; }
.wp-block-button.is-style-contorno .wp-block-button__link { border: 2px solid currentColor !important; }
