/* getinsieme.it — stessi colori e caratteri dell'app e dell'annuario. */

@font-face {
  font-family: 'Fraunces';
  src: url(../fonts/fraunces-latin-full-normal.woff2) format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url(../fonts/fraunces-latin-full-italic.woff2) format('woff2-variations');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito Sans';
  src: url(../fonts/nunito-sans-latin-full-normal.woff2) format('woff2-variations');
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito Sans';
  src: url(../fonts/nunito-sans-latin-full-italic.woff2) format('woff2-variations');
  font-weight: 200 1000;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #fbfaf6;
  --card: #ffffff;
  --sunk: #eef1ec;
  --line: #dfe3dd;
  --ink: #1d2421;
  --muted: #5e6964;
  --brand: #1f7a5c;
  --brand-deep: #155a43;
  --brand-tint: #dcefe6;
  --on-brand: #ffffff;
  --coral: #c9502f;
  --sun: #f2b632;
  --sky: #2f6fb0;
  --plum: #7a4a8c;
  --red: #b3261e;
  --grid: rgba(31, 122, 92, 0.07);
  --shadow: 0 1px 2px rgba(20, 25, 23, 0.06), 0 12px 32px -12px rgba(20, 25, 23, 0.18);
  --shadow-lg: 0 2px 4px rgba(20, 25, 23, 0.05), 0 32px 64px -24px rgba(20, 25, 23, 0.32);
  --radius: 18px;
  --wrap: 1180px;
  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #141917;
    --card: #1e2522;
    --sunk: #28302c;
    --line: #333c37;
    --ink: #eef2ef;
    --muted: #a3aea8;
    --brand: #5cc59c;
    --brand-deep: #1b3a2e;
    --brand-tint: #1b3a2e;
    --on-brand: #0d1f18;
    --coral: #f08a6e;
    --sky: #7fb2e8;
    --plum: #c39ad3;
    --red: #f2b8b5;
    --grid: rgba(92, 197, 156, 0.06);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -12px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.3), 0 32px 64px -24px rgba(0, 0, 0, 0.8);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  overflow-x: clip;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variation-settings: 'YTLC' 520;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: var(--brand);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-thickness: 2.5px;
}
:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
  border-radius: 6px;
}
h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 560;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  font-variation-settings: 'SOFT' 60, 'WONK' 0, 'opsz' 96;
  text-wrap: balance;
}
p {
  margin: 0 0 1em;
  text-wrap: pretty;
}
.wrap {
  width: min(var(--wrap), 100% - 32px);
  margin-inline: auto;
}
.sr,
.hp {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: 10px;
}
.skip:focus {
  top: 12px;
}

/* ---------- pulsanti ---------- */
.btn {
  --bg: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: var(--bg);
  color: var(--on-brand);
  font: 750 1rem/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 8px 20px -10px var(--brand);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 14px 26px -12px var(--brand);
}
.btn:active {
  transform: translateY(0) scale(0.98);
}
.btn--ghost {
  --bg: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--line);
}
.btn--ghost:hover {
  box-shadow: inset 0 0 0 2px var(--ink);
}
.btn--small {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.95rem;
}
.btn--danger {
  --bg: var(--red);
  color: #fff;
  box-shadow: none;
}
@media (prefers-color-scheme: dark) {
  .btn--danger {
    --bg: #b3261e;
  }
}
.link-arrow {
  font-weight: 750;
  text-decoration: none;
}
.link-arrow::after {
  content: ' →';
  display: inline-block;
  transition: transform 0.2s;
}
.link-arrow:hover::after {
  transform: translateX(4px);
}

/* ---------- barra in alto ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background 0.25s, box-shadow 0.25s, backdrop-filter 0.25s;
}
.topbar.is-scrolled {
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.topbar__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font: 620 1.4rem/1 var(--serif);
  letter-spacing: -0.02em;
}
.brand img {
  border-radius: 10px;
}
.nav__list {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__list a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
  font-size: 0.98rem;
  position: relative;
}
.nav__list a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav__list a:not(.btn):hover::after,
.nav__list a[aria-current]::after {
  transform: scaleX(1);
}
.nav__toggle {
  display: none;
}

@media (max-width: 820px) {
  .nav__toggle {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 12px;
    background: var(--sunk);
    color: var(--ink);
    cursor: pointer;
  }
  .nav__burger,
  .nav__burger::before,
  .nav__burger::after {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.2s;
    content: '';
  }
  .nav__burger {
    position: relative;
  }
  .nav__burger::before {
    position: absolute;
    top: -6px;
  }
  .nav__burger::after {
    position: absolute;
    top: 6px;
  }
  [aria-expanded='true'] .nav__burger {
    background: transparent;
  }
  [aria-expanded='true'] .nav__burger::before {
    transform: translateY(6px) rotate(45deg);
  }
  [aria-expanded='true'] .nav__burger::after {
    transform: translateY(-6px) rotate(-45deg);
  }
  .nav__list {
    position: absolute;
    top: 72px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
  }
  .nav__list.is-open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .nav__list a:not(.btn) {
    display: block;
    padding: 12px 14px;
    border-radius: 10px;
  }
  .nav__list a:not(.btn):hover {
    background: var(--sunk);
  }
  .nav__list a::after {
    display: none;
  }
  .nav__list .btn {
    width: 100%;
    justify-content: center;
    margin-top: 6px;
  }
}

/* ---------- elementi comuni ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--brand);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: currentColor;
}
.eyebrow--light {
  color: var(--sun);
}
.section-head {
  max-width: 760px;
  margin-bottom: 72px;
}
.section-head h2 {
  font-size: clamp(2rem, 4.4vw, 3.3rem);
}
.section-head p:not(.eyebrow) {
  margin-top: 18px;
  color: var(--muted);
}
.ticks {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 10px;
}
.ticks li {
  position: relative;
  padding-left: 32px;
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.18em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand-tint)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%231f7a5c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center/100% no-repeat;
}
.ticks--light li::before {
  background-color: rgba(255, 255, 255, 0.14);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23f2b632' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.card {
  background: var(--card);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

/* comparsa allo scroll */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--d, 0s);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
.no-js .reveal {
  opacity: 1;
  transform: none;
}

