/* Lev Chadash — v2 "caldo materiale" design system */

@import url('fonts.css');

:root {
  /* Warm earthy palette */
  --paper: #F5EBD8;          /* avorio caldo principale */
  --paper-warm: #EFE0C5;     /* lino */
  --paper-deep: #dcceb5;     /* sabbia */
  --ink: #2B1F14;            /* moka profondo, non nero */
  --ink-soft: #51473e;
  --ink-mute: #847d77;
  --terra: #4b83be;          /* colore principale */
  --terra-deep: #3e6b9c;
  --olive: #e05252;
  --gold: #f2d202;           /* giallo */
  --line: #2B1F1420;
  --line-strong: #2B1F1440;

  --serif: 'EB Garamond', Georgia, serif;
  --sans: 'Nunito Sans', system-ui, sans-serif;
  --hand: 'Caveat', cursive;
  --hebrew: 'Frank Ruhl Libre', 'EB Garamond', serif;

  --gutter: clamp(20px, 4vw, 64px);
  --col-max: 1320px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* paper texture */
  background-image:
    radial-gradient(ellipse at top left, #00000006 0%, transparent 60%),
    radial-gradient(ellipse at bottom right, #00000005 0%, transparent 60%);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
::selection { background: var(--terra); color: var(--paper); }

/* Type */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terra);
  font-weight: 600;
}
.hand {
  font-family: var(--hand);
  font-weight: 500;
}
.h-display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 8vw, 120px);
  line-height: 0.98;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.h-1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.h-2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.h-3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.25;
}
.lede {
  font-family: var(--serif);
  font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1.5;
  font-weight: 400;
  font-style: italic;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.body { font-size: 17px; line-height: 1.65; color: var(--ink-soft); text-wrap: pretty; }

.wrap { width: 100%; max-width: var(--col-max); margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--paper) 94%, transparent);
  backdrop-filter: blur(8px);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; gap: 24px;
}
.brand {
  display: flex; align-items: baseline; gap: 14px;
  font-family: var(--serif); font-size: 24px; font-weight: 500;
  letter-spacing: -0.005em; white-space: nowrap; flex-shrink: 0;
}
.brand__he { font-family: var(--hebrew); font-weight: 700; color: var(--terra); font-size: 26px; }
.brand__heart { color: var(--terra); display: inline-block; transform: translateY(-2px); }

