/* ===== Pagine interne di Ravenna Siti Web: stesso stile della home ===== */
:root {
  --bg: #04050a; --ink: #f3f3f6; --ink-2: #c3c5d0; --muted: #8a8d9e; --orange: #ff8a3d; --line: rgba(255, 255, 255, .1);
  --ease: cubic-bezier(.16, 1, .3, 1); --pad: clamp(20px, 5vw, 88px); --gut: clamp(16px, 2vw, 32px);
  --head: 'Bricolage Grotesque', 'Arial Narrow', sans-serif; --serif: 'Instrument Serif', Georgia, serif;
  --body: 'Inter', system-ui, sans-serif; --mono: 'JetBrains Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: clip; }
body { background: var(--bg); color: var(--ink); font: 400 16px/1.65 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
b, strong { font-weight: 600; color: #fff; }
::selection { background: var(--orange); color: #000; }
.no-gl body, html.no-gl { background: linear-gradient(180deg, #1d3353, #7f95ab 55%, #0b1e30 56%, #04050a); }

/* scena 3D dietro tutto e velo che tiene leggibile il testo */
#scena { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; opacity: 0; transition: opacity 2.4s ease; }
#scena.on { opacity: 1; }
.no-gl #scena { display: none; }
#velo { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .55; background: linear-gradient(90deg, rgba(6, 12, 24, .86), rgba(6, 12, 24, .5) 45%, rgba(6, 12, 24, 0) 72%); }
.obj-hover body { cursor: grab; }
main { position: relative; z-index: 2; }

/* header */
.bar { position: fixed; inset: 0 0 auto 0; z-index: 30; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px var(--pad); }
.bar::before { content: ""; position: absolute; inset: 0 0 -30px; background: linear-gradient(180deg, rgba(4, 5, 10, .7), rgba(4, 5, 10, 0)); pointer-events: none; z-index: -1; }
.logo { font: 800 22px/1 var(--head); font-stretch: 75%; letter-spacing: .04em; text-decoration: none; }
.bar nav { display: flex; align-items: center; gap: 26px; font: 500 13px/1 var(--body); }
.bar nav a { text-decoration: none; opacity: .85; transition: opacity .3s, color .3s; }
.bar nav a:hover { opacity: 1; color: var(--orange); }
.bar .wa { padding: 11px 16px; border-radius: 99px; background: #25d366; color: #04120a; font-weight: 600; opacity: 1; }
.bar .wa:hover { color: #04120a; filter: brightness(1.08); }

/* titoli */
.eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; font: 400 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.eyebrow::before { content: attr(data-n); color: var(--orange); }
.eyebrow::after { content: ""; flex: 0 0 48px; height: 1px; background: var(--line); }
.crumbs { font: 400 12px/1.4 var(--mono); color: var(--muted); margin-bottom: 18px; letter-spacing: .04em; }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--orange); }
.big { font: 750 clamp(52px, 7.4vw, 128px)/.9 var(--head); font-stretch: 75%; text-transform: uppercase; letter-spacing: -.008em; word-spacing: .06em; margin: 0 0 28px -.04em; }
.big .accent { font-family: var(--serif); font-style: italic; font-weight: 400; font-stretch: 100%; text-transform: none; letter-spacing: -.01em; font-size: 1.06em; color: var(--orange); }
.big .w { display: inline-block; white-space: nowrap; }
.big .c { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .1em .14em .02em; margin: 0 -.1em -.14em -.02em; }
.big .c > span { display: inline-block; transform: translateY(110%) rotate(6deg); transform-origin: 0 100%; transition: transform 1.2s var(--ease), color .35s; }
.in .big .c > span, .big.in .c > span { transform: none; }
.big .w:hover .c > span { color: var(--orange); }
.big .accent .w:hover .c > span { color: #ffc2a1; }
h2.big { font-size: clamp(44px, 5.6vw, 96px); }
.lead { font: 400 clamp(17px, 1.25vw, 20px)/1.6 var(--body); color: var(--ink-2); max-width: 44ch; text-shadow: 0 1px 18px rgba(4, 5, 10, .9); }
.fade { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.in .fade, .fade.in { opacity: 1; transform: none; }

/* pulsanti */
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.btn { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 16px 26px; border-radius: 99px; text-decoration: none; overflow: hidden; isolation: isolate; font: 600 12px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; background: var(--ink); color: var(--bg); border: 1px solid var(--ink); transition: color .5s var(--ease), border-color .5s; cursor: pointer; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--orange); transform: translateY(101%); transition: transform .6s var(--ease); }
.btn:hover { color: #fff; border-color: var(--orange); } .btn:hover::before { transform: none; }
.btn.ghost { background: rgba(10, 18, 32, .35); color: var(--ink); border-color: rgba(255, 255, 255, .35); }
.btn.wa { background: #25d366; border-color: #25d366; color: #04120a; }

/* prima schermata */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 130px var(--pad) 90px; cursor: grab; touch-action: pan-y; }
.hero.drag { cursor: grabbing; }
.hero .txt { max-width: 640px; cursor: auto; }
.hint { position: absolute; right: var(--pad); bottom: 36px; display: flex; align-items: center; gap: 12px; font: 400 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.hint i { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); display: grid; place-items: center; font-style: normal; animation: nudge 2.4s var(--ease) infinite; }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(8px); } }

/* sezioni sopra la scena */
.block { position: relative; padding: clamp(90px, 11vw, 150px) var(--pad); background: rgba(6, 10, 20, .74); border-top: 1px solid var(--line); }
.wrap { max-width: 1240px; margin: 0 auto; }
.two { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(30px, 5vw, 80px); align-items: start; }
.prose p { color: var(--ink-2); font-size: 17px; margin-bottom: 18px; max-width: 62ch; }
.prose h3 { font: 600 22px/1.2 var(--head); text-transform: uppercase; margin: 30px 0 10px; }

/* schede con inclinazione 3D */
.grid-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 46px; perspective: 1000px; }
.card { position: relative; padding: 26px 24px 28px; border-radius: 20px; background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015)); border: 1px solid var(--line); transform-style: preserve-3d; transition: border-color .4s, background .4s; will-change: transform; }
.card:hover { border-color: rgba(255, 138, 61, .5); background: linear-gradient(160deg, rgba(255, 138, 61, .12), rgba(255, 255, 255, .02)); }
.card small { display: block; font: 400 12px/1 var(--mono); color: var(--orange); margin-bottom: 16px; transform: translateZ(30px); }
.card h3 { font: 600 21px/1.15 var(--head); text-transform: uppercase; margin-bottom: 8px; transform: translateZ(40px); }
.card p { color: var(--ink-2); font-size: 15px; line-height: 1.6; transform: translateZ(20px); }

/* simulatore: scegli la tua attività */
.sim { margin-top: 46px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px; align-items: stretch; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; align-content: flex-start; }
.chips button { padding: 13px 18px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .2); background: transparent; color: var(--ink); font: 500 15px/1 var(--body); cursor: pointer; transition: background .3s, color .3s, border-color .3s, transform .35s var(--ease); }
.chips button:hover { border-color: #fff; transform: translateY(-2px); }
.chips button[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: #fff; }
.sim-out { position: relative; overflow: hidden; border-radius: 22px; min-height: 300px; border: 1px solid var(--line); background: #0b0e18; }
.sim-out img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: opacity .6s, transform 1.4s var(--ease); }
.sim-out::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6, 10, 20, .92) 30%, rgba(6, 10, 20, .2)); }
.sim-out .t { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 26px; }
.sim-out h3 { font: 600 26px/1.1 var(--head); text-transform: uppercase; margin-bottom: 12px; }
.sim-out ul { list-style: none; display: grid; gap: 8px; color: var(--ink-2); }
.sim-out li::before { content: "→  "; color: var(--orange); }

/* passaggi con linea che si riempie */
.steps { position: relative; list-style: none; margin-top: 46px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 18px; height: 1px; background: var(--line); }
.steps::after { content: ""; position: absolute; left: 0; top: 18px; height: 1px; width: calc(var(--fill, 0) * 100%); background: var(--orange); }
.steps li { position: relative; padding-top: 50px; }
.steps li::before { content: attr(data-n); position: absolute; top: 0; left: 0; width: 37px; height: 37px; border-radius: 50%; display: grid; place-items: center; font: 400 12px/1 var(--mono); background: #0b0e18; border: 1px solid rgba(255, 255, 255, .25); transition: background .4s, border-color .4s, color .4s; }
.steps li.on::before { background: var(--orange); border-color: var(--orange); color: #fff; }
.steps h3 { font: 600 19px/1.2 var(--head); text-transform: uppercase; margin-bottom: 6px; }
.steps p { color: var(--ink-2); font-size: 15px; }

/* domande frequenti */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; font: 500 clamp(18px, 1.5vw, 23px)/1.25 var(--head); text-transform: uppercase; transition: color .3s; }
.faq summary:hover { color: var(--orange); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat; transition: transform .5s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); padding: 0 0 24px; max-width: 64ch; }

/* altre pagine */
.links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 40px; }
.links a { position: relative; display: block; overflow: hidden; border-radius: 18px; aspect-ratio: 4 / 3.2; text-decoration: none; border: 1px solid var(--line); }
.links img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; filter: saturate(.8) brightness(.7); }
.links a:hover img { transform: scale(1.1); filter: saturate(1.1) brightness(.85); }
.links span { position: absolute; left: 16px; right: 16px; bottom: 16px; font: 600 19px/1.1 var(--head); text-transform: uppercase; }
.links span small { display: block; font: 400 11px/1 var(--mono); color: var(--orange); margin-bottom: 8px; letter-spacing: .08em; }