/* ---------- hero ---------- */
.is-home .topbar:not(.is-scrolled) {
  background: transparent;
}
.hero {
  position: relative;
  isolation: isolate;
  margin-top: -72px;
  padding: 132px 0 110px;
}
.hero::after {
  /* quadretti del quaderno, che sfumano verso il basso */
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: -1px -1px;
  -webkit-mask-image: linear-gradient(#000 70%, transparent);
  mask-image: linear-gradient(#000 70%, transparent);
}
.hero::before {
  /* margine rosso del quaderno */
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: max(16px, calc(50% - var(--wrap) / 2 - 40px));
  width: 2px;
  background: color-mix(in srgb, var(--coral) 40%, transparent);
}
.hero__in {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 56px;
  align-items: center;
}
.hero__title {
  font-size: clamp(2.6rem, 6.2vw, 5rem);
  font-weight: 540;
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.hero__title em {
  font-style: italic;
  color: var(--brand);
  font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 120;
}
.mark {
  position: relative;
  white-space: nowrap;
}
.scribble {
  position: absolute;
  left: -2%;
  bottom: -0.12em;
  width: 104%;
  height: 0.32em;
  color: var(--sun);
  z-index: -1;
}
.scribble path {
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  animation: draw 1.1s 0.6s cubic-bezier(0.6, 0, 0.2, 1) forwards;
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
.hero__lead {
  max-width: 34em;
  margin-top: 26px;
  color: var(--muted);
  font-size: 1.2rem;
  --d: 0.08s;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
  --d: 0.16s;
}
.hero__small {
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
  --d: 0.22s;
}
.hero__title {
  --d: 0.02s;
}
.hero__art {
  position: relative;
  justify-self: center;
  width: min(360px, 100%);
}

/* telefono */
.phone {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 18.6;
  padding: 12px;
  border-radius: 46px;
  background: #121715;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px #2b332f;
  transform: rotate(3deg);
  animation: phone-in 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes phone-in {
  from {
    opacity: 0;
    transform: translateY(40px) rotate(8deg);
  }
}
.phone__notch {
  position: absolute;
  top: 22px;
  left: 50%;
  width: 92px;
  height: 26px;
  transform: translateX(-50%);
  border-radius: 20px;
  background: #121715;
  z-index: 2;
}
.phone__screen {
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: #fbfaf6;
  color: #1d2421;
  padding: 56px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 12px;
}
.app-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.app-head__group {
  font: 650 17px/1.1 var(--serif);
}
.app-head__month {
  color: #5e6964;
  font-weight: 700;
  text-transform: capitalize;
}
.seg {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  padding: 3px;
  border-radius: 12px;
  background: #eef1ec;
  font-weight: 750;
  text-align: center;
}
.seg > * {
  padding: 6px 0;
  border-radius: 9px;
  color: #5e6964;
}
.seg .seg__on {
  background: #fff;
  color: #1d2421;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.cal__wd {
  text-align: center;
  font-weight: 800;
  font-size: 10px;
  color: #5e6964;
  padding-bottom: 2px;
}
.cal__d {
  min-height: 44px;
  padding: 3px;
  border-radius: 8px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  animation: pop 0.4s calc(0.5s + var(--i) * 0.018s) both;
}
@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.cal__d.is-empty {
  background: transparent;
}
.cal__d b {
  font-size: 10px;
  font-weight: 750;
}
.is-red,
.cal__d.is-red b {
  color: #b3261e;
}
.cal__d.is-today {
  background: #1f7a5c;
  color: #fff;
}
.cal__d.is-today b {
  color: #fff;
}
.chip {
  display: block;
  font: normal 700 7.5px/1.3 var(--sans);
  padding: 1px 3px;
  border-radius: 4px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chip--coral,
.dot--coral {
  background: #c9502f;
}
.chip--plum {
  background: #7a4a8c;
}
.chip--sky {
  background: #2f6fb0;
}
.chip--green {
  background: #1f7a5c;
}
.chip--sun {
  background: #d99a12;
}
.is-today .chip {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6);
}
.app-sub {
  margin: 4px 0 -4px;
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5e6964;
}
.app-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 10px;
  background: #fff;
}
.app-row small {
  margin-left: auto;
  color: #5e6964;
}
.app-card {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 20px -10px rgba(0, 0, 0, 0.3);
}
.app-card strong {
  display: block;
  font-size: 13px;
}
.app-card small {
  color: #5e6964;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
}
.vol-pill {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #fdf0d2;
  color: #8a5a00;
  font-weight: 800;
}

/* elementi che galleggiano intorno al telefono */
.toast {
  position: absolute;
  left: -64px;
  top: 18%;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 260px;
  padding: 12px 14px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--card) 92%, transparent);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-lg);
  font-size: 0.85rem;
  line-height: 1.3;
  animation: toast-in 0.7s 1.6s cubic-bezier(0.2, 0.9, 0.2, 1.2) both, float 6s 2.4s ease-in-out infinite;
}
.toast img {
  border-radius: 8px;
}
.toast strong {
  display: block;
}
.toast span {
  color: var(--muted);
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translate(-20px, -10px) scale(0.9);
  }
}
@keyframes float {
  50% {
    transform: translateY(-8px);
  }
}
.sticky-note {
  position: absolute;
  right: -40px;
  bottom: 16%;
  width: 170px;
  padding: 16px 16px 18px;
  background: var(--sun);
  color: #2a2205;
  transform: rotate(-6deg);
  box-shadow: 0 18px 30px -18px rgba(0, 0, 0, 0.5);
  font-size: 0.85rem;
  line-height: 1.25;
  animation: note-in 0.7s 2s cubic-bezier(0.2, 0.9, 0.2, 1.2) both;
}
.sticky-note::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  width: 70px;
  height: 22px;
  transform: translateX(-50%) rotate(2deg);
  background: rgba(255, 255, 255, 0.55);
}
.sticky-note strong {
  display: block;
  margin-top: 4px;
  font: 600 1.15rem/1.15 var(--serif);
}
.sticky-note__hand {
  position: absolute;
  right: 12px;
  bottom: 10px;
  opacity: 0.6;
}
@keyframes note-in {
  from {
    opacity: 0;
    transform: rotate(-16deg) translateY(20px);
  }
}

