/* =====================================================================
   Lavagna dei Folletti — frontend
   Prefisso .fdlv (non si scontra con .fdl .fdlb .fdev .fd- già presenti sul sito).
   Usa i font del tema; nessun font o libreria esterna.
===================================================================== */

.fdlv{
  --slate: #24392F; --slate-2: #1B2C23;
  --chalk: #FBF3E1; --chalk-soft: rgba(251,243,225,.82); --chalk-line: rgba(251,243,225,.24);
  --paper: #FBF3E1; --paper-hi: #FFFDF8; --line: #E6DAC2;
  --ink: #1F4030; --ink-soft: #5E5650;
  --green: #329669; --green-dark: #26764F;
  --orange: #EF9921; --orange-deep: #F36E21; --brown: #8F4F04;
  --purple-ink: #4E4285; --gold-ink: #6E4F0E;
  --wood: #9C6A3A; --wood-2: #7A4E27;
  --gut: clamp(12px, 2.4vw, 24px);
  position: relative; font-family: inherit; font-size: 16px; line-height: 1.55; color: var(--ink-soft);
  -webkit-font-smoothing: antialiased;
}
.fdlv *, .fdlv *::before, .fdlv *::after{ box-sizing: border-box; }
.fdlv :where(h2, h3, h4, p, ul, figure){ margin: 0; padding: 0; }
.fdlv :where(ul){ list-style: none; }
.fdlv :where(h2, h3, h4){ font-family: inherit; text-transform: none; letter-spacing: normal; }
.fdlv img{ display: block; max-width: 100%; }
.fdlv svg{ display: block; flex: none; }
.fdlv a, .fdlv a:hover, .fdlv a:focus{ text-decoration: none; }
.fdlv button{ font: inherit; }
.fdlv [hidden]{ display: none !important; }
.fdlv :focus-visible{ outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 8px; }
.fdlv .fdlv-ico{ width: 1.1em; height: 1.1em; }
.fdlv-sr{ position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fdlv-full{ scroll-margin-top: 110px; }
html.fdlv-lock{ overflow: hidden; }

/* ---------- cornice + lavagna ---------- */
.fdlv-wrap{ padding: 0 var(--gut); }
.fdlv-board{
  position: relative; max-width: 1200px; margin: 0 auto; padding: clamp(9px, 1.3vw, 15px); border-radius: 30px;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 2px, transparent 2px 11px),
    repeating-linear-gradient(90deg, rgba(0,0,0,.06) 0 1px, transparent 1px 23px),
    linear-gradient(180deg, #AE7843 0%, var(--wood) 45%, var(--wood-2) 100%);
  box-shadow: 0 30px 60px rgba(31,64,48,.22), inset 0 2px 0 rgba(255,255,255,.28), inset 0 -3px 0 rgba(0,0,0,.18);
}
.fdlv-slate{
  position: relative; overflow: hidden; border-radius: 20px;
  padding: clamp(24px, 4vw, 48px) clamp(16px, 3.4vw, 44px) clamp(34px, 5vw, 60px);
  color: var(--chalk);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(60% 40% at 18% 12%, rgba(255,255,255,.07), transparent 70%),
    radial-gradient(50% 35% at 85% 70%, rgba(255,255,255,.05), transparent 70%),
    linear-gradient(165deg, #2B4538 0%, var(--slate) 45%, var(--slate-2) 100%);
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.22), inset 0 14px 34px rgba(0,0,0,.32);
}
.fdlv-tray{ position: absolute; left: 50%; bottom: 2px; z-index: 2; display: flex; align-items: flex-end; gap: 18px; transform: translateX(-50%); pointer-events: none; }
.fdlv-tray::before{ content: ""; position: absolute; left: -60px; right: -60px; bottom: -2px; height: 8px; border-radius: 4px; background: linear-gradient(#8A5A2E, #6A4220); box-shadow: 0 3px 6px rgba(0,0,0,.25); }
.fdlv-chalkstick{ position: relative; width: 46px; height: 9px; border-radius: 4px; background: linear-gradient(#fff, #E9E2D3); transform: rotate(-4deg); }
.fdlv-eraser{ position: relative; width: 62px; height: 18px; border-radius: 4px; background: linear-gradient(#C1616B 0 55%, #3B2F2A 55%); }
.fdlv .fdlv-peek{ position: absolute; top: -58px; right: clamp(24px, 7vw, 90px); z-index: 3; width: clamp(76px, 9vw, 104px); height: auto; pointer-events: none; filter: drop-shadow(0 8px 10px rgba(0,0,0,.25)); }

/* ---------- testata ---------- */
.fdlv-head{ display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 24px; margin-bottom: clamp(18px, 2.6vw, 26px); }
.fdlv-kicker{ display: flex; width: fit-content; align-items: center; gap: 8px; margin-bottom: 6px !important; color: var(--orange); font-size: 12px; font-weight: 800; letter-spacing: .1em; line-height: 1.3; text-transform: uppercase; }
.fdlv h2.fdlv-month{ position: relative; display: inline-block; color: var(--chalk); font-size: clamp(34px, 5.4vw, 58px); font-weight: 800; line-height: 1; letter-spacing: -.02em; text-shadow: 0 0 1px rgba(251,243,225,.55), 0 0 10px rgba(251,243,225,.08); }
.fdlv-month span{ color: var(--chalk-soft); font-weight: 600; }
.fdlv-squiggle{ display: block; width: 100%; max-width: 260px; height: 14px; margin-top: 8px; }
.fdlv-squiggle path{ fill: none; stroke: var(--orange); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 320; stroke-dashoffset: 320; animation: fdlv-draw 1.1s .3s cubic-bezier(.3,.7,.3,1) forwards; }
@keyframes fdlv-draw{ to{ stroke-dashoffset: 0; } }

.fdlv-nav{ display: flex; align-items: center; gap: 10px; }
.fdlv .fdlv-arrow{
  position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 2px dashed var(--chalk-line); background: rgba(251,243,225,.04); color: var(--chalk);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.fdlv a.fdlv-arrow:hover{ background: rgba(251,243,225,.1); border-color: rgba(251,243,225,.5); color: var(--chalk); }
.fdlv a.fdlv-arrow:active{ transform: scale(.94); }
.fdlv-arrow.is-off{ opacity: .3; }
.fdlv-arrow .fdlv-ico{ width: 20px; height: 20px; }
.fdlv a.fdlv-today, .fdlv a.fdlv-today:hover{ display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border-radius: 999px; background: var(--chalk); color: var(--ink); font-size: 13px; font-weight: 800; }

/* ---------- filtri ---------- */
.fdlv-filters{ display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(22px, 3vw, 32px); }
.fdlv .fdlv-filter{
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px; margin: 0; padding: 8px 16px; border-radius: 999px;
  border: 1.5px solid var(--chalk-line); background: transparent; color: var(--chalk); font-size: 14px; font-weight: 700; line-height: 1.2; cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.fdlv .fdlv-filter:hover{ border-color: rgba(251,243,225,.6); }
.fdlv .fdlv-filter[aria-pressed="true"]{ background: var(--chalk); border-color: var(--chalk); color: var(--ink); }
.fdlv-filter i{ width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.fdlv-filter[data-f="lab"] i{ background: #6FD1A3; }
.fdlv-filter[data-f="event"] i{ background: var(--orange); }
.fdlv-filter[data-f="news"] i{ background: #E9C46A; }

/* ---------- titoli di sezione in gesso ---------- */
.fdlv-sechead{ display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 16px; }
.fdlv .fdlv-sechead h3{ color: var(--chalk); font-size: clamp(19px, 2.2vw, 23px); font-weight: 800; line-height: 1.2; }
.fdlv-sechead p{ color: var(--chalk-soft); font-size: 14px; font-weight: 600; }

/* ---------- novità appese ---------- */
.fdlv-news{ margin-bottom: clamp(26px, 3.6vw, 40px); }
.fdlv-news__row{ display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.fdlv-note{
  position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px 16px 16px; border-radius: 6px 6px 14px 6px;
  background: #F6E7B8; color: var(--ink); box-shadow: 0 10px 18px rgba(0,0,0,.25); transform: rotate(-.6deg);
  transition: transform .3s cubic-bezier(.2,.9,.3,1.3);
}
.fdlv-note:nth-child(2n){ transform: rotate(.7deg); background: #F3DDD0; }
.fdlv-note:hover{ transform: rotate(0) translateY(-3px); }
.fdlv-pin{ position: absolute; top: -9px; left: 50%; width: 18px; height: 18px; border-radius: 50%; transform: translateX(-50%); background: radial-gradient(circle at 35% 35%, #fff 0 18%, var(--fol, var(--orange-deep)) 22%); box-shadow: 0 3px 5px rgba(0,0,0,.35); }
.fdlv-note__pic{ flex: none; width: 54px; height: 54px; border-radius: 14px; overflow: hidden; background: color-mix(in srgb, var(--fol) 22%, #fff); }
.fdlv .fdlv-note__pic img{ width: 100%; height: 100%; object-fit: cover; }
.fdlv .fdlv-note__pic--fol img{ width: 120%; height: auto; max-width: none; margin: 8px 0 0 -10%; object-fit: contain; }
.fdlv-note__body{ min-width: 0; }
.fdlv .fdlv-note__title{ margin-top: 6px !important; color: var(--ink); font-size: 16px; font-weight: 800; line-height: 1.25; }
.fdlv-note p{ margin-top: 3px !important; font-size: 14px; line-height: 1.45; color: #5B4E3F; }
.fdlv-note .fdlv-note__until{ font-weight: 700; color: var(--ink); }

/* ---------- colonne ---------- */
.fdlv-cols{ display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 3.4vw, 40px); align-items: start; }
.fdlv-cols.is-single{ grid-template-columns: minmax(0, 1fr); }
.fdlv-col--week{ padding-right: clamp(0px, 2vw, 28px); border-right: 2px dashed var(--chalk-line); }
.fdlv-cols.is-single .fdlv-col--week{ padding-right: 0; border-right: 0; }
.fdlv-list{ display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 20px; }
.fdlv-nores{ padding: 16px 0; color: var(--chalk-soft); font-size: 15px; font-weight: 600; }

/* ---------- foglietto ---------- */
.fdlv-card{
  position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 16px; border-radius: 6px 6px 16px 16px;
  background: var(--paper); color: var(--ink-soft);
  box-shadow: 0 14px 26px rgba(0,0,0,.28), 0 2px 0 rgba(0,0,0,.08);
  transform: rotate(var(--tilt, -.8deg));
  transition: transform .35s cubic-bezier(.2,.9,.3,1.3), box-shadow .3s ease, opacity .3s ease;
}
.fdlv-list > .fdlv-card:nth-child(2n){ --tilt: .9deg; }
.fdlv-card:hover{ transform: rotate(0) translateY(-5px); box-shadow: 0 22px 36px rgba(0,0,0,.32); }
.fdlv-tape{ position: absolute; z-index: 2; top: -11px; left: 50%; width: 92px; height: 24px; border-radius: 3px; transform: translateX(-50%) rotate(-3deg); background: color-mix(in srgb, var(--fol, var(--orange)) 70%, transparent); }
.fdlv-card__media{ position: relative; flex: none; width: 96px; }
.fdlv-card__pic{ aspect-ratio: 1; overflow: hidden; border-radius: 10px; background: color-mix(in srgb, var(--fol) 18%, var(--paper-hi)); box-shadow: inset 0 0 0 1px rgba(31,64,48,.08); }
.fdlv .fdlv-card__pic img{ width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center top; }
.fdlv-card__pic--fol{ display: grid; place-items: end center; }
.fdlv .fdlv-card__pic--fol img{ width: 100%; height: 112%; object-fit: contain; object-position: center bottom; margin-bottom: -10%; }
.fdlv-card__pic--icon{ display: grid; place-items: center; color: var(--fol, var(--orange)); }
.fdlv-card__pic--icon .fdlv-ico{ width: 42%; height: 42%; }
.fdlv-card__body{ display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 0; }
.fdlv-card__top{ display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.fdlv .fdlv-card__title{ color: var(--ink); font-size: 17px; font-weight: 800; line-height: 1.22; }
.fdlv .fdlv-card__open{
  all: unset; display: inline; color: inherit; font: inherit; text-align: left; cursor: pointer; overflow-wrap: break-word;
}
.fdlv .fdlv-card__open::after{ content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.fdlv .fdlv-card__open:focus-visible{ outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }
.fdlv-card:has(.fdlv-card__open:focus-visible), .fdlv-note:has(.fdlv-card__open:focus-visible){ outline: 3px solid var(--orange); outline-offset: 4px; }
@supports selector(:has(*)){ .fdlv .fdlv-card__open:focus-visible{ outline: none; } }
.fdlv-card__when{ color: var(--ink); font-size: 14px; font-weight: 700; }
.fdlv-card__text{ display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; line-height: 1.5; }
.fdlv-card__foot{ display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: auto; padding-top: 4px; padding-right: 44px; }
.fdlv-more{ display: inline-flex; align-items: center; gap: 4px; color: var(--green-dark); font-size: 13.5px; font-weight: 800; }
.fdlv-more .fdlv-ico{ width: 16px; height: 16px; transition: transform .2s ease; }
.fdlv-card:hover .fdlv-more .fdlv-ico{ transform: translateX(3px); }
.fdlv .fdlv-folletto{ position: absolute; z-index: 2; right: -10px; bottom: -12px; width: 58px; height: auto; pointer-events: none; filter: drop-shadow(0 6px 6px rgba(0,0,0,.28)); transform: rotate(5deg); transition: transform .35s cubic-bezier(.2,.9,.3,1.4); }
.fdlv-card:hover .fdlv-folletto{ transform: rotate(-4deg) translateY(-4px); }

/* orari */
.fdlv-times{ display: grid; gap: 6px; }
.fdlv-times li{ display: flex; align-items: center; gap: 10px; padding: 5px 10px; border-radius: 10px; background: var(--paper-hi); border: 1px solid var(--line); color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.35; }
.fdlv-times b{ min-width: 46px; font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }

/* badge data (sull'angolo dell'immagine) */
.fdlv-date{ flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 52px; height: 56px; padding: 0 8px; border-radius: 14px; color: #fff; line-height: 1; }
.fdlv-date b{ font-size: 22px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
.fdlv-date small{ margin-top: 3px; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.fdlv-date--lab{ background: linear-gradient(160deg, var(--green), var(--green-dark)); }
.fdlv-date--event{ background: linear-gradient(160deg, var(--orange), var(--orange-deep)); }
.fdlv-date--multi{ background: linear-gradient(160deg, #8C7DC0, var(--purple-ink)); }
.fdlv-card .fdlv-date{ position: absolute; z-index: 2; top: -9px; left: -9px; min-width: 44px; height: 46px; padding: 0 6px; border-radius: 12px; box-shadow: 0 6px 12px rgba(0,0,0,.22); }
.fdlv-card .fdlv-date b{ font-size: 18px; }
.fdlv-card .fdlv-date small{ margin-top: 2px; font-size: 9.5px; }
.fdlv-card .fdlv-date--multi b{ font-size: 15px; }
.fdlv .fdlv-date--days b{ font-size: 12px; letter-spacing: 0; }

/* etichette */
.fdlv-tag{ display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .07em; line-height: 1.2; text-transform: uppercase; white-space: nowrap; }
.fdlv .fdlv-tag .fdlv-ico{ width: 14px; height: 14px; }
.fdlv-tag--lab{ background: rgba(50,150,105,.15); color: #1F6644; }
.fdlv-tag--event{ background: rgba(239,153,33,.22); color: var(--brown); }
.fdlv-tag--multi{ background: rgba(122,107,175,.18); color: var(--purple-ink); }
.fdlv-tag--news{ background: rgba(199,150,46,.24); color: var(--gold-ink); }
.fdlv-sub{ color: #6F655F; font-size: 12.5px; font-weight: 700; }
.fdlv-chip{ padding: 4px 10px; border-radius: 999px; background: var(--paper-hi); border: 1px solid var(--line); color: var(--ink); font-size: 12.5px; font-weight: 700; line-height: 1.3; }
.fdlv-chip.is-hot{ background: rgba(239,153,33,.2); border-color: transparent; color: var(--brown); font-weight: 800; }

/* concluso */
.fdlv-card.is-past{ opacity: .74; }
.fdlv-card.is-past .fdlv-card__pic img{ filter: grayscale(.85); }
.fdlv-stamp{ margin-left: auto; padding: 2px 8px; border: 2px solid #9B8F84; border-radius: 6px; color: #6F655F; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; transform: rotate(4deg); background: rgba(251,243,225,.9); }

/* mese vuoto */
.fdlv-empty{ display: flex; align-items: center; gap: 18px; padding: 22px; border: 2px dashed var(--chalk-line); border-radius: 18px; color: var(--chalk); }
.fdlv .fdlv-empty img{ width: 80px; height: auto; flex: none; }
.fdlv-empty b{ display: block; font-size: 17px; font-weight: 800; }
.fdlv-empty span{ color: var(--chalk-soft); font-size: 14.5px; }

/* ---------- scheda a comparsa (dialog) ---------- */
.fdlv-detail{ display: none; }
.fdlv .fdlv-modal{
  width: min(980px, calc(100% - 32px)); max-width: none; max-height: min(88vh, 760px); margin: auto; padding: 0; border: 0;
  border-radius: 10px 10px 24px 24px; background: var(--paper); color: var(--ink-soft); overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,.4);
}
.fdlv .fdlv-modal[open]{ animation: fdlv-pop .35s cubic-bezier(.2,.9,.3,1.2) both; }
.fdlv .fdlv-modal::backdrop{ background: rgba(18,30,24,.62); backdrop-filter: blur(3px); }
@keyframes fdlv-pop{ from{ opacity: 0; transform: translateY(24px) scale(.97) rotate(-1deg); } }
.fdlv-modal__sheet{ position: relative; }
.fdlv-modal__content{ display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); max-height: min(88vh, 760px); }
.fdlv-modal__media{ position: relative; display: grid; place-items: center; padding: 22px; background: color-mix(in srgb, var(--fol) 14%, var(--paper-hi)); }
/* larghezza esplicita: WordPress usa sizes="auto" sulle immagini lazy */
.fdlv .fdlv-modal__media img{ width: 100%; height: auto; max-height: calc(min(88vh, 760px) - 44px); object-fit: contain; filter: drop-shadow(0 16px 22px rgba(31,64,48,.2)); }
.fdlv .fdlv-modal__media--fol img{ width: min(100%, 320px); max-height: 360px; filter: drop-shadow(0 12px 14px rgba(0,0,0,.18)); }
.fdlv-modal__media--icon{ color: var(--fol); }
.fdlv-modal__media--icon .fdlv-ico{ width: 30%; height: auto; aspect-ratio: 1; }
.fdlv-modal__body{ display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 3.4vw, 40px); overflow-y: auto; overscroll-behavior: contain; }
.fdlv .fdlv-modal__title{ padding-right: 40px; color: var(--ink); font-size: clamp(26px, 3.4vw, 34px); font-weight: 800; line-height: 1.12; letter-spacing: -.01em; }
.fdlv-modal__when{ display: flex; align-items: flex-start; gap: 14px; padding: 12px 14px; border-radius: 16px; background: var(--paper-hi); border: 1px solid var(--line); }
.fdlv-modal__when > div{ display: grid; gap: 6px; min-width: 0; }
.fdlv-modal__when strong{ display: block; color: var(--ink); font-size: 16px; font-weight: 800; line-height: 1.3; }
.fdlv-modal__when span{ font-size: 14px; }
.fdlv-modal__until{ color: var(--ink); font-weight: 700; }
.fdlv-datelist{ display: grid; gap: 2px; color: var(--ink); font-size: 14.5px; font-weight: 700; }
.fdlv-datelist li.is-past{ color: #8A8078; font-weight: 600; text-decoration: line-through; }
.fdlv-modal__desc{ font-size: 15.5px; line-height: 1.7; }
.fdlv-modal__desc p + p, .fdlv-modal__desc ul{ margin-top: 10px !important; }
.fdlv-modal__desc ul{ padding-left: 20px; list-style: disc; }
.fdlv-modal__desc a{ color: var(--green-dark); text-decoration: underline; }
.fdlv-chips{ display: flex; flex-wrap: wrap; gap: 6px; }
.fdlv-fol{ display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 16px; background: color-mix(in srgb, var(--fol) 14%, var(--paper-hi)); }
.fdlv .fdlv-fol img{ width: 52px; height: 52px; object-fit: contain; }
.fdlv-fol b{ display: block; color: var(--ink); font-size: 14.5px; font-weight: 800; }
.fdlv-fol span{ font-size: 13px; }
.fdlv a.fdlv-btn, .fdlv a.fdlv-btn:hover, .fdlv a.fdlv-btn:focus{
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; align-self: flex-start; min-height: 48px; padding: 13px 22px;
  border-radius: 14px; background: var(--orange-deep); color: #fff; font-weight: 800; font-size: 15px; line-height: 1.2;
  transition: transform .2s ease, box-shadow .2s ease;
}
.fdlv a.fdlv-btn:hover{ transform: translateY(-2px); box-shadow: 0 10px 22px rgba(243,110,33,.32); }
.fdlv .fdlv-modal__close{ position: absolute; z-index: 3; top: 12px; right: 12px; display: grid; place-items: center; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: rgba(255,253,248,.94); color: var(--ink); cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,.12); }
.fdlv-modal__close .fdlv-ico{ width: 20px; height: 20px; }

/* ---------- versione mini (home) ---------- */
.fdlv-mini .fdlv-slate{ display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); gap: clamp(20px, 3vw, 36px); align-items: center; padding: clamp(22px, 3vw, 36px) clamp(18px, 3vw, 40px) clamp(30px, 3.6vw, 44px); }
.fdlv .fdlv-mini__title{ color: var(--chalk); font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; line-height: 1.08; letter-spacing: -.01em; }
.fdlv-mini__text{ margin-top: 10px !important; color: var(--chalk-soft); font-size: 15px; line-height: 1.55; }
.fdlv a.fdlv-mini__cta, .fdlv a.fdlv-mini__cta:hover{ display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; min-height: 46px; padding: 12px 18px; border-radius: 14px; background: var(--chalk); color: var(--ink); font-size: 14.5px; font-weight: 800; transition: transform .2s ease; }
.fdlv a.fdlv-mini__cta:hover{ transform: translateY(-2px); }
.fdlv-mini__cta .fdlv-ico{ width: 18px; height: 18px; }
.fdlv-mini__list{ grid-template-columns: minmax(0, 1fr); gap: 16px; }
.fdlv-mini .fdlv-card__media{ width: 72px; }
.fdlv-mini .fdlv-card{ --tilt: -.35deg; }
.fdlv-mini .fdlv-list > .fdlv-card:nth-child(2n){ --tilt: .35deg; }
.fdlv-mini .fdlv .fdlv-folletto, .fdlv-mini .fdlv-folletto{ width: 50px; }
.fdlv-mini .fdlv-card__text, .fdlv-mini .fdlv-chip:not(.is-hot), .fdlv-mini .fdlv-times{ display: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px){
  .fdlv-cols{ grid-template-columns: minmax(0, 1fr); }
  .fdlv-col--week{ order: 2; padding-right: 0; border-right: 0; padding-top: clamp(24px, 4vw, 34px); border-top: 2px dashed var(--chalk-line); }
  .fdlv-mini .fdlv-slate{ grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px){
  .fdlv-card{ --tilt: -.4deg; gap: 12px; padding: 14px; }
  .fdlv-list > .fdlv-card:nth-child(2n){ --tilt: .4deg; }
  .fdlv-card__media{ width: 78px; }
  .fdlv-head{ align-items: flex-start; }
  .fdlv-nav{ width: 100%; justify-content: space-between; }
  .fdlv-filters{ flex-wrap: nowrap; overflow-x: auto; margin-left: -4px; padding: 2px 4px 6px; scrollbar-width: none; }
  .fdlv .fdlv-filter{ flex: none; }
  .fdlv .fdlv-peek{ top: -44px; width: 70px; }
  .fdlv .fdlv-modal{ width: 100%; max-height: 92dvh; margin: auto 0 0; border-radius: 24px 24px 0 0; }
  .fdlv-modal__content{ grid-template-columns: minmax(0, 1fr); max-height: 92dvh; overflow-y: auto; }
  .fdlv-modal__media{ padding: 18px 18px 0; }
  .fdlv .fdlv-modal__media img{ max-height: 38vh; }
  .fdlv-modal__body{ overflow: visible; }
}
@media (max-width: 480px){
  .fdlv-board{ padding: 7px; border-radius: 22px; }
  .fdlv-slate{ padding-left: 14px; padding-right: 14px; border-radius: 16px; }
  .fdlv-card__media, .fdlv-mini .fdlv-card__media{ width: 64px; }
  .fdlv-card__foot{ padding-right: 36px; }
  .fdlv .fdlv-folletto{ width: 48px; right: -8px; }
  .fdlv-chip{ font-size: 12px; }
}
@media (prefers-reduced-motion: reduce){
  .fdlv *, .fdlv *::before, .fdlv *::after{ animation: none !important; transition-duration: .01s !important; }
  .fdlv-squiggle path{ stroke-dashoffset: 0; }
}
