/* ==========================================================
   Dott.ssa Beatrice Pietricola - stile
   Palette dal sito originale: sfumatura lilla #D7BAD2 -> bianco -> #EFE2ED
   ========================================================== */
:root {
  --blush: #fffbfd;
  --blush-2: #f8f1f6;
  --blush-3: #efe2ed;
  --lilla: #e8d5e5;
  --lilla-deep: #d7bad2;
  --prugna: #6b3e66;
  --prugna-dark: #4f2b4b;
  --ink: #3b2f39;
  --muted: #6f5f6b;
  --line: #e6d4e2;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Nunito Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 1120px;
  --radius: 14px;
  --space: clamp(3rem, 7vw, 6rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 1.0625rem/1.65 var(--sans);
  color: var(--ink);
  background: #efe2ed linear-gradient(180deg, #d7bad2 0, #f4ecf3 200px, #fff 400px, #fffeff 600px, #fbf7fa 1000px, #f5edf4 1600px, #efe2ed 2000px) no-repeat;
  background-size: 100% 2000px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--prugna); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--prugna-dark); }
:focus-visible { outline: 2px solid var(--prugna); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, .big-tel, .studio-town { font-variant-numeric: lining-nums; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--prugna); line-height: 1.12; margin: 0 0 .5em; }
h1 { font-size: clamp(2.5rem, 5.2vw, 4.25rem); letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.6rem, 2.4vw, 2rem); }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(232, 213, 229, .85);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(107, 62, 102, .08);
}
.header-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 96px; }
.brand img { height: 82px; width: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .2rem; }
.nav a {
  display: block; padding: .5rem .85rem; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem;
  transition: background-color .2s, color .2s;
}
.nav a:hover { background: rgba(255, 255, 255, .6); color: var(--prugna); }
.nav a[aria-current="page"] { background: var(--prugna); color: #fff; }
.nav-toggle { display: none; }

@media (max-width: 920px) {
  .header-inner { min-height: 72px; }
  .brand img { height: 54px; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: .6rem;
    background: rgba(255, 255, 255, .5); border: 1px solid rgba(107, 62, 102, .25); border-radius: 999px;
    padding: .55rem 1.1rem; font: 700 .95rem var(--sans); color: var(--prugna); cursor: pointer;
  }
  .nav-toggle .bars { width: 16px; height: 2px; background: currentColor; box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor; }
  .nav {
    display: none; position: absolute; left: -1.25rem; right: -1.25rem; top: 100%;
    background: #f6eef4; border-bottom: 1px solid var(--line); padding: .75rem 1.25rem 1.25rem;
    box-shadow: 0 20px 30px -20px rgba(79, 43, 75, .35);
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; }
  .nav a { padding: .8rem 1rem; font-size: 1.05rem; }
}

/* ---------- Pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid var(--prugna);
  background: var(--prugna); color: #fff; text-decoration: none;
  font: 700 .98rem var(--sans); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--prugna-dark); border-color: var(--prugna-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--prugna); }
.btn-ghost:hover { background: var(--prugna); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* ---------- Hero home ---------- */
.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5rem);
}
.hero-kicker { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(1.35rem, 2vw, 1.6rem); color: var(--muted); margin-bottom: .4rem; }
.hero h1 { margin-bottom: .35em; }
.hero-role { font-size: 1.2rem; font-weight: 600; margin-bottom: .2rem; }
.hero-note { color: var(--muted); margin: 0; }
.hero-media { position: relative; margin: 0 18px 18px 0; }
.hero-media::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px; z-index: 0;
  border-radius: 20px; background: linear-gradient(135deg, var(--lilla-deep), var(--lilla));
}
.hero-frame {
  position: relative; z-index: 1; aspect-ratio: 17 / 10; overflow: hidden;
  border-radius: 20px; background: var(--lilla);
  box-shadow: 0 30px 50px -30px rgba(79, 43, 75, .45);
}
.hero-frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; z-index: 0; clip-path: inset(0 0 0 0);
  transition: opacity .8s ease, transform 1.1s cubic-bezier(.2, .7, .2, 1), clip-path .9s cubic-bezier(.65, 0, .25, 1);
}
.hero-frame img.leaving { z-index: 1; }
.hero-frame img.is-active { opacity: 1; z-index: 2; transform: none; clip-path: inset(0 0 0 0); }
.hero-frame img.fx-zoom:not(.is-active) { transform: scale(1.15); }
.hero-frame img.fx-slide:not(.is-active) { transform: translateX(12%); }
.hero-frame img.fx-wipe:not(.is-active) { opacity: 1; clip-path: inset(0 0 0 100%); }
.hero-frame img.no-tr { transition: none !important; }
.mosaic-fx {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(4, 1fr);
}
.mosaic-fx span { background-repeat: no-repeat; opacity: 0; animation: tileIn .6s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes tileIn {
  from { opacity: 0; transform: scale(.35) rotate(-10deg); }
  to   { opacity: 1; transform: none; }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-media { max-width: 560px; width: calc(100% - 18px); }
}

/* ---------- News ---------- */
.news { margin-bottom: var(--space); }
.news-box {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem 2.5rem;
  padding: 1.6rem 2rem; border-radius: var(--radius);
  background: rgba(255, 255, 255, .75); border: 1px solid var(--line); border-left: 4px solid var(--lilla-deep);
}
.news-box h2 { font-size: 1.9rem; margin: 0; }
.news-box p { margin: 0; }
@media (max-width: 760px) { .news-box { grid-template-columns: 1fr; } }

/* ---------- Aree (Dermatologia / Dermoestetica) ---------- */
.area { padding: var(--space) 0; }
.area-tinted { background: rgba(255, 255, 255, .6); border-block: 1px solid var(--line); }
.area-title { text-align: center; font-size: clamp(2.4rem, 4.5vw, 3.6rem); margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.area-title::after { content: ""; display: block; width: 56px; height: 2px; background: var(--lilla-deep); margin: .7rem auto 0; }
.topic { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(1.5rem, 5vw, 4rem); }
.topic + .topic { margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.topic.reverse .topic-media { order: 2; }
.topic-body { max-width: 34rem; }
.topic-body > p { color: var(--muted); }
.mosaic { display: grid; gap: 10px; width: 100%; max-width: 470px; justify-self: center; }
.mosaic img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; }
.mosaic-2, .mosaic-4 { grid-template-columns: 1fr 1fr; }
.mosaic-1 { max-width: 380px; }
.mosaic-1 img { border-radius: 14px; }
@media (max-width: 760px) {
  .topic { grid-template-columns: 1fr; }
  .topic.reverse .topic-media { order: 0; }
}

.dots { list-style: none; padding: 0; margin: 0; }
.dots li { position: relative; padding: .5rem 0 .5rem 1.5rem; border-bottom: 1px solid var(--line); }
.dots li:last-child { border-bottom: 0; }
.dots li::before {
  content: ""; position: absolute; left: .1rem; top: 1.1em; width: 7px; height: 7px; border-radius: 50%;
  background: var(--lilla-deep); box-shadow: 0 0 0 3px rgba(215, 186, 210, .35);
}

/* ---------- Pagine interne ---------- */
.page-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.page-head h1 { margin: 0; }
.lead { font-size: 1.2rem; color: var(--muted); margin: .6rem 0 0; }
.page-body { padding-bottom: var(--space); }

/* Chi sono */
.about { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; gap: clamp(2rem, 5vw, 4.5rem); }
.about-photo { margin: 0; position: sticky; top: 120px; }
.about-photo img { border-radius: 50% 50% 18px 18px / 28% 28% 18px 18px; box-shadow: 0 34px 60px -34px rgba(79, 43, 75, .5); }
.about-intro { font-family: var(--serif); font-size: clamp(1.35rem, 2vw, 1.55rem); line-height: 1.45; }
.career { list-style: none; margin: 2rem 0 0; padding: 0; border-left: 2px solid var(--lilla); }
.career li { position: relative; padding: 0 0 1.2rem 1.6rem; }
.career li:last-child { padding-bottom: 0; }
.career li::before { content: ""; position: absolute; left: -7px; top: .5em; width: 12px; height: 12px; border-radius: 50%; background: var(--blush); border: 2px solid var(--lilla-deep); }
@media (max-width: 820px) {
  .about { grid-template-columns: 1fr; }
  .about-photo { position: static; max-width: 340px; }
}

/* Dove ricevo */
.studi { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.studio-row { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.3fr) auto; align-items: center; gap: 1rem 2rem; padding: 1.8rem 0; border-bottom: 1px solid var(--line); }
.studio-town { font-family: var(--serif); font-weight: 600; font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: 1.05; color: var(--prugna); }
a.studio-town { display: block; text-decoration: none; transition: color .2s; }
a.studio-town:hover { color: var(--prugna-dark); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
a.studio-town:hover span { text-decoration: none; }
.studio-town span { display: block; font: 600 .85rem var(--sans); color: var(--muted); margin-top: .3rem; }
.studio-name { font: 700 1.08rem/1.4 var(--sans); color: var(--ink); margin: 0 0 .25rem; }
.studio-name a { color: inherit; text-decoration: none; }
.studio-name a:hover { color: var(--prugna); text-decoration: underline; }
address { font-style: normal; color: var(--muted); }
.studio-actions { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; }
.tel-link { font-weight: 700; text-decoration: none; white-space: nowrap; }
.tel-link:hover { text-decoration: underline; }
@media (max-width: 820px) { .studio-row { grid-template-columns: 1fr; } }

/* Pagina studio */
.studio-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); align-items: start; gap: clamp(1.5rem, 5vw, 3.5rem); }
.studio-detail address { font-size: 1.15rem; margin-bottom: 1rem; }
.map {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line);
  background: radial-gradient(circle at 30% 20%, #fff, var(--lilla) 70%);
  display: grid; place-items: center; text-align: center; padding: 1.5rem;
}
.map p { font-size: .9rem; color: var(--muted); max-width: 26rem; margin: .9rem auto 0; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.altri { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.altri h2 { font-size: 1.5rem; }
.altri ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.altri a { display: inline-block; padding: .4rem .9rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .7); text-decoration: none; font-weight: 600; font-size: .95rem; }
.altri a:hover { border-color: var(--prugna); }
@media (max-width: 820px) { .studio-detail { grid-template-columns: 1fr; } }

/* Cosa faccio */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.services section { background: rgba(255, 255, 255, .7); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.5rem); }
@media (max-width: 760px) { .services { grid-template-columns: 1fr; } }

/* Contattami */
.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); align-items: start; gap: clamp(2rem, 5vw, 4rem); }
.big-tel { display: inline-block; font-family: var(--serif); font-weight: 600; font-size: clamp(2.2rem, 4.5vw, 3.2rem); line-height: 1.1; text-decoration: none; margin-bottom: 1rem; }
.form { position: relative; display: grid; gap: 1.1rem; background: rgba(255, 255, 255, .75); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.25rem); }
.field label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: .35rem; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1px solid #d9c3d4; border-radius: 10px; padding: .75rem .9rem;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--prugna); outline-offset: 1px; border-color: var(--prugna); }
.check { display: flex; align-items: flex-start; gap: .6rem; font-size: .95rem; }
.check input { margin-top: .25rem; width: 18px; height: 18px; accent-color: var(--prugna); flex: none; }
.robot {
  display: inline-flex; align-items: center; gap: .85rem; justify-self: start;
  padding: .85rem 1.4rem .85rem 1rem; border: 1px solid #d9c3d4; border-radius: 10px;
  background: #fff; font-weight: 600; cursor: pointer; user-select: none;
}
.robot input { width: 24px; height: 24px; margin: 0; accent-color: var(--prugna); cursor: pointer; }
.robot:hover { border-color: var(--prugna); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 1rem 1.2rem; border-radius: 10px; margin-bottom: 1.25rem; }
.notice-ok { background: #eef7ef; border: 1px solid #b9dcbc; color: #24552a; }
.notice-err { background: #fbefef; border: 1px solid #e6bcbc; color: #7a2424; }
.notice ul { margin: .3rem 0 0; padding-left: 1.1rem; }
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; } }