/* nastro che scorre */
.ticker {
  overflow: hidden;
  padding: 18px 0;
  background: var(--brand);
  color: var(--on-brand);
  transform: rotate(-1.2deg);
  margin: 0 -2%;
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.ticker span {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  font: italic 500 1.5rem/1 var(--serif);
  white-space: nowrap;
}
.ticker span::after {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--sun);
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- funzioni ---------- */
.features {
  padding: 140px 0 60px;
}
.feat {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  padding: 56px 0;
}
.feat + .feat {
  border-top: 1px dashed var(--line);
}
.feat--flip .feat__copy {
  order: 2;
}
.feat__num {
  display: block;
  margin-bottom: 14px;
  font: italic 500 1rem/1 var(--serif);
  color: var(--coral);
}
.feat h3 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  margin-bottom: 18px;
}
.feat__copy p {
  color: var(--muted);
}
.feat__copy .fine {
  font-size: 0.92rem;
  padding-left: 14px;
  border-left: 3px solid var(--sun);
}
.feat__demo {
  --d: 0.1s;
}
.demo {
  position: relative;
  padding: 26px;
  border-radius: 28px;
  background: var(--card);
  box-shadow: var(--shadow-lg);
}
.demo::after {
  /* angolo di carta piegato */
  content: '';
  position: absolute;
  inset: auto 0 0 auto;
  width: 34px;
  height: 34px;
  border-bottom-right-radius: 28px;
  background: linear-gradient(135deg, var(--sunk) 50%, transparent 50%);
  opacity: 0.8;
}
.seg--big {
  background: var(--sunk);
  font-size: 0.95rem;
  margin-bottom: 20px;
}
.seg--big button {
  border: 0;
  background: transparent;
  font: inherit;
  padding: 10px 0;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.seg--big button[aria-selected='true'] {
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

/* viste calendario */
.views {
  position: relative;
  min-height: 300px;
}
.view {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.35s, transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.view.is-on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.view--mese {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}
.view--mese span {
  position: relative;
  border-radius: 9px;
  background: var(--sunk);
  padding: 5px 6px;
  font-size: 0.75rem;
  font-weight: 750;
  min-height: 52px;
}
.view--mese .is-red {
  color: var(--red);
}
.bar {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  height: 7px;
  border-radius: 4px;
}
.bar--coral,
.blk--coral {
  --k: var(--coral);
}
.bar--plum,
.blk--plum {
  --k: var(--plum);
}
.bar--sky,
.blk--sky {
  --k: var(--sky);
}
.bar--green,
.blk--green {
  --k: var(--brand);
}
.bar--sun,
.blk--sun {
  --k: #d99a12;
}
.bar {
  background: var(--k);
}
.view--settimana {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}
.wk {
  display: grid;
  grid-template-rows: auto repeat(5, 46px);
  gap: 4px;
  border-radius: 10px;
  background: var(--sunk);
  padding: 6px;
  font-size: 0.72rem;
}
.wk b {
  text-align: center;
  padding-bottom: 4px;
}
.blk {
  display: block;
  border-radius: 7px;
  background: color-mix(in srgb, var(--k) 18%, var(--card));
  border-left: 3px solid var(--k);
  color: var(--ink);
  font-style: normal;
  font-weight: 700;
  padding: 4px 5px;
  line-height: 1.15;
  grid-row: calc(var(--h) + 1);
  overflow: hidden;
}
.view--giorno {
  display: grid;
  gap: 4px;
}
.day {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
}
.day > span {
  color: var(--muted);
  font-weight: 700;
}
.day .blk {
  padding: 8px 12px;
}
.day .blk b {
  display: block;
  font-size: 0.95rem;
}
.day .blk small {
  color: var(--muted);
  font-weight: 600;
}

/* volontario */
.ev__tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--coral) 16%, var(--card));
  color: var(--coral);
  font-weight: 800;
  font-size: 0.82rem;
}
.ev h4 {
  margin: 14px 0 4px;
  font-size: 1.6rem;
}
.ev__when {
  color: var(--muted);
}
.avatars {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 22px 0 8px;
  min-height: 52px;
}
.avatars li {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-right: -12px;
  border-radius: 50%;
  background: var(--c);
  color: #fff;
  font-weight: 800;
  border: 3px solid var(--card);
  animation: pop 0.4s both;
}
.avatars li.is-me {
  background: var(--brand);
}
.avatars li.is-leaving {
  animation: out 0.3s forwards;
}
@keyframes out {
  to {
    opacity: 0;
    transform: scale(0.4);
  }
}
.ev__count {
  color: var(--muted);
}
.ev__count strong {
  color: var(--ink);
  font-size: 1.15rem;
}
.btn--vol {
  margin-top: 6px;
}
.btn--vol[aria-pressed='true'] {
  --bg: var(--sun);
  color: #2a2205;
  box-shadow: 0 8px 20px -10px #b88300;
}
.btn--vol svg {
  transition: transform 0.4s cubic-bezier(0.3, 1.6, 0.4, 1);
}
.btn--vol[aria-pressed='true'] svg {
  transform: rotate(-14deg) scale(1.2);
}

