/* Small progressive-enhancement layer generated during the static export.
   All of the site's original inline styling stays untouched — this file only
   covers the handful of things that used to depend on the canvas runtime
   (hover swaps, the services dropdown, the FAQ accordion, the lightbox). */

.md-dropdown { position: relative; }
.md-dropdown-menu {
  position: absolute; top: 100%; left: -20px; min-width: 288px;
  background: #F7F5F0; border: 1px solid rgba(21,20,15,0.14);
  box-shadow: 0 18px 44px rgba(21,20,15,0.14); padding: 6px 0; margin-top: 14px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .22s ease, transform .28s cubic-bezier(.16,.84,.24,1), visibility .22s;
}
.md-dropdown:hover .md-dropdown-menu,
.md-dropdown:focus-within .md-dropdown-menu {
  opacity: 1; visibility: visible; transform: none;
}

[data-reveal] {
  opacity: 0; transform: translateX(-8%);
  transition: opacity 1.15s cubic-bezier(.16,.84,.24,1), transform 1.15s cubic-bezier(.16,.84,.24,1);
}
[data-reveal][data-revealed] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

.faq-item { border-bottom: 1px solid rgba(21,20,15,0.16); }
.faq-item summary {
  list-style: none; display: flex; gap: 20px; align-items: baseline; justify-content: space-between;
  padding: 22px 0; cursor: pointer; font-size: 17px; font-weight: 500; letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .faq-icon {
  font-size: 22px; font-weight: 400; color: #8A6B0E; line-height: 1;
  transition: transform .35s cubic-bezier(.2,.7,.2,1); flex-shrink: 0;
}
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-item p { margin: 0; padding: 0 40px 24px 0; font-size: 15.5px; line-height: 1.72; color: #3D3A33; }
.faq-item.faq-item--dark p { color: rgba(247,245,240,0.7); }

.filter-tab {
  background: transparent; color: #4A4740; border: 1px solid rgba(21,20,15,0.24);
  padding: 11px 18px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; cursor: pointer; font-family: inherit;
}
.filter-tab.is-active { background: #15140F; color: #F7F5F0; border-color: #15140F; }

#lightbox {
  border: 0; padding: 0; background: transparent; max-width: 92vw; max-height: 86vh;
}
#lightbox::backdrop { background: rgba(12,11,8,0.94); }
#lightbox img { display: block; max-width: 92vw; max-height: 86vh; object-fit: contain; }
#lightbox .lightbox-close {
  position: fixed; top: 22px; right: 24px; background: none; border: 1px solid rgba(247,245,240,0.4);
  color: #F7F5F0; width: 44px; height: 44px; font-size: 18px; cursor: pointer;
}

[data-filter-item][hidden] { display: none; }

[data-form-note][hidden] { display: none; }


/* ==== Mobile / tablet layer ================================================
   Markup comes from add_mobile_layer() in build.py. Inline styles of the
   original design need !important to be overridden inside media queries. */

/* The wrapper around top bar + header used to trap `position: sticky`
   (sticky only works inside its parent). display: contents frees it. */
.md-head-wrap { display: contents; }

.md-burger, .md-head-cta, .md-actionbar { display: none; }
.md-menu { display: none; }

@media (max-width: 900px) {
  .js .md-nav { display: none !important; }
  .md-header > div { padding: 10px 20px !important; gap: 12px !important; }
  .md-header > div > a:first-child img { width: 40px !important; height: 40px !important; }

  .js .md-head-cta {
    display: inline-flex; align-items: center; margin-left: auto; min-height: 44px; padding: 0 18px;
    background: #15140F; color: #F7F5F0; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  }
  .js .md-burger {
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    width: 46px; height: 46px; flex-shrink: 0; padding: 0; cursor: pointer;
    background: transparent; border: 1px solid rgba(21,20,15,0.22); color: #15140F;
    -webkit-tap-highlight-color: transparent;
  }
  .md-burger span { display: block; width: 20px; height: 1.6px; background: currentColor; }
  .md-burger:focus-visible, .md-menu-close:focus-visible { outline: 2px solid #8A6B0E; outline-offset: 2px; }

  .md-menu:not([hidden]) {
    position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 100;
    display: flex; flex-direction: column; overflow-y: auto; -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background: #F7F5F0; color: #15140F; padding: 0 20px 28px;
    opacity: 0; -webkit-transform: translateY(-10px); transform: translateY(-10px);
    transition: opacity .22s ease, transform .3s cubic-bezier(.16,.84,.24,1);
  }
  .md-menu.is-open { opacity: 1; -webkit-transform: none; transform: none; }
  .md-menu-top {
    position: -webkit-sticky; position: sticky; top: 0; z-index: 1; background: #F7F5F0;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    min-height: 66px; margin: 0 -20px; padding: 0 20px; border-bottom: 1px solid rgba(21,20,15,0.12);
  }
  .md-menu-brand { display: flex; align-items: center; gap: 12px; color: #15140F; }
  .md-menu-brand img { width: 43px; height: 40px; display: block; }
  .md-menu-brand span { display: grid; gap: 2px; }
  .md-menu-brand strong { font-size: 16px; font-weight: 700; letter-spacing: 0.16em; }
  .md-menu-brand small { font-size: 9px; font-weight: 600; letter-spacing: 0.28em; color: #7A7466; }
  .md-menu-close {
    display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px;
    background: transparent; border: 1px solid rgba(21,20,15,0.22); color: #15140F; cursor: pointer; padding: 0;
  }
  .md-menu-nav { display: flex; flex-direction: column; padding-top: 8px; }
  .md-menu-link {
    display: flex; align-items: center; min-height: 58px; color: #15140F;
    font-size: 24px; font-weight: 600; letter-spacing: -0.02em; border-bottom: 1px solid rgba(21,20,15,0.1);
  }
  .md-menu-link.is-active { color: #8A6B0E; }
  .md-menu-link.is-active::before { content: ""; width: 6px; height: 6px; background: #EFD24A; margin-right: 12px; }
  .md-menu-sub { list-style: none; margin: 0; padding: 6px 0 12px; border-bottom: 1px solid rgba(21,20,15,0.1); }
  .md-menu-sub a {
    display: flex; align-items: center; min-height: 44px; padding-left: 16px;
    border-left: 2px solid rgba(21,20,15,0.12); font-size: 16px; color: #4A4740;
  }
  .md-menu-foot { margin-top: auto; padding-top: 28px; display: grid; gap: 10px; }
  .md-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 14px;
    border: 1px solid #15140F; color: #15140F; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  }
  .md-btn--primary { background: #15140F; color: #F7F5F0; }
  .md-menu-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .md-menu-lang {
    justify-self: start; display: inline-flex; align-items: center; min-height: 44px;
    font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #7A7466;
  }
  .md-menu-note { margin: 0; font-size: 13px; line-height: 1.5; color: #7A7466; }

  /* bigger touch targets in the footer and the breadcrumb */
  .md-footer a { display: inline-block; padding: 8px 0; }
  nav[aria-label="Percorso"] a, nav[aria-label="Breadcrumb"] a { display: inline-block; padding: 10px 0; }
  .md-topbar a { display: inline-block; padding: 10px 0; }
  a[href^="tel:"]:not(.md-btn), a[href^="mailto:"] { display: inline-block; padding-top: 10px !important; padding-bottom: 10px !important; }
  /* "Come lo facciamo" links in the service cards */
  a[style*="margin-top: 18px; font-size: 11.5px"] { min-height: 44px; margin-top: 8px !important; }
}

@media (max-width: 640px) {
  .md-topbar { display: none !important; }
  .md-header > div { padding: 8px 16px !important; }

  /* home numbers: two columns side by side */
  .md-stats { grid-template-columns: 1fr 1fr !important; padding: 0 16px !important; }
  .md-stats > div { padding: 22px 12px 22px 0 !important; border-right: 0 !important; }
  .md-stats > div + div { padding-left: 16px !important; border-left: 1px solid rgba(247,245,240,0.14) !important; }

}

@media (max-width: 900px) {
  .js .md-head-cta { display: none; }
  .js .md-burger { margin-left: auto; }
  /* the floating WhatsApp button covered the hero text: the bar replaces it */
  .md-float-wa { display: none !important; }

  .md-actionbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 75;
    display: grid; grid-template-columns: 1fr 1fr 1.25fr;
    background: #15140F; border-top: 1px solid rgba(239,210,74,0.4);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .md-actionbar a {
    display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 58px;
    color: #F7F5F0; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
    -webkit-tap-highlight-color: transparent;
  }
  .md-actionbar a[href] { display: flex !important; padding: 0 !important; }
  .md-actionbar a + a { border-left: 1px solid rgba(247,245,240,0.14); }
  .md-actionbar a.is-primary { background: #EFD24A; color: #15140F; border-left: 0; }
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
  .md-menu-open .md-actionbar { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .md-menu:not([hidden]) { transition: none; }
}

/* Touch screens of any width (e.g. iPad landscape, which keeps the desktop
   nav): larger tap targets for the small inline links. */
@media (pointer: coarse) {
  .md-footer a { display: inline-block; padding: 8px 0; }
  nav[aria-label="Percorso"] a, nav[aria-label="Breadcrumb"] a { display: inline-block; padding: 10px 0; }
  .md-topbar a { display: inline-block; padding: 10px 0; }
  a[href^="tel:"]:not(.md-btn), a[href^="mailto:"] { display: inline-block; padding-top: 10px !important; padding-bottom: 10px !important; }
  a[style*="margin-top: 18px; font-size: 11.5px"] { min-height: 44px; margin-top: 8px !important; }
  a[href*="maps.google.com"] { display: inline-block; padding: 12px 0; }
  .md-nav > a, .md-nav > .md-dropdown > a { padding-top: 12px !important; padding-bottom: 12px !important; }
  .md-actionbar a[href] { padding: 0 !important; }
}

/* Contatti / Contact: the 3 steps ("Rispondiamo entro un giorno" …).
   Side by side they use vertical dividers; once they stack (below ~805px,
   where the grid can no longer fit 3 columns) those dividers turned into
   boxes around steps 02 and 03. Stacked: one column, horizontal lines only. */
@media (max-width: 805px) {
  div[style*="grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 0; border-top: 1px solid rgba(247,245,240,0.2)"] {
    grid-template-columns: 1fr !important;
  }
  div[style^="padding: 28px; border-left: 1px solid rgba(247,245,240,0.2)"],
  div[style^="padding: 28px 0 34px 28px; border-left: 1px solid rgba(247,245,240,0.2)"],
  div[style^="padding: 28px 28px 34px 0; border-bottom: 1px solid rgba(247,245,240,0.2)"] {
    border-left: 0 !important;
    padding: 28px 0 32px !important;
  }
}

/* Home: "Come lavoriamo" 4 steps (Sopralluogo … Consegna). Same issue as
   Contatti: the vertical dividers only make sense with 4 columns.
   Tablet: 2 columns, divider only between them. Phone: 1 column, no box. */
@media (max-width: 1015px) {
  div[style*="grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; border-top: 1px solid #15140F"] {
    grid-template-columns: 1fr 1fr !important;
  }
  div[style*="grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; border-top: 1px solid #15140F"] > div:nth-child(odd) {
    border-left: 0 !important; padding: 32px 28px 40px 0 !important;
  }
  div[style*="grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; border-top: 1px solid #15140F"] > div:nth-child(even) {
    border-left: 1px solid rgba(21,20,15,0.14) !important; padding: 32px 0 40px 28px !important;
  }
  div[style*="grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; border-top: 1px solid #15140F"] > div:nth-child(n+3) {
    border-top: 1px solid rgba(21,20,15,0.14);
  }
}
@media (max-width: 640px) {
  div[style*="grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; border-top: 1px solid #15140F"] {
    grid-template-columns: 1fr !important;
  }
  div[style*="grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; border-top: 1px solid #15140F"] > div:nth-child(n) {
    border-left: 0 !important; border-right: 0 !important; padding: 28px 0 32px !important;
  }
  div[style*="grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; border-top: 1px solid #15140F"] > div:nth-child(n+2) {
    border-top: 1px solid rgba(21,20,15,0.14) !important;
  }
}

/* Privacy / Cookie: the "Titolare del trattamento" card is a sticky sidebar
   on desktop; stacked on small screens it must be a normal full-width block. */
@media (max-width: 900px) {
  aside[style*="position: sticky; top: 110px"] { position: static !important; width: auto !important; max-width: none !important; justify-self: stretch !important; }
}
@media (max-width: 640px) {
  /* "grid-column: span 2" on a stacked grid creates an empty 2nd column that
     steals the gap from the first one (privacy card, service steps) */
  [style*="grid-column: span 2"] { grid-column: auto !important; }
  /* privacy/cookie layout grid: one real column, no phantom second track */
  div[style*="grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(28px, 4vw, 64px); align-items: start"] {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 900px) {
  div[style*="grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(28px, 4vw, 64px); align-items: start"] { grid-template-columns: 1fr !important; }
  div[style*="grid-column: span 2; min-width: 0"] { grid-column: auto !important; }
}

/* ==== Recensioni: "scroll reel" ============================================
   Three columns of tiles: the middle one moves by one step per review, the
   outer ones counter-rotate. Quote enters character by character.
   Movement = CSS transitions set from site.js (no @keyframes marquee). */
.rr {
  --rr-cell: 112px; --rr-gap: 8px;
  position: relative; display: flex; align-items: stretch; gap: 10px;
  margin-top: clamp(36px, 4vw, 56px); min-height: 330px;
  background: #1B1A15; border: 1px solid rgba(247,245,240,0.10);
  outline: none;
}
.rr:focus-visible { box-shadow: 0 0 0 2px #EFD24A; }
.rr-reel { position: relative; width: 380px; flex-shrink: 0; overflow: hidden; }
.rr-reel::before, .rr-reel::after { content: ""; position: absolute; left: 0; right: 0; height: 22%; z-index: 2; pointer-events: none; }
.rr-reel::before { top: 0; background: linear-gradient(#1B1A15, rgba(27,26,21,0)); }
.rr-reel::after { bottom: 0; background: linear-gradient(rgba(27,26,21,0), #1B1A15); }
.rr-cols { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: var(--rr-gap); }
.rr-col { display: flex; flex-direction: column; gap: var(--rr-gap); flex-shrink: 0; will-change: transform; }
.rr-cell {
  display: block; width: var(--rr-cell); height: var(--rr-cell); flex-shrink: 0;
  background: linear-gradient(#22211B, #1D1C17); border: 1px solid rgba(247,245,240,0.07);
}
.rr-feat {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: #15140F; border: 1px solid rgba(239,210,74,0.65);
  box-shadow: 0 18px 36px rgba(0,0,0,0.45), inset 0 1px 0 rgba(239,210,74,0.25);
}
.rr-feat b { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; font-size: 46px; line-height: 1; color: #EFD24A; }
.rr-feat i { font-style: normal; font-size: 10px; letter-spacing: 3px; color: #EFD24A; }
.rr-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 40px 36px 32px 20px; }
.rr-qicon { display: block; width: 44px; height: 44px; fill: rgba(239,210,74,0.35); }
.rr-stage { position: relative; margin-top: 10px; max-width: 520px; overflow: hidden; }
.rr-sizer { visibility: hidden; }
.rr-text { position: absolute; left: 0; right: 0; top: 0; }
.rr-sizer, .rr-text { display: flex; flex-direction: column; gap: 18px; }
.rr-quote { margin: 0; font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; font-size: clamp(19px, 1.9vw, 24px); line-height: 1.38; color: #F7F5F0; }
.rr-author { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: #F7F5F0; }
.rr-author span { font-weight: 400; letter-spacing: 0.06em; text-transform: none; color: rgba(247,245,240,0.55); font-size: 13px; }
.rr-controls { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.rr-btn {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0; cursor: pointer;
  background: transparent; border: 1px solid rgba(247,245,240,0.22); color: #F7F5F0;
  transition: border-color .2s ease, background .2s ease; -webkit-tap-highlight-color: transparent;
}
.rr-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) and (pointer: fine) { .rr-btn:hover { border-color: #EFD24A; background: rgba(239,210,74,0.08); } }
.rr-btn:focus-visible { outline: 2px solid #EFD24A; outline-offset: 2px; }
.rr-count { font-size: 12px; letter-spacing: 0.14em; color: rgba(247,245,240,0.5); font-variant-numeric: tabular-nums; }
.rr-count b { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; font-size: 20px; letter-spacing: 0; color: #EFD24A; }
.rr-exit { animation: rr-exit .24s cubic-bezier(.65,0,.35,1) forwards; }
@keyframes rr-exit { to { opacity: 0; transform: translateY(-12px); } }
.rr-w { display: inline-block; white-space: nowrap; }
.rr-c { display: inline-block; opacity: 0; transform: translateY(0.55em); animation: rr-rise .5s cubic-bezier(.22,1,.36,1) forwards; }
@keyframes rr-rise { to { opacity: 1; transform: none; } }

@media (max-width: 760px) {
  .rr { flex-direction: column; gap: 0; min-height: 0; margin-left: -12px; margin-right: -12px; }
  .rr { --rr-cell: 84px; --rr-gap: 6px; }
  .rr-reel { width: 100%; height: 200px; }
  .rr-reel::before, .rr-reel::after { height: 26%; }
  .rr-feat b { font-size: 34px; }
  .rr-body { padding: 22px 20px 24px; }
  .rr-qicon { width: 34px; height: 34px; }
  .rr-controls { margin-top: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .rr-col { transition: none !important; }
  .rr-exit, .rr-c { animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* Google badge under the reviews heading + the "read all" link as a button */
.rr-badge {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin-top: 22px;
  padding: 12px 18px; border: 1px solid rgba(239,210,74,0.55); background: rgba(239,210,74,0.06); color: #F7F5F0;
  text-decoration: none;
}
.rr-score { font-family: 'DM Serif Display', Georgia, serif; font-size: 30px; line-height: 1; color: #EFD24A; }
.rr-badge-stars { font-size: 16px; letter-spacing: 3px; color: #EFD24A; }
.rr-badge-src { font-size: 13px; letter-spacing: 0.06em; color: rgba(247,245,240,0.75); }
@media (hover: hover) and (pointer: fine) { .rr-badge:hover { background: rgba(239,210,74,0.12); } }
.rr ~ p a[href*="maps.google.com"] {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px !important;
  background: #EFD24A; color: #15140F !important; text-decoration: none !important;
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
}
@media (hover: hover) and (pointer: fine) { .rr ~ p a[href*="maps.google.com"]:hover { background: #F7F5F0; } }

/* Home logo intro: the <head> guard sets .md-intro before first paint; this dark
   cover shows until /assets/intro.js mounts the overlay (.md-intro-on). */
html.md-intro { overflow: hidden; }
html.md-intro:not(.md-intro-on)::after {
  content: ""; position: fixed; inset: 0; z-index: 9999;
  background: radial-gradient(120% 110% at 50% 38%, #24211a 0%, #15130e 58%, #0b0a08 100%);
}

/* ---------------------------------------------------------------------------
   Cookie banner (site.js). "Rifiuta" and "Accetta tutti" share the same style:
   the Garante requires equal prominence for accepting and refusing.
   ------------------------------------------------------------------------- */
.md-cookie {
  position: fixed; left: 20px; bottom: 20px; z-index: 90;
  width: min(460px, calc(100vw - 40px)); max-height: calc(100vh - 40px); overflow-y: auto;
  background: #15140F; color: rgba(247,245,240,0.78);
  border: 1px solid rgba(239,210,74,0.35); border-radius: 4px;
  padding: 22px 22px 18px; box-shadow: 0 18px 50px rgba(0,0,0,0.28);
  font-family: 'DM Sans', Helvetica, Arial, sans-serif; font-size: 13.5px; line-height: 1.6;
}
.md-cookie[hidden] { display: none; }
.md-cookie-title { margin: 0 0 8px; color: #F7F5F0; font-size: 15px; font-weight: 700; letter-spacing: 0.02em; }
.md-cookie-text { margin: 0; }
.md-cookie a { color: #EFD24A; text-decoration: underline; text-underline-offset: 2px; }
.md-cookie-prefs { margin-top: 14px; display: grid; gap: 10px; border-top: 1px solid rgba(247,245,240,0.14); padding-top: 14px; }
.md-cookie-prefs[hidden] { display: none; }
.md-cookie-prefs label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.md-cookie-prefs input { margin-top: 4px; width: 16px; height: 16px; accent-color: #EFD24A; flex: none; }
.md-cookie-prefs strong { color: #F7F5F0; }
.md-cookie-btns { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.md-cookie-btns button {
  min-height: 44px; padding: 8px 10px; border-radius: 2px; cursor: pointer;
  font: 600 12px/1.2 'DM Sans', Helvetica, Arial, sans-serif; letter-spacing: 0.06em; text-transform: uppercase;
  background: #F7F5F0; color: #15140F; border: 1px solid #F7F5F0;
}
.md-cookie-btns button[data-act="custom"], .md-cookie-btns button[data-act="save"] {
  background: transparent; color: #F7F5F0; border-color: rgba(247,245,240,0.4);
}
.md-cookie-btns button[data-act="save"] { background: #EFD24A; color: #15140F; border-color: #EFD24A; }
.md-cookie-btns button:focus-visible, .md-cookie-link:focus-visible { outline: 2px solid #EFD24A; outline-offset: 2px; }
@media (hover: hover) { .md-cookie-btns button:hover { filter: brightness(0.92); } }

/* footer "Preferenze cookie": a button that looks like the links next to it */
.md-cookie-link {
  background: none; border: 0; padding: 0; margin: 0; cursor: pointer;
  font: inherit; color: rgba(247,245,240,0.62);
}
@media (hover: hover) { .md-cookie-link:hover { color: #EFD24A; } }

@media (max-width: 900px) {
  /* sits above the Chiama / WhatsApp / Preventivo bar */
  .md-cookie { left: 10px; right: 10px; width: auto; bottom: calc(58px + env(safe-area-inset-bottom) + 10px);
    max-height: calc(100vh - 58px - 30px); padding: 18px 16px 14px; }
}
@media (max-width: 420px) {
  .md-cookie-btns { grid-template-columns: 1fr 1fr; }
  .md-cookie-btns button[data-act="custom"], .md-cookie-btns button[data-act="save"] { grid-column: 1 / -1; order: 3; }
}
@media (pointer: coarse) { .md-cookie-link { padding: 8px 0; } }