/* Articoli */
.art-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); max-width: 52rem; }
.art-row { padding: 2rem 0; border-bottom: 1px solid var(--line); }
.art-meta { font-size: .92rem; font-weight: 600; color: var(--muted); margin-bottom: .4rem; }
.art-row h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: .5rem; }
.art-row h2 a { text-decoration: none; }
.art-row h2 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.art-excerpt { color: var(--muted); max-width: 44rem; }
.art-more { font-weight: 700; }
.articolo .page-head { max-width: 44rem; }
.prose { max-width: 42rem; font-size: 1.12rem; line-height: 1.8; }
.prose p { margin: 0 0 1.25em; }
.prose p:first-child em { display: block; font-family: var(--serif); font-size: 1.3rem; line-height: 1.45; color: var(--muted); padding-left: 1rem; border-left: 3px solid var(--lilla-deep); }
.legal h2 { font-size: clamp(1.7rem, 2.6vw, 2.1rem); margin: 2.2rem 0 .7rem; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-family: var(--sans); font-size: 1.08rem; font-weight: 700; color: var(--ink); margin: 1.6rem 0 .4rem; }
.table-wrap { overflow-x: auto; margin: 0 0 1.5rem; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .7); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 1rem; line-height: 1.5; }
.table-wrap th, .table-wrap td { text-align: left; vertical-align: top; padding: .75rem 1rem; border-bottom: 1px solid var(--line); }
.table-wrap th { font-weight: 700; background: var(--blush-2); }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap td:first-child { font-weight: 700; white-space: nowrap; }
.altri-articoli { max-width: 42rem; margin: 3rem 0 var(--space); padding-top: 2rem; border-top: 1px solid var(--line); }
.altri-articoli h2 { font-size: 1.7rem; }
.altri-articoli ul { margin: 0 0 1.5rem; padding-left: 1.2rem; }
.altri-articoli li { margin: .4rem 0; }