/* contatto */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: start; }
.contact ul { list-style: none; display: grid; gap: 20px; margin-top: 34px; }
.contact li small { display: block; font: 400 11px/1.6 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact li a, .contact li span { text-decoration: none; font: 500 clamp(19px, 1.7vw, 26px)/1.25 var(--head); }
.contact li a:hover { color: var(--orange); }
form.wa-form { display: grid; gap: 20px; }
label { display: grid; gap: 6px; font: 400 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
input, textarea { font: 400 17px/1.4 var(--body); color: var(--ink); padding: 12px 0; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .22); background: transparent; width: 100%; border-radius: 0; }
input:focus, textarea:focus { outline: none; border-color: var(--orange); }
textarea { min-height: 110px; resize: vertical; }
.note { font-size: 13px; color: var(--muted); }

footer { position: relative; z-index: 2; background: #000; color: var(--muted); padding: 60px var(--pad) 28px; font-size: 14px; border-top: 1px solid var(--line); }
footer .top { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-bottom: 30px; }
footer ul { list-style: none; display: grid; gap: 8px; }
footer a { text-decoration: none; } footer a:hover { color: #fff; }
footer .mega { font: 800 clamp(60px, 15vw, 260px)/.8 var(--head); font-stretch: 75%; text-transform: uppercase; color: #101219; white-space: nowrap; margin: 6px 0 24px; overflow: hidden; }
footer .bottom { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--line); font: 400 12px/1.5 var(--mono); }

/* telefono: oggetto in alto, testi in basso su un pannello leggibile */
@media (max-width: 860px) {
  .bar nav a:not(.wa) { display: none; }
  #velo { background: linear-gradient(180deg, rgba(6, 12, 24, 0) 38%, rgba(6, 12, 24, .55) 62%, rgba(6, 12, 24, .85)); }
  .hero { align-items: flex-end; padding: 50svh 20px 70px; }
  .hero .txt { background: rgba(6, 10, 20, .6); border: 1px solid rgba(255, 255, 255, .08); border-radius: 22px; padding: 24px 20px; }
  .hint { left: 20px; right: auto; top: 96px; bottom: auto; }
  .big { font-size: clamp(44px, 13vw, 76px); margin-bottom: 20px; }
  h2.big { font-size: clamp(40px, 11vw, 64px); }
  .lead { font-size: 16px; }
  .block { padding: 80px 20px; }
  .two, .sim, .contact { grid-template-columns: 1fr; }
  .grid-cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .steps::before, .steps::after { display: none; }
  .steps li { padding: 0 0 0 54px; }
  .links { grid-template-columns: 1fr 1fr; }
  .btn { padding: 15px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .big .c > span, .fade { transform: none !important; opacity: 1 !important; transition: none !important; }
  .hint i { animation: none; }
}