/* album */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.ph {
  aspect-ratio: 1;
  border-radius: 12px;
  animation: pop 0.45s calc(var(--i) * 0.04s) both;
  position: relative;
  overflow: hidden;
}
.ph::after {
  /* "soggetto" stilizzato: collina e sole */
  content: '';
  position: absolute;
  inset: 55% -20% -30% -20%;
  border-radius: 50% 50% 0 0;
  background: rgba(255, 255, 255, 0.22);
}
.ph--1 {
  background: linear-gradient(160deg, #f2b632, #c9502f);
}
.ph--2 {
  background: linear-gradient(160deg, #7fb2e8, #2f6fb0);
}
.ph--3 {
  background: linear-gradient(160deg, #5cc59c, #1f7a5c);
}
.ph--4 {
  background: linear-gradient(160deg, #c39ad3, #7a4a8c);
}
.ph--5 {
  background: linear-gradient(160deg, #f08a6e, #7a4a8c);
}
.ph--6 {
  background: linear-gradient(160deg, #f6d27a, #1f7a5c);
}
.album__cap {
  margin: 16px 0 0;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
}

/* sondaggio */
.demo--poll h4 {
  font-size: 1.45rem;
  margin-bottom: 18px;
}
.opt {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 54px;
  margin-bottom: 10px;
  padding: 0 18px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: transparent;
  color: var(--ink);
  font: 700 1rem var(--sans);
  cursor: pointer;
  overflow: hidden;
  text-align: left;
  transition: border-color 0.2s;
}
.opt:hover {
  border-color: var(--brand);
}
.opt__bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w, 0%);
  background: var(--brand-tint);
  transition: width 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.opt__label,
.opt__n {
  position: relative;
}
.opt__n {
  margin-left: auto;
  color: var(--muted);
}
.opt.is-mine {
  border-color: var(--brand);
}
.opt.is-mine .opt__label::after {
  content: ' · il tuo voto';
  color: var(--brand);
  font-weight: 650;
  font-size: 0.85rem;
}
.poll__foot {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* circolare */
.paper {
  display: none;
  padding: 20px 22px;
  border-radius: 14px;
  background: var(--sunk);
  font-size: 0.92rem;
  line-height: 1.55;
  animation: pop 0.35s both;
}
.paper.is-on {
  display: block;
}
.paper:not(.paper--ai) p:not(.paper__h) {
  font-family: var(--serif);
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}
.paper__h {
  font-weight: 800;
  margin-bottom: 10px;
}
.paper--ai {
  background: color-mix(in srgb, var(--brand) 10%, var(--card));
}
.paper--ai ul {
  margin: 0;
  padding-left: 1.1em;
  display: grid;
  gap: 8px;
}
.paper__add {
  display: inline-block;
  margin-top: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 750;
  font-size: 0.85rem;
}

/* notifiche */
.demo--notif {
  display: grid;
  gap: 12px;
  background: linear-gradient(160deg, #1f7a5c, #155a43);
}
.notif {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  color: #1d2421;
  font-size: 0.88rem;
  line-height: 1.3;
  opacity: 0;
  transform: translateY(-14px) scale(0.96);
  transition: opacity 0.5s, transform 0.6s cubic-bezier(0.2, 0.9, 0.2, 1.2);
}
.notif:nth-child(2) {
  transition-delay: 0.25s;
}
.notif:nth-child(3) {
  transition-delay: 0.5s;
  opacity: 0;
}
.is-in .notif {
  opacity: 1;
  transform: none;
}
.is-in .notif:nth-child(3) {
  opacity: 0.6;
}
.notif img {
  border-radius: 8px;
}
.notif strong {
  display: block;
}
.notif span {
  color: #5e6964;
}
.notif time {
  margin-left: auto;
  align-self: flex-start;
  color: #5e6964;
  font-size: 0.78rem;
  white-space: nowrap;
}

/* ---------- annuario ---------- */
.yearbook {
  position: relative;
  margin-top: 80px;
  padding: 130px 0;
  background: #143f30;
  color: #eef2ef;
  overflow: hidden;
}
.yearbook::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 80% at 85% 40%, rgba(242, 182, 50, 0.18), transparent 70%);
}
.yearbook__in {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.yearbook h2 {
  font-size: clamp(2.2rem, 4.8vw, 3.8rem);
  margin-bottom: 24px;
}
.yearbook p {
  color: #c8d3cd;
}
.book-stage {
  display: grid;
  place-items: center;
  min-height: 440px;
}
.book {
  position: relative;
  width: min(280px, 62vw);
  aspect-ratio: 3 / 4;
}
.book__page {
  position: absolute;
  inset: 0;
  padding: 26px 22px;
  border-radius: 4px 14px 14px 4px;
  background: #fbfaf6;
  color: #1d2421;
  box-shadow: 0 30px 50px -24px rgba(0, 0, 0, 0.7), inset 6px 0 10px -6px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform-origin: 30% 110%;
  transition: transform 1.1s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--dl, 0s);
}
/* chiuso finché non entra nello schermo, poi le pagine si aprono a ventaglio */
.is-in .book__p1 {
  --dl: 0.25s;
  transform: translate(2%, -2%) rotate(-3deg);
}
.is-in .book__p2 {
  --dl: 0.4s;
  transform: translate(28%, -6%) rotate(3deg);
}
.is-in .book__p3 {
  --dl: 0.55s;
  transform: translate(52%, 4%) rotate(9deg);
}
.is-in .book__cover {
  transform: translate(-40%, 10%) rotate(-12deg);
}
.book-stage:hover .book__p3 {
  transform: translate(58%, 0%) rotate(13deg);
}
.book__page b {
  font: 600 1.4rem/1.1 var(--serif);
}
.book__page > span {
  color: #5e6964;
  font-size: 0.85rem;
}
.book__cover {
  background: #1f7a5c;
  color: #fff;
  justify-content: flex-end;
  box-shadow: 0 30px 50px -24px rgba(0, 0, 0, 0.7), inset 10px 0 0 rgba(0, 0, 0, 0.12);
}
.book__cover span {
  color: #f2b632 !important;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.book__cover strong {
  font: italic 560 3rem/1 var(--serif);
}
.book__cover small {
  opacity: 0.8;
}
.book__p3 {
  justify-content: center;
  align-items: center;
  text-align: center;
}
.book__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 6px;
  margin-top: 10px;
  flex: 1;
}
.book__grid i {
  border-radius: 6px;
}
.book__grid i:nth-child(1) {
  background: linear-gradient(160deg, #f2b632, #c9502f);
  grid-row: span 2;
}
.book__grid i:nth-child(2) {
  background: linear-gradient(160deg, #7fb2e8, #2f6fb0);
}
.book__grid i:nth-child(3) {
  background: linear-gradient(160deg, #5cc59c, #1f7a5c);
}
.book__stat {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.book__stat i {
  height: 14px;
  width: var(--w);
  border-radius: 7px;
  background: #1f7a5c;
}
.book__stat i:nth-child(2) {
  background: #c9502f;
}
.book__stat i:nth-child(3) {
  background: #f2b632;
}
.book__sign {
  font: italic 400 1.5rem/1.2 var(--serif) !important;
  color: #1f7a5c !important;
  transform: rotate(-4deg);
  margin-top: 10px;
}
.book__sign--2 {
  font-size: 1.1rem !important;
  color: #c9502f !important;
  transform: rotate(3deg);
}
@media (max-width: 640px) {
  .book {
    width: 46vw;
    margin-right: 14vw;
  }
  .is-in .book__cover {
    transform: translate(-22%, 8%) rotate(-10deg);
  }
  .is-in .book__p1 {
    transform: translate(6%, -2%) rotate(-2deg);
  }
  .is-in .book__p2 {
    transform: translate(22%, -5%) rotate(3deg);
  }
  .is-in .book__p3 {
    transform: translate(38%, 3%) rotate(8deg);
  }
  .book-stage {
    min-height: 340px;
  }
}

/* ---------- passi ---------- */
.steps {
  padding: 140px 0 100px;
}
.steps__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: s;
}
.steps__list li {
  position: relative;
  padding: 34px 28px 30px;
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.steps__list li:nth-child(2) {
  --d: 0.08s;
  transform-origin: center;
}
.steps__list li:nth-child(3) {
  --d: 0.16s;
}
.steps__list span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--sun);
  color: #2a2205;
  font: 600 1.3rem/1 var(--serif);
}
.steps__list h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.steps__list p {
  color: var(--muted);
  margin: 0;
}

/* ---------- promessa privacy ---------- */
.promise {
  padding: 40px 0 120px;
}
.promise__in {
  padding: 56px;
  border-radius: 32px;
  background: var(--brand-tint);
}
.promise h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  margin-bottom: 32px;
  max-width: 18em;
}
.promise__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-bottom: 28px;
}
.promise__grid p {
  margin: 0;
  font-size: 0.98rem;
}
.promise__grid strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
}

/* ---------- FAQ ---------- */
.faq {
  padding: 40px 0 120px;
}
.faq__in {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: start;
}
.faq .section-head {
  position: sticky;
  top: 110px;
  margin: 0;
}
.qa {
  border-bottom: 1px solid var(--line);
}
.qa summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
  font: 560 1.3rem/1.25 var(--serif);
}
.qa summary::-webkit-details-marker {
  display: none;
}
.qa__icon {
  position: relative;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--sunk);
  transition: background 0.2s, transform 0.3s;
}
.qa__icon::before,
.qa__icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s;
}
.qa__icon::after {
  transform: rotate(90deg);
}
.qa[open] .qa__icon {
  background: var(--sun);
  transform: rotate(180deg);
}
.qa[open] .qa__icon::after {
  transform: rotate(0);
}
.qa p {
  margin: 0;
  padding: 0 56px 26px 0;
  color: var(--muted);
}
.qa[open] p {
  animation: pop 0.35s both;
}