/* ---------- Footer ---------- */
.site-footer { background: linear-gradient(180deg, rgba(232, 213, 229, .55), var(--lilla)); border-top: 1px solid var(--line); padding-top: clamp(3rem, 6vw, 4.5rem); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr .8fr; gap: 2rem; }
.site-footer h2 { font-size: 1.45rem; margin-bottom: .7rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: .3rem 0; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--prugna); text-decoration: underline; }
.footer-bottom { margin-top: 3rem; padding: 1.25rem 0; border-top: 1px solid rgba(107, 62, 102, .15); font-size: .85rem; color: var(--muted); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Banner cookie ---------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  background: #fff; border-top: 3px solid var(--lilla-deep);
  box-shadow: 0 -20px 40px -20px rgba(79, 43, 75, .35);
  padding: 1.25rem 0 calc(1.25rem + env(safe-area-inset-bottom, 0px));
  font-size: 1.08rem; line-height: 1.55;
}
.cookie-banner[hidden] { display: none; }
.cookie-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.cookie-inner p { margin: 0; max-width: 46rem; }
.cookie-inner .cookie-title { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; color: var(--prugna); margin-bottom: .3rem; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.cookie-actions .btn { min-width: 140px; padding: 1rem 1.6rem; font-size: 1.08rem; }
body.has-banner { padding-bottom: 220px; }
@media (max-width: 600px) {
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; min-width: 0; }
  body.has-banner { padding-bottom: 300px; }
}
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); cursor: pointer; text-align: left; }
.link-btn:hover { color: var(--prugna); text-decoration: underline; }

