/* ===== ravennasiti.it — solo home (dalla bozza "tessera dopo tessera") ===== */
.hh { position: relative; min-height: calc(100svh - 72px); display: flex; align-items: center; color: #fff; overflow: hidden; background: radial-gradient(1200px 600px at 70% 10%, #1d3354 0%, var(--notte) 60%); }
#mosaico { position: absolute; inset: 0; width: 100%; height: 100%; }
.hh .wrap { position: relative; z-index: 2; width: 100%; padding: 40px var(--pad) 80px; pointer-events: none; }
.hh .wrap * { pointer-events: auto; }
.hh .slot { height: clamp(96px, 15vw, 205px); }
.hh .kicker { display: block; font: 600 12px/1.4 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--oro-2); margin-bottom: 18px; }
.hh h1 { font: 500 clamp(38px, 6vw, 84px)/1.03 var(--serif); letter-spacing: -.02em; max-width: 15ch; text-wrap: balance; }
.hh h1 em { font-style: italic; color: var(--oro-2); }
.hh .lead { margin-top: 22px; color: #cbd5e1; max-width: 50ch; }
.hh .lead b { color: #fff; }
.hh .cta { margin-top: 32px; }
.hh .btn { background: var(--oro); border-color: var(--oro); color: var(--notte); }
.hh .btn:hover { background: var(--oro-2); }
.hh .btn.ghost { background: transparent; border-color: rgba(255, 255, 255, .4); color: #fff; }
.hh .btn.ghost:hover { background: rgba(255, 255, 255, .08); }
.hh .fiducia { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px; font-size: 14px; color: #94a3b8; list-style: none; }
.hh .fiducia li::before { content: "◆ "; color: var(--oro); font-size: 10px; }
.rot { display: inline-block; position: relative; color: var(--oro-2); font-style: italic; white-space: nowrap; }
.rot span { display: inline-block; transition: transform .35s var(--ease), opacity .35s; }
.rot span.out { transform: translateY(-50%); opacity: 0; }
.rot span.pre { transform: translateY(50%); opacity: 0; transition: none; }

/* identità: barra degli indirizzi */
.identita { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.addr { background: #fff; border-radius: 22px; box-shadow: 0 30px 60px -30px rgba(14, 26, 43, .35); overflow: hidden; border: 1px solid #e8e0d2; }
.addr .barra { display: flex; gap: 8px; align-items: center; padding: 14px 16px; background: #f2ece1; border-bottom: 1px solid #e8e0d2; }
.addr .barra i { width: 11px; height: 11px; border-radius: 50%; background: #e3d8c6; }
.addr .campo { margin-left: 10px; flex: 1; background: #fff; border-radius: 99px; padding: 9px 16px; font-size: 15px; color: #334155; display: flex; gap: 8px; align-items: center; min-height: 40px; }
.addr .campo svg { color: var(--smeraldo); flex: none; }
#digita::after { content: ""; display: inline-block; width: 2px; height: 1em; background: var(--cotto); vertical-align: -2px; margin-left: 2px; animation: cur 1s steps(1) infinite; }
@keyframes cur { 50% { opacity: 0; } }
.addr .corpo { padding: 32px 30px; }
.addr .corpo > b { font: 600 30px/1.1 var(--serif); display: block; } .addr .corpo > b span { color: var(--cotto); }
.addr ul { list-style: none; margin-top: 18px; display: grid; gap: 12px; }
.addr li { display: flex; gap: 12px; align-items: flex-start; color: #334155; line-height: 1.45; font-size: 16px; }
.addr li::before { content: ""; flex: 0 0 10px; height: 10px; margin-top: 7px; border-radius: 2px; background: var(--oro); }
.addr li:nth-child(2)::before { background: var(--smeraldo); } .addr li:nth-child(3)::before { background: var(--cotto); }

/* lavori trascinabili */
.track { display: flex; gap: 26px; padding: 10px max(var(--pad), calc((100vw - 1240px) / 2)) 30px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; }
.track::-webkit-scrollbar { display: none; }
.lav { flex: 0 0 min(560px, 84vw); scroll-snap-align: center; perspective: 900px; text-decoration: none; }
.lav .frame { background: #fff; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 60px -35px rgba(14, 26, 43, .5); transition: transform .4s var(--ease); }
.lav .barra { display: flex; gap: 6px; align-items: center; padding: 10px 12px; background: #f2ece1; }
.lav .barra i { width: 9px; height: 9px; border-radius: 50%; background: #e0d4bf; }
.lav .barra span { margin-left: 8px; font-size: 12px; color: #64748b; background: #fff; border-radius: 99px; padding: 4px 12px; }
.lav img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; -webkit-user-drag: none; }
.lav .meta2 { display: flex; justify-content: space-between; align-items: end; margin-top: 16px; gap: 12px; }
.lav h3 { font: 600 22px/1.2 var(--serif); } .lav p { color: var(--muted); font-size: 15px; margin-top: 4px; }
.lav .vai { font-weight: 600; color: var(--cotto); white-space: nowrap; }

/* prima / dopo su Google */
.pd { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
.cmp { position: relative; border-radius: 26px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 40px 70px -40px rgba(14, 26, 43, .5); height: 440px; user-select: none; touch-action: pan-y; --x: 50%; }
.cmp .lay { position: absolute; inset: 0; padding: 28px; background: #fff; }
.cmp .dopo { clip-path: inset(0 0 0 var(--x)); }
.g { font: 400 13px/1.45 Arial, sans-serif; color: #5f6368; }
.g .q { border: 1px solid #dfe1e5; border-radius: 99px; padding: 10px 16px; margin-bottom: 18px; color: #202124; font-size: 14px; }
.g .res { border: 1px solid #e8eaed; border-radius: 16px; padding: 18px; }
.g .res strong { display: block; font-size: 19px; color: #1a0dab; font-weight: 400; margin-bottom: 4px; }
.g .st { color: #e37400; } .g .riga { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.g .chip { border: 1px solid #dadce0; border-radius: 99px; padding: 7px 12px; font-size: 12.5px; color: #1a73e8; }
.g .chip.off { color: #b0b4b9; text-decoration: line-through; }
.g .miss { margin-top: 16px; padding: 12px; border-radius: 12px; background: #fdecea; color: #b3261e; }
.g .ok { margin-top: 16px; padding: 12px; border-radius: 12px; background: #e6f4ea; color: #137333; }
.g .thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 14px; }
.g .thumbs i { aspect-ratio: 1; border-radius: 8px; background: linear-gradient(135deg, var(--oro), var(--cotto)); }
.g .thumbs i:nth-child(2) { background: linear-gradient(135deg, var(--smeraldo), var(--notte)); }
.g .thumbs i:nth-child(3) { background: linear-gradient(135deg, var(--cotto), var(--oro-2)); }
.lab { position: absolute; bottom: 16px; z-index: 3; font: 700 11px/1 var(--body); letter-spacing: .14em; padding: 7px 10px; border-radius: 99px; }
.lab.a { left: 16px; background: #fdecea; color: #b3261e; } .lab.b { right: 16px; background: var(--notte); color: var(--oro-2); }
.handle { position: absolute; top: 0; bottom: 0; left: var(--x); width: 3px; margin-left: -1.5px; background: var(--notte); z-index: 4; cursor: ew-resize; border: 0; padding: 0; }
.handle::after { content: "⟷"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; background: var(--notte); color: var(--oro-2); display: grid; place-items: center; font-size: 18px; box-shadow: 0 8px 20px -6px rgba(0, 0, 0, .4); }

/* SmartBooking: telefono dimostrativo */
.sb { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.sb ul { list-style: none; margin-top: 24px; display: grid; gap: 14px; }
.sb li { display: flex; gap: 12px; line-height: 1.5; color: var(--ink-2); }
.sb li::before { content: "✓"; flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--notte); color: var(--oro-2); display: grid; place-items: center; font-size: 13px; }
.pill { display: inline-block; margin-top: 26px; padding: 8px 14px; border-radius: 99px; background: #e9f3ef; color: var(--smeraldo); font-weight: 600; font-size: 14px; }
.phone { justify-self: center; width: 300px; height: 600px; border-radius: 44px; background: var(--notte); padding: 14px; box-shadow: 0 50px 80px -40px rgba(14, 26, 43, .6); position: relative; }
.screen { background: #fff; border-radius: 32px; height: 100%; padding: 26px 18px; overflow: hidden; position: relative; }
.screen .t { font-weight: 700; font-size: 17px; } .screen .s { font-size: 12px; color: var(--muted); margin-top: 2px; }
.days { display: flex; gap: 6px; margin: 18px 0 14px; }
.days div { flex: 1; text-align: center; padding: 8px 0; border-radius: 12px; background: #f3efe7; font-size: 11px; color: #475569; }
.days div b { display: block; font-size: 16px; }
.days .on { background: var(--notte); color: #cbd5e1; } .days .on b { color: #fff; }
.slots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.slots div { padding: 11px; border: 1px solid #e5e7eb; border-radius: 12px; font-size: 13px; text-align: center; font-weight: 600; transition: all .3s; }
.slots .x { color: #cbd5e1; text-decoration: line-through; border-style: dashed; }
.slots .pick { background: var(--oro); border-color: var(--oro); color: var(--notte); }
.toast { position: absolute; left: 14px; right: 14px; bottom: 18px; background: var(--smeraldo); color: #fff; border-radius: 16px; padding: 14px; font-size: 13px; line-height: 1.4; transform: translateY(140%); transition: transform .5s var(--ease); }
.toast b { color: #fff; } .toast.show { transform: none; }
.clock { position: absolute; top: -16px; right: -26px; background: var(--cotto); color: #fff; border-radius: 16px; padding: 10px 14px; font-weight: 700; font-size: 14px; box-shadow: 0 10px 30px -10px rgba(192, 88, 47, .7); }

/* pacchetti */
.pk { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 44px; }
.p { background: #fff; border-radius: 24px; padding: 38px 34px; border: 1px solid #e4d9c6; position: relative; display: flex; flex-direction: column; }
.p.top { background: var(--notte); color: #fff; border-color: var(--notte); }
.p h3 { font: 600 15px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--cotto); }
.p.top h3 { color: var(--oro-2); }
.p .euro { font: 600 64px/1 var(--serif); margin: 14px 0 4px; letter-spacing: -.03em; }
.p .nota { font-size: 14px; color: var(--muted); } .p.top .nota { color: #94a3b8; }
.p ul { list-style: none; margin: 24px 0 28px; display: grid; gap: 11px; flex: 1; }
.p li { padding-left: 22px; position: relative; line-height: 1.45; }
.p li::before { content: ""; position: absolute; left: 0; top: 7px; width: 9px; height: 9px; border-radius: 2px; background: var(--oro); }
.p .badge { position: absolute; top: -14px; right: 26px; }
.p.top .btn { background: var(--oro); border-color: var(--oro); color: var(--notte); }
.rinnovo { margin-top: 22px; color: var(--ink-2); font-size: 15.5px; line-height: 1.6; max-width: 80ch; }

/* zona */
.citta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 36px; }
.citta a { padding: 12px 20px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .2); color: #dbe3ee; text-decoration: none; transition: all .2s; }
.citta a:hover { background: var(--oro); color: var(--notte); border-color: var(--oro); }
.block.zona { text-align: center; } .block.zona .big { margin-inline: auto; } .block.zona .eyebrow { justify-content: center; }

@media (max-width: 1000px) {
  .identita, .pd, .sb { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .hh { min-height: 0; } .hh .wrap { padding: 24px 18px 64px; } .hh .slot { height: calc(22px + 15vw); }
  .pk { grid-template-columns: 1fr; } .cmp { height: 480px; } .phone { width: 270px; height: 540px; } .clock { right: -8px; }
  .p .euro { font-size: 54px; }
}
@media (prefers-reduced-motion: reduce) { #digita::after { animation: none; } }

/* simulazione risultati Google (prima / dopo) */
.cmp.serp { height: 600px; }
.serp .lay { padding: 22px 22px 70px; font-size: 12.5px; }
.serp .q { margin-bottom: 12px; }
.serp .mappa { position: relative; height: 70px; border-radius: 12px; margin-bottom: 8px; background: linear-gradient(135deg, #e8f0e4 0 30%, #dfe9f3 30% 32%, #e8f0e4 32% 60%, #f3eadb 60% 62%, #e8f0e4 62%); border: 1px solid #e3e6ea; }
.serp .pin { position: absolute; width: 22px; height: 22px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #ea4335; color: #fff; font: 700 11px/22px Arial, sans-serif; text-align: center; }
.serp .pin.tu { background: var(--oro); color: var(--notte); box-shadow: 0 0 0 4px rgba(212, 167, 44, .3); }
.serp .p1 { left: 22%; top: 18px; } .serp .p2 { left: 52%; top: 28px; } .serp .p3 { left: 76%; top: 14px; }
.serp .loc { padding: 8px 10px; border-bottom: 1px solid #eef0f2; }
.serp .loc strong { display: block; font-size: 14px; color: #202124; font-weight: 600; }
.serp .loc .st { color: #70757a; font-size: 12px; }
.serp .loc .riga { margin-top: 6px; gap: 6px; }
.serp .chip { padding: 5px 9px; font-size: 11.5px; }
.serp .thumbs { grid-template-columns: repeat(3, 60px); margin-top: 6px; }
.serp .org { padding: 9px 10px 4px; }
.serp .org small { display: block; color: #4d5156; font-size: 11.5px; }
.serp .org small em { font-style: normal; font-weight: 700; color: var(--cotto); margin-left: 6px; text-transform: uppercase; font-size: 10px; letter-spacing: .08em; }
.serp .org strong { display: block; color: #1a0dab; font-size: 14.5px; font-weight: 400; margin-top: 2px; }
.serp .sl { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 5px; padding-left: 10px; border-left: 2px solid #e3e6ea; }
.serp .sl span { color: #1a0dab; font-size: 12.5px; }
.serp .tu { background: #fffbea; border-radius: 10px; }
.serp .lay:not(.dopo) .tu { background: #fff4f2; }
.serp .miss, .serp .ok { margin-top: 10px; padding: 10px 12px; font-size: 12.5px; }
.pd-punti { list-style: none; margin-top: 22px; display: grid; gap: 12px; }
.pd-punti li { position: relative; padding-left: 30px; color: var(--ink-2); line-height: 1.5; }
.pd-punti li::before { content: ""; position: absolute; left: 0; top: 5px; width: 14px; height: 14px; border-radius: 3px; background: var(--oro); transform: rotate(45deg); }
@media (max-width: 680px) { .cmp.serp { height: 640px; } .serp .lay { padding: 16px 14px 64px; } .serp .org strong { font-size: 13.5px; } }

/* ===== foto di Ravenna ===== */
.hh-foto { display: none; }
@media (min-width: 1200px) {
  .hh .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 440px; column-gap: 64px; align-items: center; }
  .hh .wrap > * { grid-column: 1; }
  .hh .slot { height: 24px; }
  .hh .wrap > .hh-foto { display: block; grid-column: 2; grid-row: 1 / span 6; position: relative; margin: 0; }
  .hh-foto img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 26px; box-shadow: 0 40px 80px rgba(0, 0, 0, .45), 0 0 0 1px rgba(241, 207, 106, .25); }
  .hh-foto::before, .hh-foto::after { content: ""; position: absolute; width: 34px; height: 34px; border-radius: 6px; z-index: 1; box-shadow: 0 10px 24px rgba(0, 0, 0, .35); }
  .hh-foto::before { top: -14px; left: -14px; background: var(--oro); transform: rotate(-8deg); }
  .hh-foto::after { bottom: 92px; right: -14px; background: var(--cotto); transform: rotate(10deg); width: 26px; height: 26px; }
  .hh-foto figcaption { position: absolute; left: 18px; right: 18px; bottom: 18px; padding: 14px 16px; border-radius: 16px; background: rgba(14, 26, 43, .82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 14px; line-height: 1.45; color: #cbd5e1; }
  .hh-foto figcaption b { display: block; color: var(--oro-2); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 4px; }
}
.foto-ra { margin: 36px 0 0; }
.foto-ra img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 22px; box-shadow: 0 24px 50px rgba(22, 32, 46, .18); }
.foto-ra figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); }
.block.zona { position: relative; isolation: isolate; overflow: hidden; }
.block.zona::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14, 26, 43, .9), rgba(14, 26, 43, .78) 50%, rgba(14, 26, 43, .92)), var(--foto, none) center 60% / cover no-repeat; }
.block.zona .citta a { background: rgba(14, 26, 43, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