/* ---------- scarica ---------- */
.download {
  padding: 0 0 130px;
}
.download__card {
  position: relative;
  overflow: hidden;
  padding: 80px 32px;
  border-radius: 36px;
  background: var(--brand);
  color: var(--on-brand);
  text-align: center;
}
.download__card::before,
.download__card::after {
  content: '';
  position: absolute;
  border-radius: 50%;
}
.download__card::before {
  width: 380px;
  height: 380px;
  left: -120px;
  bottom: -200px;
  background: var(--sun);
  opacity: 0.9;
}
.download__card::after {
  width: 300px;
  height: 300px;
  right: -90px;
  top: -150px;
  background: var(--coral);
  opacity: 0.85;
}
.download__card > * {
  position: relative;
  z-index: 1;
}
.download__icon {
  margin: 0 auto 26px;
  border-radius: 24px;
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.5);
}
.download h2 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  margin-bottom: 14px;
}
.download p {
  opacity: 0.9;
}
.stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 34px 0 26px;
}
.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 0 22px;
  border-radius: 16px;
  background: #121715;
  color: #fff;
  text-decoration: none;
  line-height: 1.1;
  font-weight: 750;
  font-size: 1.15rem;
  text-align: left;
  transition: transform 0.2s;
}
a.store:hover {
  transform: translateY(-3px);
}
.store small {
  display: block;
  font-weight: 600;
  font-size: 0.72rem;
  opacity: 0.75;
}
.store--soon {
  background: rgba(18, 23, 21, 0.55);
  outline: 1px dashed rgba(255, 255, 255, 0.4);
}
.store.is-yours {
  box-shadow: 0 0 0 3px var(--sun);
}
.download__small {
  font-size: 0.88rem;
}
.download__small a {
  color: inherit;
}
@media (prefers-color-scheme: dark) {
  .download__card {
    background: #1f7a5c;
    color: #fff;
  }
}

/* ---------- piè di pagina ---------- */
.foot {
  padding: 80px 0 40px;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}