.nav { display: flex; gap: 4px; align-items: center; }
.nav a {
  padding: 9px 16px; font-size: 14px; font-weight: 500;
  border-radius: 999px; transition: background .2s ease, color .2s ease;
  color: var(--ink-soft);
}
.nav a:hover { background: var(--paper-deep); color: var(--ink); }
.nav a.active { color: var(--terra); }
.nav a.cta {
  background: var(--terra); color: var(--paper); padding: 11px 20px;
  font-weight: 600;
}
.nav a.cta:hover { background: var(--terra-deep); color: var(--paper); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: 0.005em;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--terra); color: var(--paper); box-shadow: 0 2px 0 var(--terra-deep); }
.btn--primary:hover { background: var(--terra-deep); box-shadow: 0 4px 0 #5e2818; }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(4px); }

/* Footer */
.site-footer {
  margin-top: 120px; padding: 80px 0 40px;
  background: var(--ink); color: var(--paper);
  position: relative;
}
.site-footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 12px;
  background: repeating-linear-gradient(90deg, var(--terra) 0 24px, var(--gold) 24px 48px, var(--olive) 48px 72px);
  opacity: 0.85;
}
.site-footer a { color: var(--paper); opacity: 0.75; transition: opacity .2s; }
.site-footer a:hover { opacity: 1; color: var(--gold); }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 56px; border-bottom: 1px solid #ffffff20;
}
.footer-col h4 {
  font-family: var(--sans); font-size: 12px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col li { font-size: 14px; }
.footer-bottom {
  padding-top: 28px; display: flex; justify-content: space-between;
  align-items: center; font-size: 12px; color: #ffffff70;
  flex-wrap: wrap; gap: 16px;
}
.footer-brand {
  font-family: var(--serif); font-size: 30px; line-height: 1.1;
  margin-bottom: 16px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
}
.footer-brand .he { font-family: var(--hebrew); font-weight: 700; color: var(--terra); }
.footer-tag { font-size: 14px; color: #ffffffa0; max-width: 320px; line-height: 1.55; }

/* Photo placeholder */
.photo {
  position: relative; overflow: hidden; border-radius: 6px;
  background:
    repeating-linear-gradient(135deg, var(--paper-deep) 0 12px, var(--paper-warm) 12px 24px);
  box-shadow: 0 1px 0 var(--line);
}
.photo::after {
  content: attr(data-caption);
  position: absolute; inset: auto 0 0 0;
  padding: 12px 16px;
  font-family: var(--sans); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-soft); font-weight: 600;
  background: linear-gradient(to top, var(--paper-warm) 60%, transparent);
}

/* Tag pill */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 999px;
  font-family: var(--sans); font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.tag--terra { background: var(--terra); color: var(--paper); }
.tag--olive { background: var(--olive); color: var(--paper); }
.tag--gold { background: var(--gold); color: var(--ink); }
.tag--ghost { background: transparent; color: var(--ink-soft); border: 1px solid var(--line-strong); }

.link-arr {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-weight: 600; font-size: 14px;
  color: var(--terra);
  border-bottom: 1.5px solid var(--terra);
  padding-bottom: 2px;
  transition: gap .2s ease;
}
.link-arr:hover { gap: 12px; }

/* Decorative star-of-david-ish ornament (made from CSS) */
.ornament {
  width: 32px; height: 32px;
  display: inline-block; position: relative; flex-shrink: 0;
}
.ornament::before, .ornament::after {
  content: ''; position: absolute; inset: 0;
  border: 1.5px solid currentColor;
  clip-path: polygon(50% 0, 100% 87%, 0 87%);
}
.ornament::after { transform: rotate(180deg); }

.nav a { white-space: nowrap; }
/* Menu per telefono e tablet */
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 999px; border: 1.5px solid var(--line-strong); align-items: center; justify-content: center; flex-shrink: 0; }
.menu-btn__bars, .menu-btn__bars::before, .menu-btn__bars::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .2s ease, background .2s ease; }
.menu-btn__bars::before, .menu-btn__bars::after { content: ''; position: absolute; left: 0; }
.menu-btn__bars::before { top: -6px; }
.menu-btn__bars::after { top: 6px; }
.site-header--open .menu-btn__bars { background: transparent; }
.site-header--open .menu-btn__bars::before { transform: translateY(6px) rotate(45deg); }
.site-header--open .menu-btn__bars::after { transform: translateY(-6px) rotate(-45deg); }
.menu-mobile { border-top: 1px solid var(--line); padding: 8px 0 20px; }
.menu-mobile[hidden] { display: none; }
.menu-mobile__link { display: block; padding: 14px 4px; font-size: 18px; font-family: var(--serif); border-bottom: 1px solid var(--line); color: var(--ink); }
.menu-mobile__link.active { color: var(--terra); }
.menu-mobile__cta { margin-top: 18px; }
@media (max-width: 1240px) {
  .nav .nav-link, .nav a.cta { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (min-width: 1241px) {
  .menu-mobile { display: none !important; }
}
@media (max-width: 420px) {
  .site-header__inner { gap: 10px; }
  .brand { font-size: 20px; gap: 8px; }
  .brand__he { font-size: 21px; }
  .lang-switch { margin-inline: 0 4px; }
  .lang-switch button { padding: 5px 8px; }
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}
/* Selettore lingua */
.lang-switch{display:flex;gap:2px;padding:3px;border:1.5px solid var(--line-strong);border-radius:999px;margin-inline:4px 8px;flex-shrink:0}
.lang-switch button{padding:5px 10px;border-radius:999px;font-family:var(--sans);font-size:12px;font-weight:700;letter-spacing:.06em;color:var(--ink-soft);transition:background .2s,color .2s}
.lang-switch button:hover{background:var(--paper-deep);color:var(--ink)}
.lang-switch button.on{background:var(--ink);color:var(--paper)}
.lang-switch button[lang="he"]{font-family:var(--hebrew);letter-spacing:0;font-size:13px}
.site-footer .lang-switch{border-color:#ffffff30;margin:0}
.site-footer .lang-switch button{color:#ffffffb0}
.site-footer .lang-switch button:hover{background:#ffffff18;color:var(--paper)}
.site-footer .lang-switch button.on{background:var(--paper);color:var(--ink)}
.voce__label{font-size:12px;color:var(--ink-mute);letter-spacing:.14em;text-transform:uppercase;font-weight:600}
/* Ebraico — da destra a sinistra */
html[dir="rtl"]{--serif:'Frank Ruhl Libre','EB Garamond',serif;--sans:'Assistant','Nunito Sans',system-ui,sans-serif;--hand:'Amatic SC',cursive}
html[dir="rtl"] em,html[dir="rtl"] .lede,html[dir="rtl"] .voce__title{font-style:normal}
html[dir="rtl"] .eyebrow,html[dir="rtl"] .cu__l,html[dir="rtl"] .ev__mon,html[dir="rtl"] .dual__col-mark,html[dir="rtl"] .footer-col h4,html[dir="rtl"] .tag,html[dir="rtl"] .voce__label,html[dir="rtl"] .photo::after{letter-spacing:0}
html[dir="rtl"] .h-display,html[dir="rtl"] .h-1,html[dir="rtl"] .h-2{letter-spacing:0;line-height:1.1}
html[dir="rtl"] .hand{font-size:1.1em}
html[dir="rtl"] .hero__hand,html[dir="rtl"] .voce__hand{transform:rotate(2deg);transform-origin:right}
html[dir="rtl"] .hero__sticker{right:auto;left:-12px;transform:rotate(-8deg)}
html[dir="rtl"] .invito__sidewords{transform:rotate(3deg)}
html[dir="rtl"] .ev__date{text-align:left}
html[dir="rtl"] .btn:hover .arr,html[dir="rtl"] .ev:hover .ev__cta .arr{transform:translateX(-4px)}
html[dir="rtl"] .porta:hover .porta__cta .arr{transform:translateX(-6px)}

/* Foto vere al posto del segnaposto */
.photo--img{background:none}
.photo--img::after{display:none}
.photo--img img{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}
@media (max-width: 380px) {
  .brand { font-size: 18px; gap: 6px; }
  .brand__he { font-size: 19px; }
  .lang-switch button { padding: 4px 6px; font-size: 11px; }
  .menu-btn { width: 40px; height: 40px; }
}
