/* Grotto America — proposta di sito. Identità "Una storia, molte forme":
   carta calda, inchiostro, un solo colore (il bordeaux dei simboli GR8). */
:root {
  --paper: #efe8dc;        /* fondo */
  --paper-2: #e4dacb;      /* le sezioni "carta" */
  --ink: #2b221e;          /* testo: mai nero puro */
  --mute: #6f635a;
  --line: rgba(43, 34, 30, .16);
  --wine: #6e1e24;         /* misurato dai simboli GR8 */
  --wine-2: #8a2b32;
  --night: #1d1714;        /* la sezione scura: la grotta di sera */
  --night-ink: #efe6d8;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --display: 'Playfair Display', Georgia, serif;
  --pad: clamp(18px, 5vw, 72px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 19px/1.6 var(--serif); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.04; margin: 0; letter-spacing: -.005em; }
h1 em, h2 em { color: var(--wine); font-style: italic; }
p { margin: 0 0 1em; }

.concept { background: var(--wine); color: #f3e7e3; text-align: center; font: 500 12px/1.4 var(--serif); letter-spacing: .14em; text-transform: uppercase; padding: 7px var(--pad); }

.eyebrow { font: 500 12px var(--serif); letter-spacing: .32em; text-transform: uppercase; color: var(--mute); margin: 0 0 18px; display: flex; gap: 12px; align-items: center; }
.eyebrow span:first-child { color: var(--wine); }
.eyebrow::after { content: ''; width: 46px; height: 1px; background: var(--wine); }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 26px; background: var(--wine); color: #f6ece4; border: 1px solid var(--wine); text-decoration: none; font: 600 13px var(--serif); letter-spacing: .22em; text-transform: uppercase; transition: background .2s, color .2s; }
.btn:hover { background: var(--wine-2); }
.btn-line { background: transparent; color: var(--ink); border-color: rgba(43,34,30,.4); }
.btn-line:hover { background: rgba(110,30,36,.08); color: var(--wine); }
.btn-sm { padding: 9px 16px; font-size: 11px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Testata */
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 22px; padding: 12px var(--pad); background: rgba(239,232,220,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { width: 38px; }
.brand b { display: block; font: 500 19px var(--display); letter-spacing: .06em; text-transform: uppercase; line-height: 1; }
.brand small { display: block; font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--mute); margin-top: 4px; }
.nav { display: flex; gap: 22px; }
.nav a { text-decoration: none; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); transition: color .2s; }
.nav a:hover { color: var(--wine); }
.langs { display: flex; border: 1px solid var(--line); }
.langs button { background: none; border: 0; padding: 6px 9px; font: 600 11px var(--serif); letter-spacing: .14em; color: var(--mute); cursor: pointer; }
.langs button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.menu { display: none; background: none; border: 0; width: 36px; height: 36px; position: relative; cursor: pointer; color: var(--ink); }
.menu i { position: absolute; left: 7px; right: 7px; height: 1.5px; background: currentColor; transition: transform .3s, top .3s; }
.menu i:first-child { top: 14px; } .menu i:last-child { top: 21px; }
.menu[aria-expanded="true"] i:first-child { top: 17px; transform: rotate(45deg); }
.menu[aria-expanded="true"] i:last-child { top: 17px; transform: rotate(-45deg); }

/* Apertura */
.hero { position: relative; }
.hero-img { width: 100%; max-height: 78vh; object-fit: cover; object-position: 30% 50%; }
.hero-text { padding: clamp(32px, 5vw, 64px) var(--pad) 0; max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1.15fr .85fr; grid-template-areas: 'eye eye' 'h1 lead' 'h1 ctas'; column-gap: clamp(32px, 6vw, 96px); align-items: end; }
.hero-text .eyebrow { grid-area: eye; }
.hero-text h1 { grid-area: h1; margin-bottom: 0; }
.hero-text .lead { grid-area: lead; margin: 0; }
.hero-text .ctas { grid-area: ctas; }
.hero h1 { font-size: clamp(46px, 7vw, 96px); margin-bottom: 22px; }
.hero .lead { font-size: clamp(20px, 2vw, 24px); color: #4b3f37; max-width: 34ch; }

/* Sezioni */
.block { padding: clamp(72px, 11vh, 140px) var(--pad); }
.paper { background: var(--paper-2); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; max-width: 1280px; margin: 0 auto; }
.split h2, .head h2 { font-size: clamp(38px, 5vw, 68px); margin-bottom: 26px; }
.split p { max-width: 46ch; }
.frame { margin: 0; border: 1px solid var(--line); padding: 12px; background: rgba(255,255,255,.25); }
.frame img { width: 100%; }
.facts { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts b { font: 500 19px var(--display); }
.facts span { color: var(--mute); text-align: right; }

.head { max-width: 780px; margin: 0 auto 48px; text-align: center; }
.head .eyebrow { justify-content: center; }
.head p { color: #4b3f37; }
.route { margin: 0 auto; max-width: 1400px; }
.symbols-head { max-width: 640px; margin: 64px auto 32px; text-align: center; }
.symbols-head h3 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 10px; }
.symbols-head p { color: var(--mute); }
.symbols { list-style: none; padding: 0; margin: 0 auto; max-width: 1200px; display: grid; grid-template-columns: repeat(7, 1fr); border-top: 1px solid var(--line); }
.symbols li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 26px 8px; border-right: 1px solid var(--line); }
.symbols li:last-child { border-right: 0; }
.symbols img { height: 58px; width: auto; margin-bottom: 8px; }
.symbols b { font: 500 16px var(--display); }
.symbols span { font-size: 15px; font-style: italic; color: var(--mute); }

.split.rev > :first-child { order: 0; }
.sign-off { font-style: italic; color: var(--wine); font-size: 21px; }
.todo { color: var(--wine); font-style: italic; opacity: .8; }

/* La proposta: la sezione scura, come la grotta la sera */
.dark { background: var(--night); color: var(--night-ink); }
.dark .eyebrow { color: #b3a697; }
.dark .eyebrow span:first-child, .dark h2 em { color: #d7a2a0; }
.dark .eyebrow::after { background: #d7a2a0; }
.dark .head p { color: #cfc3b4; }
.pieces { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; max-width: 1320px; margin: 0 auto; }
.piece { border: 1px solid rgba(239,230,216,.14); padding: 14px 14px 22px; position: relative; }
.piece .ph { aspect-ratio: 3 / 4; overflow: hidden; margin-bottom: 18px; background: #120e0c; }
.piece .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.piece:hover .ph img { transform: scale(1.04); }
.piece .n { font-size: 12px; letter-spacing: .3em; color: #b3a697; }
.piece h3 { font-size: 26px; margin: 6px 0 10px; }
.piece p { font-size: 17px; color: #d8cdbf; margin: 0; }
.piece.star { border-color: #d7a2a0; }
.piece .pilot { margin-top: 14px; color: #d7a2a0; font-style: italic; }

/* Visita */
.hours { margin: 8px 0 22px; border-top: 1px solid var(--line); max-width: 440px; }
.hours div { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); }
.hours dt { color: var(--mute); }
.hours dd { margin: 0; font: 500 18px var(--display); }
.where { font-size: 18px; }
.small { font-size: 16px; color: var(--mute); margin-top: 14px; }
.social { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.social img { width: 120px; margin-bottom: 10px; opacity: .9; }
.social a { text-decoration: none; letter-spacing: .1em; }
.social a:hover { color: var(--wine); }

.foot { padding: 36px var(--pad) 48px; border-top: 1px solid var(--line); text-align: center; color: var(--mute); font-size: 16px; }
.foot p { margin: 4px 0; }
.foot .credit { font-size: 14px; font-style: italic; }

/* Comparsa */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  .pieces { grid-template-columns: 1fr 1fr; }
  .symbols { grid-template-columns: repeat(4, 1fr); }
  .symbols li:nth-child(4) { border-right: 0; }
}
@media (max-width: 900px) {
  .nav { position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; align-items: center; gap: 26px; background: var(--paper); opacity: 0; pointer-events: none; transition: opacity .3s; }
  .nav a { font: 400 32px var(--display); letter-spacing: 0; text-transform: none; color: var(--ink); }
  .nav.open { opacity: 1; pointer-events: auto; }
  .menu { display: block; }
  .top > .btn { display: none; }
  .top { gap: 12px; }
  .split { grid-template-columns: 1fr; }
  .hero-text { display: block; }
  .hero-text h1 { margin-bottom: 22px; }
  .split.rev > :first-child { order: 1; }
  .brand small { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 18px; }
  .pieces { grid-template-columns: 1fr; }
  .symbols { grid-template-columns: repeat(2, 1fr); }
  .symbols li { border-right: 0; border-bottom: 1px solid var(--line); }
  .hero-img { max-height: 58vh; object-position: 22% 50%; }
  .brand b { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