.foot__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
}
.foot__word {
  margin: 0 0 10px;
  font: italic 560 2.4rem/1 var(--serif);
  color: var(--brand);
}
.foot__brand p:last-child {
  color: var(--muted);
  max-width: 24em;
}
.foot__h {
  margin-bottom: 14px;
  font: 800 0.8rem/1 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.foot ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.foot a {
  color: var(--ink);
  text-decoration: none;
}
.foot a:hover {
  color: var(--brand);
  text-decoration: underline;
}
.foot__small {
  margin: 56px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- pagine di testo ---------- */
.doc {
  padding: 56px 0 120px;
}
.doc__in {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 24px 72px;
}
.doc__head {
  grid-column: 1 / -1;
  max-width: 780px;
  padding-bottom: 40px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.doc__head h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
}
.doc__lead {
  margin-top: 20px;
  font-size: 1.2rem;
  color: var(--muted);
}
.doc__toc {
  position: sticky;
  top: 100px;
  align-self: start;
  font-size: 0.92rem;
}
.doc__toc p {
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.doc__toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: t;
  display: grid;
  gap: 2px;
}
.doc__toc li {
  counter-increment: t;
}
.doc__toc a {
  display: flex;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
}
.doc__toc a::before {
  content: counter(t, decimal-leading-zero);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.doc__toc a:hover,
.doc__toc a.is-here {
  background: var(--brand-tint);
}
.prose {
  max-width: 760px;
}
.prose section {
  padding-bottom: 28px;
}
.prose h2 {
  font-size: 1.85rem;
  margin: 26px 0 16px;
}
.prose h3 {
  font: 800 1.02rem/1.3 var(--sans);
  margin: 22px 0 6px;
}
.prose ul {
  padding-left: 1.2em;
}
.prose li {
  margin-bottom: 8px;
}
.prose li::marker {
  color: var(--brand);
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 20px;
  font-size: 0.94rem;
}
.prose th,
.prose td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.prose th {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--sunk);
}
.prose th:first-child {
  border-radius: 10px 0 0 10px;
}
.prose th:last-child {
  border-radius: 0 10px 10px 0;
}

/* ---------- moduli ---------- */
.form-page {
  padding: 56px 0 120px;
}
.form-page__in {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.form-page__head h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  margin-bottom: 22px;
}
.form-page__head > p {
  color: var(--muted);
  font-size: 1.12rem;
}
.form-page__tips {
  display: grid;
  gap: 14px;
  margin-top: 32px;
}
.form-page__tips p {
  margin: 0;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--sunk);
  font-size: 0.95rem;
}
.form-card {
  padding: 36px;
}
.form {
  display: grid;
  gap: 18px;
}
.field {
  display: grid;
  gap: 6px;
  font-weight: 750;
  font-size: 0.92rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  font: 500 1rem/1.4 var(--sans);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea {
  resize: vertical;
  min-height: 150px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-tint);
}
.code-input {
  font: 600 1.8rem/1 var(--serif) !important;
  letter-spacing: 0.4em;
  text-align: center;
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.95rem;
}
.check input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--brand);
}
.form__legal {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}
.form .btn {
  justify-self: start;
}
.notice {
  margin: 0 0 22px;
  padding: 14px 18px;
  border-radius: 14px;
  font-weight: 650;
}
.notice--ok {
  background: var(--brand-tint);
  color: var(--brand);
}
.notice--err {
  background: color-mix(in srgb, var(--red) 12%, var(--card));
  color: var(--red);
}
.form-card__done {
  margin: 0;
  font-size: 1.1rem;
}
.lost {
  text-align: center;
  padding: 60px 0;
}
.lost__code {
  font: italic 500 clamp(6rem, 20vw, 12rem)/1 var(--serif);
  color: var(--brand);
  margin: 0;
}
.lost h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin: 10px 0 14px;
}
.lost p {
  color: var(--muted);
  margin-bottom: 30px;
}

/* ---------- schermi stretti ---------- */
@media (max-width: 980px) {
  .hero__in,
  .feat,
  .yearbook__in,
  .faq__in,
  .form-page__in {
    grid-template-columns: 1fr;
  }
  .feat {
    gap: 40px;
  }
  .feat--flip .feat__copy {
    order: 0;
  }
  .hero__art {
    margin-top: 30px;
    width: min(320px, 78vw);
  }
  .toast {
    left: -30px;
  }
  .sticky-note {
    right: -24px;
  }
  .faq .section-head {
    position: static;
  }
  .promise__grid {
    grid-template-columns: 1fr 1fr;
  }
  .foot__grid {
    grid-template-columns: 1fr 1fr;
  }
  .foot__brand {
    grid-column: 1 / -1;
  }
  .doc__in {
    grid-template-columns: 1fr;
  }
  .doc__toc {
    position: static;
  }
}
@media (max-width: 640px) {
  body {
    font-size: 1rem;
  }
  .hero {
    padding-top: 120px;
    padding-bottom: 80px;
  }
  .hero::before {
    display: none;
  }
  .toast {
    left: -10px;
    top: 8%;
    width: 230px;
  }
  .sticky-note {
    right: -8px;
    width: 150px;
  }
  .features,
  .steps {
    padding-top: 96px;
  }
  .section-head {
    margin-bottom: 40px;
  }
  .demo {
    padding: 18px;
  }
  .view--settimana {
    grid-template-columns: repeat(3, 1fr);
  }
  .view--settimana .wk:nth-child(n + 4) {
    display: none;
  }
  .views {
    min-height: 330px;
  }
  .steps__list,
  .promise__grid {
    grid-template-columns: 1fr;
  }
  .promise__in {
    padding: 32px 24px;
  }
  .yearbook {
    padding: 96px 0;
  }
  .qa p {
    padding-right: 0;
  }
  .download__card {
    padding: 56px 20px;
  }
  .form-card {
    padding: 24px;
  }
  .prose table,
  .prose thead,
  .prose tbody,
  .prose tr,
  .prose td {
    display: block;
  }
  .prose thead {
    display: none;
  }
  .prose tr {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  .prose td {
    border: 0;
    padding: 4px 0;
  }
  .prose td:first-child {
    font-weight: 800;
  }
}

/* ---------- Plus: prezzi in home ---------- */
.pricing {
  padding: 40px 0 120px;
}
.pricing .section-head {
  margin-bottom: 48px;
}
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
  align-items: stretch;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 32px 30px;
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.plan h3 {
  font-size: 1.35rem;
  margin: 0;
}
.plan--best {
  background: var(--brand);
  color: var(--on-brand);
  box-shadow: var(--shadow-lg);
}
.plan--best .plan__sub,
.plan--best .plan__desc {
  color: inherit;
  opacity: 0.86;
}
.plan__badge {
  position: absolute;
  top: -13px;
  right: 24px;
  margin: 0;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--sun);
  color: #3a2a00;
  font-weight: 850;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transform: rotate(3deg);
}
.plan__price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 6px 0 0;
}
.plan__price strong {
  font: 560 clamp(2.4rem, 4vw, 3.1rem) / 1 var(--serif);
  letter-spacing: -0.03em;
}
.plan__price span {
  font-weight: 700;
}
.plan__sub,
.plan__desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.plan--list {
  background: var(--sunk);
  box-shadow: none;
}
.plan--list .ticks {
  margin-top: 6px;
}
.pricing__small {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

/* dati identificativi nei testi legali */
.ids {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 14px 0 0;
}
.prose .ids li,
.ids li {
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--sunk);
  font-size: 0.9rem;
}
.prose .ids li::before {
  display: none;
}
.ids span {
  color: var(--muted);
  font-weight: 700;
  margin-right: 4px;
}
.notice--warn {
  background: color-mix(in srgb, var(--sun) 22%, var(--card));
  color: var(--ink);
}