/* ---------- Profondità / effetto 3D ---------- */
:root {
  --shadow-3d: 0 1px 2px rgba(79, 43, 75, .08), 0 10px 20px -8px rgba(79, 43, 75, .2), 0 30px 50px -26px rgba(79, 43, 75, .38);
  --shadow-3d-hi: 0 2px 4px rgba(79, 43, 75, .1), 0 18px 30px -10px rgba(79, 43, 75, .26), 0 44px 70px -30px rgba(79, 43, 75, .45);
}
[data-tilt] { transform-style: preserve-3d; transition: transform .25s ease-out; will-change: transform; }
.hero-media::before, .about-photo::before { transform: translateZ(-1px); }
.hero-frame { transform: translateZ(40px); box-shadow: var(--shadow-3d-hi); }

/* Chi sono: foto rettangolare con cornice sfalsata, come in home */
.about-photo { margin: 0 18px 18px 0; }
.about-photo::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px;
  border-radius: 20px; background: linear-gradient(135deg, var(--lilla-deep), var(--lilla));
}
.about-photo img { position: relative; border-radius: 20px; box-shadow: var(--shadow-3d-hi); transform: translateZ(40px); }

/* Immagini e riquadri con più profondità */
.mosaic img { box-shadow: var(--shadow-3d); transition: transform .3s ease, box-shadow .3s ease; }
.mosaic img:hover { transform: translateY(-5px) scale(1.02); box-shadow: var(--shadow-3d-hi); }
.news-box, .services section, .form, .map { box-shadow: var(--shadow-3d); }
.btn { box-shadow: 0 6px 14px -6px rgba(79, 43, 75, .45); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 20px -8px rgba(79, 43, 75, .5); }
.btn-ghost { box-shadow: none; }

/* ---------- Popup avvisi ---------- */
.avviso {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 1.25rem;
  background: rgba(59, 47, 57, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.avviso[hidden] { display: none; }
.avviso-box {
  position: relative; width: min(100%, 780px); max-height: calc(100vh - 2.5rem); overflow: auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  background: var(--blush); border-radius: 20px; box-shadow: var(--shadow-3d-hi);
}
.avviso-box.no-img { grid-template-columns: 1fr; width: min(100%, 540px); }
.avviso-img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
.avviso-body { align-self: center; padding: clamp(1.75rem, 4vw, 2.75rem); }
.avviso-body h2 { font-size: clamp(2rem, 3.6vw, 2.6rem); }
.avviso-body p { font-size: 1.12rem; line-height: 1.6; }
.avviso-x {
  position: absolute; top: .7rem; right: .7rem; z-index: 1; width: 46px; height: 46px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: var(--prugna); font-size: 1.9rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow-3d);
}
.avviso-x:hover { background: #fff; }
body.no-scroll { overflow: hidden; }
@media (max-width: 640px) {
  .avviso-box { grid-template-columns: 1fr; }
  .avviso-img { min-height: 0; max-height: 210px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
