@font-face {
    font-family: 'Fraunces';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('../fonts/fraunces.woff2') format('woff2');
  }
  @font-face {
    font-family: 'IBM Plex Sans';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('../fonts/ibm-plex-sans.woff2') format('woff2');
  }

  :root {
    --cream: #f6f1e4;
    --paper: #fffcf5;
    --ink: #2b2620;
    --ink-soft: #6b6153;
    --olive: #a3916a;
    --olive-deep: #8a7a56;
    --teal: #2f8f86;
    --teal-deep: #216b64;
    --coral: #d1703f;
    --line: rgba(43, 38, 32, 0.14);
    --line-strong: rgba(43, 38, 32, 0.3);
  }

  @media (prefers-color-scheme: dark) {
    :root {
      --cream: #1c1912;
      --paper: #241f16;
      --ink: #ece5d4;
      --ink-soft: #b3a68d;
      --olive: #c2b07d;
      --olive-deep: #a08d5e;
      --teal: #57c2b5;
      --teal-deep: #3d9a8f;
      --coral: #e2895f;
      --line: rgba(236, 229, 212, 0.16);
      --line-strong: rgba(236, 229, 212, 0.3);
    }
  }
  :root[data-theme="dark"] {
    --cream: #1c1912;
    --paper: #241f16;
    --ink: #ece5d4;
    --ink-soft: #b3a68d;
    --olive: #c2b07d;
    --olive-deep: #a08d5e;
    --teal: #57c2b5;
    --teal-deep: #3d9a8f;
    --coral: #e2895f;
    --line: rgba(236, 229, 212, 0.16);
    --line-strong: rgba(236, 229, 212, 0.3);
  }
  :root[data-theme="light"] {
    --cream: #f6f1e4;
    --paper: #fffcf5;
    --ink: #2b2620;
    --ink-soft: #6b6153;
    --olive: #a3916a;
    --olive-deep: #8a7a56;
    --teal: #2f8f86;
    --teal-deep: #216b64;
    --coral: #d1703f;
    --line: rgba(43, 38, 32, 0.14);
    --line-strong: rgba(43, 38, 32, 0.3);
  }

  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  }

  body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: 'IBM Plex Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
    font-weight: 400;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
  }

  h1, h2, h3 {
    font-family: 'Fraunces', ui-serif, Georgia, serif;
    font-weight: 600;
    text-wrap: balance;
    margin: 0;
    color: var(--ink);
  }

  .script {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-style: italic;
  }

  .eyebrow {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--olive-deep);
  }

  a { color: inherit; }

  .wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 3rem);
  }

  /* nav */
  .nav {
    position: sticky;
    top: 0;
    z-index: 20;
    background: color-mix(in srgb, var(--cream) 88%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
  }
  .nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.8rem clamp(1.25rem, 4vw, 3rem);
  }
  .brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
  }
  .brand img { width: 34px; height: auto; flex-shrink: 0; }
  .brand-text {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.01em;
    line-height: 1.2;
  }
  .brand-text small {
    display: block;
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 500;
    font-size: 0.64rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-top: 0.15rem;
  }
  .nav-links {
    display: flex;
    gap: clamp(0.8rem, 2vw, 1.4rem);
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.82rem;
  }
  .nav-links a {
    text-decoration: none;
    color: var(--ink-soft);
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
  }
  .nav-links a:hover, .nav-links a:focus-visible { color: var(--olive-deep); border-color: var(--olive-deep); }
  .nav-links li:nth-child(n+3) { display: none; }
  @media (min-width: 720px) { .nav-links li:nth-child(n+3) { display: block; } }

  /* hero */
  .hero {
    padding: clamp(2.2rem, 6vw, 4.5rem) 0 clamp(2rem, 5vw, 3.5rem);
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(2rem, 5vw, 3.5rem);
    align-items: center;
  }
  @media (max-width: 860px) { .hero { grid-template-columns: 1fr; } }

  .hero h1 {
    font-size: clamp(2.1rem, 4.6vw, 3.1rem);
    line-height: 1.1;
    margin-top: 0.6rem;
  }
  .hero-lede {
    margin-top: 1.1rem;
    max-width: 46ch;
    color: var(--ink-soft);
    font-size: 1.05rem;
  }
  .hero-cta {
    margin-top: 1.6rem;
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
    align-items: center;
  }
  .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.3rem;
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  }
  .btn:hover { transform: translateY(-1px); }
  .btn-primary { background: var(--olive); color: #2b2410; }
  .btn-primary:hover { background: var(--olive-deep); color: #fff8ea; }
  .btn-ghost { border-color: var(--line-strong); color: var(--ink); }
  .btn-ghost:hover { border-color: var(--olive-deep); color: var(--olive-deep); }

  .hero-art { position: relative; }
  .coast { width: 100%; height: auto; display: block; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--line-strong); }
  .badge {
    position: absolute;
    top: -14px;
    right: 4%;
    width: 112px;
    height: 112px;
    border-radius: 50%;
    background: var(--olive);
    color: #2b2410;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 3px dashed color-mix(in srgb, var(--paper) 70%, transparent);
    font-family: 'IBM Plex Sans', sans-serif;
  }
  .badge .b-eyebrow { font-size: 0.5rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; }
  .badge .b-main { font-family: 'Fraunces', serif; font-weight: 600; font-size: 0.76rem; line-height: 1.25; margin-top: 0.2rem; }

  section { padding: clamp(3rem, 7vw, 5rem) 0; }
  .section-head { margin-bottom: clamp(1.8rem, 4vw, 2.6rem); }
  .section-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin-top: 0.5rem; }
  .section-head p { color: var(--ink-soft); max-width: 58ch; margin-top: 0.7rem; }

  /* host / pull-quote */
  .host {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: clamp(1.6rem, 4vw, 2.8rem);
    align-items: start;
  }
  @media (max-width: 700px) { .host { grid-template-columns: 1fr; } }
  .host-avatar {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    background: var(--paper);
    border: 3px solid var(--paper);
    box-shadow: 0 0 0 2px var(--olive);
    overflow: hidden;
    flex-shrink: 0;
  }
  .host-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .quote {
    border-left: 3px solid var(--olive);
    padding-left: 1.4rem;
    margin: 0 0 1.4rem;
  }
  .quote .mark {
    font-family: 'Fraunces', serif;
    font-size: 2.6rem;
    color: var(--olive);
    line-height: 0.5;
    display: block;
    margin-bottom: 0.6rem;
  }
  .quote p { margin: 0; font-size: 1.1rem; font-family: 'Fraunces', serif; font-style: italic; color: var(--ink); }
  .quote cite {
    display: block;
    margin-top: 0.7rem;
    font-style: normal;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-soft);
  }
  .quote.small p { font-size: 0.98rem; }

  /* features */
  .features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
  }
  @media (max-width: 780px) { .features { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 480px) { .features { grid-template-columns: 1fr; } }
  .feature {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 1.4rem 1.3rem;
  }
  .feature svg { width: 26px; height: 26px; stroke: var(--olive-deep); }
  .feature h3 { font-size: 0.95rem; font-weight: 600; margin-top: 0.7rem; font-family: 'IBM Plex Sans', sans-serif; }
  .feature p { margin: 0.25rem 0 0; color: var(--ink-soft); font-size: 0.88rem; }

  /* gallery plates */
  .plates {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.4rem;
  }
  @media (max-width: 700px) { .plates { grid-template-columns: 1fr; } }
  .plate {
    position: relative;
    border: 1px solid var(--line-strong);
    background: var(--paper);
    padding: 1.1rem 1.1rem 1rem;
    opacity: 0;
    transform: translateY(14px);
    animation: rise 0.6s ease forwards;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
  }
  @supports not (animation-timeline: view()) {
    .plate { opacity: 1; transform: none; }
  }
  .plate::before, .plate::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    border-color: var(--olive-deep);
  }
  .plate::before { top: -1px; left: -1px; border-top: 2px solid var(--olive-deep); border-left: 2px solid var(--olive-deep); }
  .plate::after { bottom: -1px; right: -1px; border-bottom: 2px solid var(--olive-deep); border-right: 2px solid var(--olive-deep); }
  @keyframes rise { to { opacity: 1; transform: translateY(0); } }
  .plate svg { width: 100%; height: auto; display: block; }
  .plate img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
  .interni-group { margin-bottom: clamp(2rem, 5vw, 3rem); }
  .interni-group:last-child { margin-bottom: 0; }
  .interni-group h3 {
    font-size: 1.15rem;
    margin-bottom: 1.1rem;
  }
  .plate-cap {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 0.8rem;
    font-size: 0.85rem;
  }
  .plate-cap b { font-family: 'Fraunces', serif; font-weight: 600; font-size: 1rem; }
  .plate-cap span { color: var(--ink-soft); font-size: 0.75rem; }

  /* apartments */
  .apart-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.6rem;
  }
  @media (max-width: 700px) { .apart-grid { grid-template-columns: 1fr; } }
  .apart-card {
    border: 1px solid var(--line-strong);
    background: var(--paper);
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  .apart-card svg { width: 40px; height: 40px; stroke: var(--olive); }
  .apart-card h3 { font-size: 1.3rem; }
  .apart-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
  }
  .apart-list li {
    display: flex;
    gap: 0.6rem;
    align-items: baseline;
    font-size: 0.92rem;
  }
  .apart-list li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--olive-deep);
    flex-shrink: 0;
    margin-top: 0.45rem;
  }
  .apart-note {
    margin-top: auto;
    padding-top: 0.9rem;
    border-top: 1px dashed var(--line-strong);
    font-size: 0.88rem;
    color: var(--ink-soft);
    font-style: italic;
  }
  .apart-price-note {
    text-align: center;
    color: var(--ink-soft);
    font-size: 0.9rem;
    margin-top: 1.6rem;
  }

  /* dintorni / spots */
  .spot-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
  }
  .spot {
    display: grid;
    grid-template-columns: 4.6rem 1fr;
    gap: 1.1rem;
    align-items: baseline;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
  }
  .spot:first-child { padding-top: 0; }
  .spot-dist {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    color: var(--teal-deep);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
  }
  .spot h3 { font-size: 1rem; font-family: 'IBM Plex Sans', sans-serif; font-weight: 600; }
  .spot p { margin: 0.2rem 0 0; color: var(--ink-soft); font-size: 0.9rem; }

  /* sapori / menu card */
  .menu-card {
    border: 1px solid var(--line-strong);
    background: var(--paper);
    padding: clamp(1.6rem, 4vw, 2.4rem);
  }
  .menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 2.5rem;
  }
  @media (max-width: 700px) { .menu-grid { grid-template-columns: 1fr; } }
  .menu-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
  }
  .menu-grid .menu-item:nth-last-child(-n+1) { border-bottom: none; }
  .menu-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .menu-icon svg { width: 24px; height: 24px; }
  .menu-item h3 { font-size: 1.02rem; }
  .menu-item p { margin: 0.3rem 0 0; color: var(--ink-soft); font-size: 0.88rem; }
  .amari-line {
    margin-top: 1.4rem;
    padding-top: 1.2rem;
    border-top: 1px dashed var(--line-strong);
    font-size: 0.9rem;
    color: var(--ink-soft);
    text-align: center;
  }
  .amari-line b { color: var(--ink); font-weight: 600; }

  /* contact */
  .contact-band {
    background: var(--olive-deep);
    color: #fbf5e6;
  }
  .contact-band .section-head p { color: #ecdfc2; }
  .contact-band .eyebrow { color: #e8dcb9; }
  .contact-band h2 { color: #fdf8ec; }
  .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
  }
  @media (max-width: 700px) { .contact-grid { grid-template-columns: 1fr; } }
  .contact-card {
    border: 1px solid rgba(251, 245, 230, 0.28);
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .phone-figure {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: clamp(1.4rem, 3vw, 1.85rem);
    font-variant-numeric: tabular-nums;
    margin-top: 0.5rem;
  }
  .contact-card p { margin-top: 0.7rem; }
  .contact-card a.plain { text-decoration: underline; text-underline-offset: 3px; }

  footer {
    padding: 1.6rem clamp(1.25rem, 4vw, 3rem) 2.2rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.6rem;
    font-size: 0.78rem;
    color: #ecdfc2;
    background: var(--olive-deep);
    border-top: 1px solid rgba(251, 245, 230, 0.2);
  }