/* ---------- pannello admin ---------- */
.is-admin {
  background: var(--paper);
}
.adm-top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.adm-top__in {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 64px;
}
.adm-top .brand {
  font-size: 1.2rem;
}
.adm-top .brand em {
  font: italic 500 0.95rem/1 var(--serif);
  color: var(--muted);
}
.adm-nav {
  display: flex;
  gap: 4px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}
.adm-nav a {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
}
.adm-nav a:hover {
  background: var(--sunk);
}
.adm-nav a[aria-current='page'] {
  background: var(--brand-tint);
  color: var(--brand);
}
.adm-top__me {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--muted);
}
.adm-top__me span {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.adm {
  padding: 40px 0 96px;
}
.adm-head {
  margin-bottom: 28px;
}
.adm-head h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0 0 8px;
}
.adm-head p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  max-width: 680px;
}
.adm-card {
  padding: 28px;
  margin-bottom: 22px;
}
.adm-card h2 {
  margin: 0 0 8px;
}
.adm-card__h {
  font-size: 1.25rem;
}
.muted {
  color: var(--muted);
}
.adm-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}
.stat {
  display: grid;
  gap: 2px;
  padding: 22px 24px;
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.stat strong {
  font: 560 2.4rem/1.05 var(--serif);
  letter-spacing: -0.03em;
}
.stat span {
  font-weight: 750;
}
.stat small {
  color: var(--muted);
}
.stat--brand {
  background: var(--brand);
  color: var(--on-brand);
}
.stat--brand small {
  color: inherit;
}
.adm-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.adm-plus-switch h2 {
  font-size: 2.2rem;
}
.adm-plus-switch.is-on h2 {
  color: var(--brand);
}
.adm-plus-switch form {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 18px;
}
.adm-check {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 4px;
}
.adm-check a {
  display: grid;
  gap: 2px;
  padding: 10px 12px 10px 42px;
  border-radius: 14px;
  color: var(--ink);
  text-decoration: none;
  position: relative;
}
.adm-check a:hover {
  background: var(--sunk);
}
.adm-check a::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 12px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--line);
}
.adm-check .is-done a::before {
  border-color: var(--brand);
  background: var(--brand)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center/100% no-repeat;
}
.adm-check span {
  color: var(--muted);
  font-size: 0.9rem;
}
.adm-log {
  list-style: none;
  padding: 0;
  margin: 0;
}
.adm-log li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.adm-log li:last-child {
  border-bottom: 0;
}
.adm-log time {
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

/* moduli del pannello */
.adm-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  align-items: start;
}
.adm-form fieldset {
  margin: 0;
  padding: 24px 26px;
  border: 0;
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}
.adm-form legend {
  float: left;
  width: 100%;
  margin-bottom: 4px;
  font: 600 1.2rem/1.2 var(--serif);
}
.adm-form legend + * {
  clear: both;
}
.adm-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  align-items: start;
}
.adm-form .field {
  align-content: start;
}
.adm-form .field input,
.adm-form .field select,
.adm-form .field textarea {
  padding: 11px 14px;
}
.adm-form .field textarea {
  min-height: 110px;
}
.field input[readonly] {
  color: var(--muted);
  background: var(--sunk);
}
.field__hint {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.85rem;
}
.input-price {
  font-variant-numeric: tabular-nums;
}
.adm-save {
  position: sticky;
  bottom: 16px;
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--card) 90%, transparent);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
  justify-self: start;
}
.adm-more summary {
  cursor: pointer;
  font-weight: 750;
  color: var(--brand);
  list-style: none;
}
.adm-more summary::-webkit-details-marker {
  display: none;
}
.adm-more summary::after {
  content: ' ↓';
}
.adm-more[open] summary::after {
  content: ' ↑';
}
.adm-more[open] > :not(summary) {
  margin-top: 14px;
}

/* interruttore */
.switch {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
}
.switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.switch__track {
  flex: none;
  position: relative;
  width: 48px;
  height: 28px;
  margin-top: 1px;
  border-radius: 999px;
  background: var(--line);
  transition: background 0.2s;
}
.switch__track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s cubic-bezier(0.3, 0.7, 0.2, 1.3);
}
.switch input:checked + .switch__track {
  background: var(--brand);
}
.switch input:checked + .switch__track::after {
  transform: translateX(20px);
}
.switch input:focus-visible + .switch__track {
  box-shadow: 0 0 0 4px var(--brand-tint);
}
.switch__text {
  display: grid;
  gap: 2px;
}
.switch__text small {
  color: var(--muted);
  font-size: 0.88rem;
}

