  :root {
    --sea-deep: #123B52;
    --sea-mid: #2C6E8E;
    --sea-light: #8FC4D6;
    --sky-pale: #E4F1F1;
    --terracotta: #C4694A;
    --terracotta-soft: #E3A489;
    --sand: #EFE6D3;
    --bg: #FBF9F4;
    --surface: #FFFFFF;
    --surface-2: #F3EFE4;
    --text: #16242E;
    --text-soft: #495A63;
    --border: rgba(18,59,82,0.14);
    --shadow: rgba(18,59,82,0.10);
    --radius: 2px;
    --maxw: 1180px;
  }
  :root:not([data-theme="light"]) {
    @media (prefers-color-scheme: dark) {
      --bg: #0E1B22;
      --surface: #142832;
      --surface-2: #1A323D;
      --text: #EFEDE6;
      --text-soft: #B7C4C9;
      --border: rgba(255,255,255,0.12);
      --shadow: rgba(0,0,0,0.35);
      --sky-pale: #1A323D;
      --sand: #23303350;
    }
  }
  :root[data-theme="dark"] {
    --bg: #0E1B22;
    --surface: #142832;
    --surface-2: #1A323D;
    --text: #EFEDE6;
    --text-soft: #B7C4C9;
    --border: rgba(255,255,255,0.12);
    --shadow: rgba(0,0,0,0.35);
    --sky-pale: #1A323D;
    --sand: #23303350;
  }

  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; scroll-padding-top: calc(100px + env(safe-area-inset-top, 0px)); }
  body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Work Sans', system-ui, -apple-system, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  img { max-width: 100%; display: block; }
  h1, h2, h3 { font-family: 'Fraunces', Georgia, serif; font-weight: 600; margin: 0; color: var(--text); letter-spacing: -0.01em; }
  a { color: inherit; }
  .wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
  .overflow-x { overflow-x: auto; }

  /* ---------- NAV ---------- */
  header.nav {
    position: sticky;
    top: 0;
    top: env(safe-area-inset-top, 0px);
    z-index: 50;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
  }
  .nav-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 8px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
  }
  .wordmark {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 0.02em;
    color: var(--sea-deep);
    text-decoration: none;
    white-space: nowrap;
  }
  .nav-logo {
    display: block;
    height: 74px;
    width: auto;
  }
  :root[data-theme="dark"] .wordmark, body:not([data-force-light]) :root:not([data-theme="light"]) .wordmark {}
  .navlinks {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.94rem;
  }
  .navlinks a { text-decoration: none; color: var(--text-soft); transition: color .2s; }
  .navlinks a:hover { color: var(--sea-deep); }
  .nav-cta {
    background: var(--sea-deep);
    color: #fff;
    padding: 10px 20px;
    border-radius: var(--radius);
    text-decoration: none;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: background .2s;
  }
  .nav-cta:hover { background: var(--terracotta); }
  .nav-cart { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 16px; font-size: 0.9rem; color: var(--sea-deep); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; transition: background .2s, color .2s; }
  .nav-cart:hover { background: var(--sea-deep); color: #fff; }
  .nav-cart-count { position: absolute; top: -7px; right: -7px; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 9px; background: var(--terracotta); color: #fff; font-size: 0.7rem; line-height: 18px; text-align: center; font-weight: 600; }
  .nav-toggle { display: none; }

  /* ---------- HERO ---------- */
  .hero { display: block; }
  .hero-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 860px) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    column-gap: 10px;
    max-width: 1760px;
    margin: 16px auto 0;
    padding: 0 16px;
  }
  .hero-banner { grid-column: 2; grid-row: 1; padding: 0; line-height: 0; align-self: center; }
  .hero-stage .hero-copy { grid-column: 2; grid-row: 2; width: 100%; padding-top: 30px; padding-bottom: 64px; }
  .hero-banner img {
    width: 100%;
    height: auto;
    display: block;
    /* il bianco del banner diventa il colore della pagina */
    mix-blend-mode: multiply;
    /* bordi sfumati su tutti i lati */
    -webkit-mask-image:
      linear-gradient(to right, transparent 0%, #000 9%, #000 91%, transparent 100%),
      linear-gradient(to bottom, transparent 0%, #000 7%, #000 62%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
      linear-gradient(to right, transparent 0%, #000 9%, #000 91%, transparent 100%),
      linear-gradient(to bottom, transparent 0%, #000 7%, #000 62%, transparent 100%);
    mask-composite: intersect;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .hero-banner img { mix-blend-mode: normal; }
  }
  :root[data-theme="dark"] .hero-banner img { mix-blend-mode: normal; }

  /* ---------- COLONNE LATERALI: più immagini in verticale, scorrono da sole ---------- */
  .side-col {
    grid-row: 1 / span 2;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 400px;
    margin-bottom: 36px;
    min-height: 0;
  }
  .side-col.left  { grid-column: 1; justify-self: end; }
  .side-col.right { grid-column: 3; justify-self: start; }
  .side-col.left {
    -webkit-mask-image:
      linear-gradient(to right, transparent 0%, #000 7%, #000 70%, transparent 100%),
      linear-gradient(to bottom, transparent 0%, #000 4%, #000 94%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
      linear-gradient(to right, transparent 0%, #000 7%, #000 70%, transparent 100%),
      linear-gradient(to bottom, transparent 0%, #000 4%, #000 94%, transparent 100%);
    mask-composite: intersect;
  }
  .side-col.right {
    -webkit-mask-image:
      linear-gradient(to left, transparent 0%, #000 7%, #000 70%, transparent 100%),
      linear-gradient(to bottom, transparent 0%, #000 4%, #000 94%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
      linear-gradient(to left, transparent 0%, #000 7%, #000 70%, transparent 100%),
      linear-gradient(to bottom, transparent 0%, #000 4%, #000 94%, transparent 100%);
    mask-composite: intersect;
  }
  .side-slider {
    position: relative;
    flex: 1 1 0;
    min-height: 220px;
    overflow: hidden;
    border-radius: var(--radius);
  }
  .slider-track {
    display: flex;
    height: 100%;
    transition: transform 2s cubic-bezier(.65, 0, .35, 1);
  }
  .slide { flex: 0 0 100%; height: 100%; }
  .slide img { width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; }

  @media (max-width: 1100px) {
    .hero-stage {
      grid-template-columns: 1fr 1fr;
      grid-template-rows: auto auto auto;
      column-gap: 8px;
      padding: 0 16px;
    }
    .hero-banner { grid-column: 1 / -1; grid-row: 1; max-width: 860px; margin: 0 auto; width: 100%; }
    .side-col { grid-row: 2; margin-bottom: 0; max-width: none; justify-self: stretch; -webkit-mask-image: none; mask-image: none; margin-top: 10px; }
    .side-col.left  { grid-column: 1; }
    .side-col.right { grid-column: 2; }
    .side-slider { flex: none; min-height: 0; aspect-ratio: 1 / 1; }
    .hero-stage .hero-copy { grid-column: 1 / -1; grid-row: 3; padding-top: 36px; padding-bottom: 56px; }
  }
  @media (prefers-reduced-motion: reduce) {
    .slider-track { transition: none; }
  }
  .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 56px 28px 72px;
    max-width: 700px;
    margin: 0 auto;
  }
  .hero h1 {
    font-size: clamp(2.2rem, 4.2vw, 3.4rem);
    line-height: 1.08;
    margin-bottom: 22px;
  }
  .hero p.lede {
    font-size: 1.12rem;
    color: var(--text-soft);
    max-width: 520px;
    margin: 0 auto 34px;
  }
  .hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
  .btn {
    display: inline-block;
    padding: 14px 26px;
    border-radius: var(--radius);
    text-decoration: none;
    font-size: 0.96rem;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .15s, background .2s, border-color .2s, color .2s;
  }
  .btn:active { transform: scale(0.98); }
  .btn-primary { background: var(--terracotta); color: #fff; }
  .btn-primary:hover { background: #A8523A; }
  .btn-ghost { background: transparent; color: var(--sea-deep); border-color: var(--border); }
  .btn-ghost:hover { border-color: var(--sea-deep); }
  :root[data-theme="dark"] .btn-ghost, body :root:not([data-theme="light"]) .btn-ghost { color: var(--sky-pale); }



  /* ---------- SECTION SHELLS ---------- */
  section { padding: 96px 0; }
  .section-head { max-width: 620px; margin-bottom: 52px; }
  .section-head .kicker {
    font-size: 0.88rem;
    color: var(--terracotta);
    margin-bottom: 10px;
    font-weight: 500;
  }
  .section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.15; }
  .section-head p { color: var(--text-soft); margin-top: 16px; font-size: 1.04rem; }
  .alt { background: var(--surface-2); }

  /* ---------- PRODUCT / VARIANTS ---------- */
  .products {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
  }
  .products .card-media { height: 340px; min-height: 0; box-sizing: border-box; padding-bottom: 0; }
  .products .card-body h3 { line-height: 1.3; min-height: 2.6em; }
  .products .card { flex: 0 1 calc((100% - 64px) / 3); min-width: 280px; }
  .card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .card-media {
    background: linear-gradient(180deg, var(--sky-pale), var(--surface-2));
    padding: 30px 30px 0 30px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 320px;
  }
  .card-media img { max-height: 300px; width: auto; margin: 0 auto; }
  .card-body { padding: 26px 28px 30px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
  .card-body h3 { font-size: 1.4rem; }
  .card-body .tag {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.78rem;
    color: var(--sea-deep);
    background: var(--sky-pale);
    padding: 4px 10px;
    border-radius: var(--radius);
  }
  .card-body p.desc { color: var(--text-soft); font-size: 0.96rem; flex: 1; }
  .price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 4px;
  }
  .price { font-family: 'Fraunces', serif; font-size: 1.7rem; color: var(--sea-deep); }
  .price small { font-size: 0.85rem; color: var(--text-soft); font-family: 'Work Sans', sans-serif; }
  .qty {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
  }
  .qty button {
    background: var(--surface-2);
    border: none;
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--text);
  }
  .qty span { width: 34px; text-align: center; font-size: 0.95rem; }
  .card-actions { display: flex; gap: 10px; align-items: center; margin-top: 6px; }
  .add-btn {
    flex: 1;
    background: var(--sea-deep);
    color: #fff;
    border: none;
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 0.92rem;
    cursor: pointer;
    transition: background .2s;
  }
  .add-btn:hover { background: var(--terracotta); }
  .add-btn.added { background: #3E8A5C; }

  /* ---------- STORIA ---------- */
  .storia {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 56px;
    align-items: start;
  }
  .storia-media {
    position: sticky;
    top: 110px;
    background: var(--sand);
    border-radius: var(--radius);
    padding: 6px;
  }
  .storia-media img { border-radius: var(--radius); width: 100%; }
  .story-slider { overflow: hidden; padding: 0; border: 6px solid var(--sand); }
  .story-slider .slider-track { height: auto; transition: transform 1.6s cubic-bezier(.65, 0, .35, 1); }
  .story-slider .slide { flex: 0 0 100%; aspect-ratio: 908 / 1020; border-radius: var(--radius); overflow: hidden; }
  .story-slider .slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .story-slider .slide-spray { background: linear-gradient(180deg, var(--sky-pale), var(--surface-2)); display: flex; align-items: flex-end; justify-content: center; }
  .story-slider .slide-spray svg { height: 82%; width: auto; margin-bottom: 8%; }
  .storia-copy h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: 20px; }
  .storia-copy p { color: var(--text-soft); margin-bottom: 16px; }
  .storia-copy p:last-child { margin-bottom: 0; }

  /* ---------- MINERALI ---------- */
  .minerali-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
  .mineral-card {
    padding: 26px 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
  }
  .mineral-card .symbol {
    font-family: 'Fraunces', serif;
    font-size: 1.6rem;
    color: var(--terracotta);
    margin-bottom: 10px;
  }
  .mineral-card h4 { font-family: 'Work Sans', sans-serif; font-weight: 600; font-size: 1rem; margin-bottom: 8px; }
  .mineral-card p { color: var(--text-soft); font-size: 0.9rem; margin: 0; }
  .disclaimer {
    margin-top: 40px;
    font-size: 0.86rem;
    color: var(--text-soft);
    border-left: 2px solid var(--border);
    padding-left: 16px;
  }

  /* ---------- COME SI USA ---------- */
  .uso-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 40px;
  }
  .uso-item { display: flex; gap: 18px; }
  .uso-num {
    font-family: 'Fraunces', serif;
    font-size: 1.3rem;
    color: var(--sea-light);
    min-width: 34px;
  }
  :root[data-theme="dark"] .uso-num { color: var(--terracotta-soft); }
  .uso-item h4 { font-size: 1.05rem; margin-bottom: 6px; }
  .uso-item p { color: var(--text-soft); font-size: 0.94rem; margin: 0; }

  /* ---------- FAQ ---------- */
  .faq-item {
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
  }
  .faq-item summary {
    cursor: pointer;
    font-weight: 500;
    font-size: 1.02rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .faq-item summary::-webkit-details-marker { display: none; }
  .faq-item summary::after {
    content: '+';
    font-size: 1.3rem;
    color: var(--terracotta);
    transition: transform .2s;
  }
  .faq-item[open] summary::after { transform: rotate(45deg); }
  .faq-item p { color: var(--text-soft); margin-top: 12px; margin-bottom: 0; font-size: 0.96rem; }

  /* ---------- CART BAR ---------- */
  .cartbar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    bottom: env(safe-area-inset-bottom, 0px);
    background: var(--sea-deep);
    color: #fff;
    padding: 14px 0;
    transform: translateY(120%);
    transition: transform .3s ease;
    z-index: 60;
  }
  .cartbar.show { transform: translateY(0); }
  .cartbar-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
  }
  .cartbar-info { font-size: 0.92rem; opacity: 0.9; }
  .cartbar-total { font-family: 'Fraunces', serif; font-size: 1.2rem; }
  .cartbar .btn-primary { padding: 10px 22px; }

  /* ---------- FOOTER ---------- */
  footer {
    background: var(--sea-deep);
    color: #EAF2F4;
    padding: 64px 0 32px;
  }
  :root[data-theme="dark"] footer { background: #0A1A22; }
  .footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 46px;
  }
  footer .wordmark { color: #fff; }
  footer p.tag { color: #B9D0D6; font-size: 0.94rem; margin-top: 12px; max-width: 320px; }
  footer h5 { font-size: 0.86rem; text-transform: uppercase; letter-spacing: 0.06em; color: #9FBAC1; margin-bottom: 16px; font-weight: 500; }
  footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
  footer a { color: #DCE9EB; text-decoration: none; font-size: 0.94rem; }
  footer a:hover { color: var(--terracotta-soft); }
  .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.82rem;
    color: #93AEB5;
  }

  /* ---------- RESPONSIVE ---------- */
  @media (max-width: 900px) {
    .hero-copy { padding: 40px 24px 56px; }
    .storia { grid-template-columns: 1fr; }
    .storia-media { order: -1; position: static; }
    .products .card { flex: 1 1 100%; }
    .products .card-body h3 { min-height: 0; }
    .minerali-grid { grid-template-columns: repeat(2, 1fr); }
    .uso-list { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .navlinks { display: none; }
    section { padding: 64px 0; }
  }
  @media (max-width: 480px) {
    .minerali-grid { grid-template-columns: 1fr; }
    .wrap { padding: 0 20px; }
  }

/* ---------- MENU MOBILE (tre linee) ---------- */
@media (max-width: 900px) {
  .nav-inner { gap: 12px; padding: 12px 20px; }
  .nav-cta { margin-left: auto; padding: 9px 16px; }
  .nav-cart { margin-left: auto; height: 38px; padding: 0 12px; }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0 11px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
  }
  .nav-toggle span {
    display: block;
    height: 2px;
    background: var(--sea-deep);
    border-radius: 2px;
    transition: transform .25s ease, opacity .2s ease;
  }
  header.nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  header.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
  header.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  header.nav .navlinks { display: none; }
  header.nav.open .navlinks {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 6px 20px 14px;
    box-shadow: 0 18px 30px -18px var(--shadow);
  }
  header.nav.open .navlinks li { border-bottom: 1px solid var(--border); }
  header.nav.open .navlinks li:last-child { border-bottom: none; }
  header.nav.open .navlinks a { display: block; padding: 15px 4px; font-size: 1.02rem; }
}
:root[data-theme="dark"] .nav-toggle span { background: var(--text); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .nav-toggle span { background: var(--text); }
}

@media (max-width: 900px) {
  .nav-logo { height: 58px; }
}


/* ---------- PAGINA MAGNESIO ---------- */
.mineral-link { color: var(--sea-deep); text-decoration: underline; text-decoration-color: var(--terracotta); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.mineral-link:hover { color: var(--terracotta); }
.mineral-more { display: inline-block; margin-top: 12px; font-size: 0.86rem; font-weight: 500; color: var(--terracotta); text-decoration: none; }
.mineral-more:hover { text-decoration: underline; }
.mg { padding: 48px 0 88px; }
.mg-wrap { max-width: 800px; }
.mg-back { display: inline-block; margin-bottom: 22px; font-size: 0.9rem; color: var(--text-soft); text-decoration: none; }
.mg-back:hover { color: var(--sea-deep); }
.mg-hero { background: var(--sea-deep); color: #fff; border-radius: var(--radius); padding: 34px 34px 34px; }
.mg-kicker { font-size: 0.78rem; letter-spacing: .09em; text-transform: uppercase; color: #e0c493; font-weight: 600; margin-bottom: 14px; }
.mg-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; color: #fff; margin-bottom: 16px; }
.mg-hero p { color: #d6e6ee; font-size: 1.04rem; margin-bottom: 26px; max-width: 640px; }
.mg-hero img { width: 100%; border-radius: var(--radius); display: block; }
.mg-sec { margin-top: 56px; }
.mg-sec h2, .mg-box h3 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); line-height: 1.2; margin-bottom: 18px; }
.mg-sec p, .mg-box p { color: var(--text-soft); font-size: 1.04rem; margin-bottom: 16px; }
.mg-photo { width: 100%; max-width: 733px; border-radius: var(--radius); display: block; margin-top: 26px; }
.mg-funcs { list-style: none; margin: 0; padding: 0; }
.mg-funcs li { display: flex; gap: 22px; align-items: flex-start; padding: 22px 0; border-top: 1px solid var(--border); }
.mg-funcs li:last-child { border-bottom: 1px solid var(--border); }
.mg-funcs img { width: 98px; height: 131px; flex: 0 0 98px; object-fit: cover; border-radius: var(--radius); }
.mg-funcs h3 { font-family: 'Work Sans', sans-serif; font-size: 1.05rem; font-weight: 600; margin-bottom: 6px; }
.mg-funcs p { margin: 0; font-size: 0.98rem; }
.mg-collage { display: grid; grid-template-columns: 1.55fr 1fr; grid-template-rows: 1fr 1fr; gap: 4px; border-radius: var(--radius); overflow: hidden; margin-top: 26px; max-width: 733px; aspect-ratio: 733 / 404; }
.mg-collage img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mg-collage img:first-child { grid-row: 1 / 3; }
.mg-box { margin-top: 56px; background: var(--surface-2); border-left: 3px solid var(--terracotta); border-radius: var(--radius); padding: 28px 30px 14px; }
.mg-box h3 { font-size: 1.25rem; margin-bottom: 14px; }
.mg-note { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--border); font-size: 0.82rem; color: var(--text-soft); }
@media (max-width: 900px) {
  .mg { padding-top: 28px; }
  .mg-hero { padding: 24px 20px; }
  .mg-funcs li { gap: 16px; }
  .mg-funcs img { width: 78px; height: 105px; flex-basis: 78px; }
}
.mg section { padding: 0; }

/* ---------- PAGINE MINERALI (nuovo layout) ---------- */
.mn section { padding: 0; }
.mn h1, .mn h2, .mn h3 { font-family: 'Fraunces', serif; color: var(--sea-deep); }
.mn-rule { width: 34px; height: 2px; background: #c9a56a; margin: 12px 0 18px; }
.mn-hero { position: relative; overflow: hidden; background: #0b3a55; color: #fff; }
.mn-hero-img { position: absolute; top: 0; right: 0; bottom: 0; width: min(62%, 720px); background-size: cover; background-position: center; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 38%); mask-image: linear-gradient(to right, transparent 0, #000 38%); }
.mn-hero-in { position: relative; padding-top: 30px; padding-bottom: 54px; }
.mn-back { display: inline-block; margin-bottom: 26px; font-size: 0.86rem; color: #bcd6e3; text-decoration: none; }
.mn-back:hover { color: #fff; }
.mn-kicker { font-size: 0.76rem; letter-spacing: .1em; text-transform: uppercase; color: #e0c493; font-weight: 600; margin-bottom: 10px; }
.mn-hero h1 { color: #fff; font-size: clamp(2.6rem, 6vw, 4.2rem); line-height: 1.05; margin-bottom: 0; }
.mn-hero .mn-rule { margin: 14px 0 22px; }
.mn-sub { font-family: 'Fraunces', serif; font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.25; color: #eef5f8; max-width: 560px; margin-bottom: 16px; }
.mn-lead { max-width: 520px; font-size: 1.02rem; color: #dbe9f0; }
.mn-sec { padding: 52px 0 !important; }
.mn-sec h2, .mn-band h2, .mn-close h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.15; margin: 0; }
.mn-sec p { color: var(--text-soft); font-size: 1.02rem; margin-bottom: 14px; }
.mn-two { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.mn-photo { width: 100%; max-width: 520px; justify-self: end; border-radius: var(--radius); display: block; }
.mn-sea .mn-photo { justify-self: start; }
.mn-band { background: var(--surface-2); padding: 48px 0 !important; }
.mn-fnsub { color: var(--text-soft); margin: 10px 0 30px; }
.mn-fn { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.mn-fn4 { grid-template-columns: repeat(4, 1fr); }
.mn-fn5 { grid-template-columns: repeat(5, 1fr); }
.mn-fn li { text-align: center; padding: 4px 18px; border-left: 1px solid var(--border); }
.mn-fn li:first-child { border-left: 0; }
.mn-ico { display: block; margin: 0 auto 12px; width: 74px; height: 74px; }
.mn-fn h3 { font-size: 1.12rem; margin-bottom: 8px; }
.mn-fn p { font-size: 0.92rem; color: var(--text-soft); margin: 0; }
.mn-where { align-items: start; }
.mn-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.mn-thumbs figure { margin: 0; text-align: center; }
.mn-thumbs img { width: 100%; aspect-ratio: 88 / 74; object-fit: cover; border-radius: 8px; display: block; }
.mn-thumbs figcaption { margin-top: 8px; font-size: 0.8rem; line-height: 1.3; color: var(--sea-deep); }
.mn-callout { display: flex; gap: 16px; align-items: center; margin-top: 22px; background: #e4eef3; border: 1px solid #d3e2ea; border-radius: var(--radius); padding: 18px 20px; }
.mn-wave { flex: 0 0 54px; height: 54px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #d3e6ef; }
.mn-callout h3 { font-size: 1rem; margin-bottom: 4px; }
.mn-callout p { font-size: 0.9rem; margin: 0; }
.mn-close { padding-top: 12px !important; padding-bottom: 72px !important; }
.mn-close > .wrap > p { max-width: none; }
.mn-note { display: flex; gap: 14px; align-items: center; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--border); }
.mn-note p { margin: 0; font-size: 0.8rem; }
@media (max-width: 900px) {
  .mn-hero-img { width: 100%; opacity: .3; -webkit-mask-image: none; mask-image: none; }
  .mn-hero-in { padding-bottom: 40px; }
  .mn-two { grid-template-columns: 1fr; gap: 26px; }
  .mn-photo, .mn-sea .mn-photo { justify-self: stretch; max-width: none; }
  .mn-sea .mn-photo { order: 2; }
  .mn-fn4, .mn-fn5 { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .mn-fn li:nth-child(odd) { border-left: 0; }
  .mn-thumbs { grid-template-columns: repeat(3, 1fr); }
  .mn-sec { padding: 36px 0 !important; }
}

/* ---------- RICETTE E CONSIGLI ---------- */
.rc section { padding: 0; }
.rc h1, .rc h2, .rc h3 { font-family: 'Fraunces', serif; color: var(--sea-deep); }
.rc-hero h1 { color: #fff; }
.rc-hero .mn-hero-in { padding-top: 56px; padding-bottom: 60px; }
.rc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.rc-search { position: relative; max-width: 620px; margin-top: 26px; }
.rc-search input { width: 100%; box-sizing: border-box; font: inherit; font-size: 1rem; padding: 16px 46px 16px 48px; border: 0; border-radius: var(--radius); background: #fff; color: #17303d; box-shadow: 0 8px 28px rgba(0,0,0,.22); }
.rc-search input:focus { outline: 2px solid #e0c493; outline-offset: 2px; }
.rc-search input::-webkit-search-cancel-button { display: none; }
.rc-glass { position: absolute; left: 16px; top: 16px; color: #5d7886; pointer-events: none; }
.rc-clear { position: absolute; right: 10px; top: 9px; width: 34px; height: 34px; border: 0; background: transparent; font-size: 1.5rem; line-height: 1; color: #5d7886; cursor: pointer; border-radius: 50%; }
.rc-clear:hover { background: #eef3f6; }
.rc-sugg { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); list-style: none; margin: 0; padding: 6px; background: #fff; border-radius: var(--radius); box-shadow: 0 14px 36px rgba(0,0,0,.28); max-height: 360px; overflow: auto; }
.rc-sugg li { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 6px; cursor: pointer; color: #17303d; }
.rc-sugg li.on, .rc-sugg li:hover { background: var(--sky-pale); }
.rc-sugg img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; flex: 0 0 44px; }
.rc-sg-t { flex: 1; font-size: 0.98rem; }
.rc-sg-t mark { background: none; color: var(--terracotta); font-weight: 700; }
.rc-sg-c { font-size: 0.74rem; text-transform: uppercase; letter-spacing: .06em; color: #6b8794; }
.rc-sugg .rc-none { cursor: default; color: #5d7886; }
.rc-sugg .rc-none:hover { background: none; }
.rc-main { padding: 44px 0 20px !important; }
.rc-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.rc-chips button { font: inherit; font-size: 0.92rem; padding: 9px 20px; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--sea-deep); cursor: pointer; transition: background .2s, color .2s; }
.rc-chips button:hover { background: var(--sky-pale); }
.rc-chips button.on { background: var(--sea-deep); color: #fff; border-color: var(--sea-deep); }
.rc-block { margin-bottom: 52px; }
.rc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--border); padding-bottom: 12px; margin-bottom: 24px; }
.rc-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0; }
.rc-head p { margin: 0; color: var(--text-soft); font-size: 0.9rem; }
.rc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-bottom: 8px; }
.rc-card { font: inherit; text-align: left; padding: 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; cursor: pointer; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.rc-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(18,59,82,.14); }
.rc-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.rc-card-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.rc-card h3 { font-size: 1.2rem; line-height: 1.25; margin: 0; }
.rc-card p { margin: 0; color: var(--text-soft); font-size: 0.92rem; flex: 1; }
.rc-tag { align-self: flex-start; font-size: 0.74rem; color: var(--sea-deep); background: var(--sky-pale); padding: 3px 10px; border-radius: var(--radius); letter-spacing: .02em; }
.rc-meta { color: var(--text-soft); font-size: 0.82rem; margin: 0; }
.rc-empty { padding: 30px 0 60px; color: var(--text-soft); }
.rc-tips { background: var(--surface-2); padding: 60px 0 70px !important; margin-top: 30px; }
.rc-tips h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0; }
.rc-tips-sub { color: var(--text-soft); max-width: 640px; margin-bottom: 30px; }
.rc-tipgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.rc-tipgrid > div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 22px; }
.rc-tipgrid span { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 50%; background: var(--sky-pale); color: var(--sea-deep); font-weight: 600; margin-bottom: 14px; }
.rc-tipgrid h3 { font-size: 1.1rem; margin: 0 0 8px; }
.rc-tipgrid p { margin: 0; font-size: 0.92rem; color: var(--text-soft); }
.rc-modal { border: 0; padding: 0; border-radius: var(--radius); width: min(860px, calc(100% - 32px)); max-height: calc(100vh - 40px); background: var(--surface); color: var(--text); overflow: auto; }
.rc-modal::backdrop { background: rgba(10,35,50,.62); }
.rc-modal > img { width: 100%; height: 240px; object-fit: cover; display: block; }
.rc-x { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--sea-deep); }
.rc-m-body { padding: 26px 30px 30px; }
.rc-m-body h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 10px 0 4px; }
.rc-m-cols { display: grid; grid-template-columns: 1fr 1.4fr; gap: 34px; margin-top: 22px; }
.rc-m-cols h3 { font-size: 1.15rem; margin: 0 0 10px; }
.rc-m-cols ul, .rc-m-cols ol { margin: 0; padding-left: 20px; color: var(--text-soft); font-size: 0.96rem; }
.rc-m-cols li { margin-bottom: 8px; }
.rc-m-tip { margin-top: 22px; background: #e4eef3; border-left: 3px solid var(--terracotta); border-radius: 6px; padding: 14px 18px; }
.rc-m-tip strong { color: var(--sea-deep); font-size: 0.9rem; }
.rc-m-tip p { margin: 4px 0 0; font-size: 0.94rem; color: var(--text-soft); }
@media (max-width: 1000px) { .rc-grid { grid-template-columns: repeat(2, 1fr); } .rc-tipgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .rc-grid, .rc-tipgrid { grid-template-columns: 1fr; }
  .rc-m-cols { grid-template-columns: 1fr; gap: 20px; }
  .rc-m-body { padding: 22px 20px 26px; }
  .rc-hero .mn-hero-in { padding-top: 36px; }
}

.rc-hero { overflow: visible; z-index: 5; }
.rc-hero .mn-hero-img { overflow: hidden; }
.rc-modal[open] { display: grid; grid-template-columns: 250px 1fr; }
.rc-modal > img { height: 100%; min-height: 100%; width: 250px; }
.rc-m-cols { grid-template-columns: 1fr; gap: 18px; }
@media (max-width: 640px) {
  .rc-modal[open] { display: block; }
  .rc-modal > img { width: 100%; height: 190px; }
}

.rc-catnote { margin: -6px 0 22px; color: var(--text-soft); font-size: 0.92rem; font-style: italic; max-width: 720px; }
.rc-modal > .rc-m-fig { margin: 0; position: relative; }
.rc-m-fig img { width: 250px; height: 100%; object-fit: cover; display: block; position: absolute; inset: 0; }
.rc-m-fig figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 12px; font-size: 0.72rem; color: #fff; background: linear-gradient(transparent, rgba(8,30,44,.7)); }
.rc-m-desc { color: var(--text-soft); font-style: italic; margin: 0 0 16px; }
.rc-facts { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 0 0 8px; padding: 12px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.rc-facts dt { font-size: 0.7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-soft); }
.rc-facts dd { margin: 2px 0 0; font-weight: 600; color: var(--sea-deep); }
.rc-m-cols ul { list-style: none; padding: 0; }
.rc-m-cols ul li { display: flex; justify-content: space-between; gap: 14px; border-bottom: 1px dotted var(--border); padding-bottom: 6px; }
.rc-m-cols ul li strong { font-weight: 500; color: var(--text); }
.rc-m-cols ul li span { color: var(--sea-deep); font-weight: 600; text-align: right; white-space: nowrap; }
.rc-dose { font-weight: 600; color: var(--sea-deep) !important; font-size: 1rem !important; }
.rc-stato { font-size: 0.82rem !important; }
.rc-stato a { color: var(--terracotta); }
.rc-m-safe { margin: 18px 0 0; font-size: 0.78rem; color: var(--text-soft); }
@media (max-width: 640px) {
  .rc-m-fig img { position: static; width: 100%; height: 190px; }
  .rc-m-cols ul li span { white-space: normal; }
}
.rc-modal > .rc-m-fig { align-self: stretch; background: var(--sky-pale); display: flex; flex-direction: column; }
.rc-m-fig img { position: static; width: 250px; height: 190px; flex: 0 0 190px; }
.rc-m-fig figcaption { position: static; background: none; color: var(--text-soft); padding: 10px 14px; font-size: 0.74rem; font-style: italic; }
@media (max-width: 640px) { .rc-m-fig img { width: 100%; height: 190px; } }

.rc-m-cols ul li span { white-space: normal; flex: 0 0 auto; max-width: 50%; }

.rc-grid4 { grid-template-columns: repeat(4, 1fr); gap: 22px; }
.rc-grid4 .rc-card h3 { font-size: 1.08rem; }
.rc-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.rc-cat { font: inherit; position: relative; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; cursor: pointer; aspect-ratio: 4 / 3; background: var(--sea-deep); }
.rc-cat img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.rc-cat:hover img { transform: scale(1.05); }
.rc-cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,38,56,.82), rgba(10,38,56,.05) 65%); }
.rc-cat-t { position: absolute; z-index: 1; left: 18px; bottom: 14px; text-align: left; color: #fff; }
.rc-cat-t strong { display: block; font-family: 'Fraunces', serif; font-size: 1.4rem; font-weight: 600; }
.rc-cat-t em { font-style: normal; font-size: 0.8rem; opacity: .85; }
.rc-refs { padding: 20px 0 70px !important; }
.rc-refs h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin: 0; }
.rc-refs p { color: var(--text-soft); max-width: 820px; font-size: 0.94rem; }
.rc-refs ul { padding-left: 20px; color: var(--text-soft); font-size: 0.9rem; max-width: 820px; }
.rc-refs li { margin-bottom: 8px; }
.rc-refs a { color: var(--sea-deep); text-decoration-color: var(--terracotta); }
@media (max-width: 1000px) { .rc-grid4 { grid-template-columns: repeat(2, 1fr); } .rc-cats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .rc-grid4 { grid-template-columns: 1fr; } }

/* Intestazioni con immagine (Proprietà, La storia) */
.pg-hero .mn-hero-in { padding-top: 56px; padding-bottom: 60px; }
.pg-hero h1 { max-width: 640px; }
.pg-hero .mn-rule { margin: 14px 0 20px; }
.pg-lede { color: #dcebf1; font-size: 1.05rem; line-height: 1.65; max-width: 520px; margin: 0; }
@media (max-width: 900px) { .pg-hero .mn-hero-in { padding-top: 36px; padding-bottom: 40px; } }

/* Home: sfumatura color mare sotto la barra di navigazione */
.hero { position: relative; }
.hero::before {
  content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 260px; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, #6fb1c6 0%, #9fd0de 30%, #c9e5ec 60%, #e8f4f6 84%, rgba(250,248,243,0) 100%);
}
.hero > .hero-stage { position: relative; z-index: 1; }