/* anteprima della scheda Plus nell'app */
.adm-preview {
  position: sticky;
  top: 88px;
}
.adm-preview__label {
  margin: 0 0 10px;
  color: var(--muted);
  font-weight: 750;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.adm-phone {
  padding: 12px;
  border-radius: 40px;
  background: #141917;
  box-shadow: var(--shadow-lg);
}
.adm-phone__screen {
  display: grid;
  gap: 10px;
  padding: 26px 20px 22px;
  border-radius: 30px;
  background: #fbfaf6;
  color: #1d2421;
  --brand: #1f7a5c;
  --brand-tint: #dcefe6;
  --muted: #5e6964;
}
.adm-phone__screen h3 {
  margin: 0;
  font-size: 1.6rem;
}
.adm-phone__eyebrow,
.adm-phone__tag,
.adm-phone__small {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}
.adm-phone__screen .ticks {
  margin: 4px 0;
  font-size: 0.92rem;
}
.adm-phone__plan {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border: 2px solid #dfe3dd;
  border-radius: 16px;
}
.adm-phone__plan.is-best {
  border-color: var(--brand);
  background: var(--brand-tint);
}
.adm-phone__plan div {
  display: grid;
  gap: 2px;
}
.adm-phone__plan small {
  color: var(--muted);
  font-size: 0.78rem;
}
.adm-phone__price {
  text-align: right;
}
.adm-phone__price b {
  font: 600 1.2rem/1 var(--serif);
  white-space: nowrap;
}
.adm-phone__price small {
  white-space: nowrap;
}
.adm-phone__btn {
  display: block;
  margin-top: 6px;
  padding: 13px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  text-align: center;
}
.adm-phone__off {
  margin: 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: #fdf1d3;
  font-size: 0.82rem;
  text-align: center;
}

/* forma giuridica */
.adm-kinds {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.adm-kind {
  position: relative;
  cursor: pointer;
}
.adm-kind input {
  position: absolute;
  opacity: 0;
}
.adm-kind span {
  display: grid;
  gap: 4px;
  height: 100%;
  padding: 16px;
  border: 2px solid var(--line);
  border-radius: 16px;
  transition: border-color 0.2s, background 0.2s;
}
.adm-kind small {
  color: var(--muted);
  font-size: 0.85rem;
}
.adm-kind input:checked + span {
  border-color: var(--brand);
  background: var(--brand-tint);
}
.adm-kind input:focus-visible + span {
  box-shadow: 0 0 0 4px var(--brand-tint);
}
.adm-legal-preview p {
  margin: 0 0 10px;
}
.adm-legal-preview .muted {
  margin-top: 14px;
  font-size: 0.8rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.adm-legal-preview .ids {
  margin-bottom: 6px;
}
.adm-legal-preview__foot {
  font-size: 0.9rem;
}

/* gruppi */
.adm-search {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.adm-search input[name='q'] {
  flex: 1 1 280px;
  padding: 12px 18px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font: 500 1rem/1.4 var(--sans);
}
.adm-search input[name='q']:focus {
  outline: 0;
  border-color: var(--brand);
}
.adm-groups {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
}
.adm-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 24px;
  padding: 22px 26px;
}
.adm-group h2 {
  margin: 0 0 4px;
  font-size: 1.3rem;
}
.adm-group p {
  margin: 0;
  font-size: 0.92rem;
}
.adm-group__owner {
  margin-top: 4px !important;
}
.adm-group__plus {
  display: grid;
  justify-items: end;
  align-content: start;
  gap: 4px;
  text-align: right;
}
.adm-group__plus small {
  font-size: 0.82rem;
}
.adm-group__actions {
  grid-column: 1 / -1;
}
.adm-group__actions .form {
  gap: 12px;
  padding: 18px;
  border-radius: 16px;
  background: var(--sunk);
}
.adm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.adm-actions input[type='date'] {
  padding: 9px 12px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font: 600 0.95rem var(--sans);
}
.pill {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--sunk);
  font-weight: 750;
  font-size: 0.85rem;
  white-space: nowrap;
}
.pill--plus {
  background: var(--brand-tint);
  color: var(--brand);
}
.pill--soon {
  background: color-mix(in srgb, var(--sun) 28%, var(--card));
  color: var(--ink);
}

/* accesso */
.adm-login {
  min-height: 80vh;
  display: grid;
  place-items: center;
  padding: 0 16px;
}
.adm-login__card {
  width: min(420px, 100%);
  padding: 36px;
  text-align: center;
}
.adm-login__card img {
  border-radius: 14px;
}
.adm-login__card h1 {
  font-size: 1.8rem;
  margin: 14px 0 6px;
}
.adm-login__card > p {
  color: var(--muted);
  margin: 0 0 22px;
}
.adm-login__card .form {
  text-align: left;
}
.adm-login__card .form .btn {
  justify-self: stretch;
  justify-content: center;
}

/* testi legali */
.adm-docs {
  display: grid;
  gap: 14px;
}
.adm-doc {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
}
.adm-doc h2 {
  margin: 0 0 4px;
}
.adm-doc p {
  margin: 0;
}
.adm-doc__act,
.adm-sec__act {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.adm-form .adm-sec .field textarea {
  font: 500 0.88rem/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  tab-size: 2;
}
.adm-sec:target {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}
.adm-danger {
  color: var(--red);
}
.adm-ph {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 0.88rem;
}
.adm-ph code {
  display: inline-block;
  margin-right: 4px;
  font-weight: 700;
}
.adm-preview .adm-card + .adm-card {
  margin-top: 14px;
}
.adm-save {
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .adm-split,
  .adm-cols {
    grid-template-columns: 1fr;
  }
  .adm-preview {
    position: static;
    max-width: 380px;
  }
  .adm-stats {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 680px) {
  .adm-top__in {
    flex-wrap: wrap;
    gap: 8px 16px;
    padding: 10px 0;
  }
  .adm-nav {
    order: 3;
    flex-basis: 100%;
  }
  .adm-top__me {
    margin-left: auto;
  }
  .adm-top__me span {
    display: none;
  }
  .adm-kinds {
    grid-template-columns: 1fr;
  }
  .adm-group {
    grid-template-columns: 1fr;
  }
  .adm-group__plus {
    justify-items: start;
    text-align: left;
  }
  .adm-form fieldset {
    padding: 20px;
  }
  .adm-save {
    justify-self: stretch;
    border-radius: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
