/* Stili del sito di Rackio (rackio.it), comuni a tutte le pagine. */
:root {
  --ink: #14181d;
  --ink-2: #2a3038;
  --muted: #5d6673;
  --line: #e3e6ec;
  --soft: #f4f5f7;
  --amber: #f5a524;
  --amber-dark: #d98c0b;
  --white: #fff;
  --radius: 14px;
  --wrap: 1080px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* accessibilità */
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 30; background: var(--amber); color: var(--ink); font-weight: 700; padding: 10px 14px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 10px; }
section[id] { scroll-margin-top: 60px; }

/* pulsanti */
.btn {
  display: inline-block;
  background: var(--amber);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  padding: 15px 24px;
  border-radius: 10px;
  font-size: 18px;
  line-height: 1.2;
  text-align: center;
  transition: background .15s;
}
.btn:hover, .btn:focus-visible { background: var(--amber-dark); }
.btn-small { padding: 9px 14px; font-size: 15px; }
.btn-ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1px #5d6673; }
.btn-ghost:hover, .btn-ghost:focus-visible { background: rgba(255,255,255,.08); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.note { color: #c3c9d1; font-size: 14px; margin: 12px 0 0; }

/* testata */
.top { background: var(--ink); color: var(--white); position: sticky; top: 0; z-index: 10; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.wordmark { height: 26px; width: auto; }
.top-actions { display: flex; align-items: center; gap: 14px; }
.top a.login { color: #c3c9d1; text-decoration: none; font-size: 15px; }
.top a.login:hover { color: var(--white); }
.top .btn-small { white-space: nowrap; }

/* menu: sul telefono si apre dal pulsante (details, senza JavaScript) */
.menu-wide { display: none; }
.menu-phone summary { list-style: none; cursor: pointer; width: 42px; height: 40px; border-radius: 10px; box-shadow: inset 0 0 0 1px #3a424d; display: flex; align-items: center; justify-content: center; }
.menu-phone summary::-webkit-details-marker { display: none; }
.menu-phone summary:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.burger, .burger::before, .burger::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--white); }
.burger { position: relative; }
.burger::before, .burger::after { content: ''; position: absolute; left: 0; transition: transform .15s; }
.burger::before { top: -6px; }
.burger::after { top: 6px; }
.menu-phone[open] summary { box-shadow: inset 0 0 0 1px var(--amber); }
.menu-phone[open] .burger { background: transparent; }
.menu-phone[open] .burger::before { top: 0; transform: rotate(45deg); }
.menu-phone[open] .burger::after { top: 0; transform: rotate(-45deg); }
.menu-phone nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--ink); border-top: 1px solid #2a3038; box-shadow: 0 18px 30px rgba(0,0,0,.35); padding: 6px 0 12px; }
.menu-phone nav a { display: block; padding: 13px 20px; color: var(--white); text-decoration: none; font-size: 18px; font-weight: 600; }
.menu-phone nav a:hover { background: #1f252c; }
.menu-phone nav a[aria-current="page"] { color: var(--amber); box-shadow: inset 4px 0 0 var(--amber); }
.menu-phone nav a.menu-login { color: #c3c9d1; font-weight: 400; border-top: 1px solid #2a3038; margin-top: 6px; padding-top: 16px; }

/* apertura */
.hero { background: var(--ink); color: var(--white); padding: 36px 0 0; overflow: hidden; }
.hero .wrap { display: grid; gap: 28px; }
.eyebrow { color: var(--amber); font-weight: 700; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 10px; }
.hero h1 { font-size: 34px; line-height: 1.12; margin: 0 0 16px; letter-spacing: -.01em; }
.hero .lead { color: #d6dae0; font-size: 18px; margin: 0 0 24px; }
.hero .btn { width: 100%; }
.phone {
  background: #2a3038;
  border-radius: 34px;
  padding: 10px;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
  max-width: 300px;
  margin: 0 auto;
}
.phone img { border-radius: 25px; }
.hero .phone { max-width: 270px; border-radius: 34px 34px 0 0; padding-bottom: 0; align-self: end; }
.hero .phone img { border-radius: 25px 25px 0 0; }

/* apertura delle altre pagine */
.page-hero { background: var(--ink); color: var(--white); padding: 36px 0 44px; }
.page-hero h1 { font-size: 32px; line-height: 1.15; margin: 0 0 14px; letter-spacing: -.01em; max-width: 820px; text-wrap: balance; }
.page-hero .lead { color: #d6dae0; font-size: 18px; margin: 0; max-width: 700px; }
.page-hero .lead a { color: var(--white); }
.jump { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 26px 0 0; padding: 0; }
.jump a { display: block; box-shadow: inset 0 0 0 1px #3a424d; border-radius: 999px; padding: 7px 14px; font-size: 15px; color: #e6e9ed; text-decoration: none; }
.jump a:hover, .jump a:focus-visible { box-shadow: inset 0 0 0 1px var(--amber); color: var(--white); }
.crew-mark { width: 56px; height: 56px; margin: 0 0 18px; }
.mail-big { display: inline-block; margin-top: 22px; font-size: 22px; font-weight: 700; color: var(--amber); text-decoration: none; border-bottom: 2px solid rgba(245,165,36,.45); }
.mail-big:hover, .mail-big:focus-visible { border-bottom-color: var(--amber); }

/* sezioni */
section { padding: 56px 0; }
.alt { background: var(--soft); }

h2 { font-size: 28px; line-height: 1.2; margin: 0 0 12px; letter-spacing: -.01em; }
.sub { color: var(--muted); margin: 0 0 28px; font-size: 18px; }
.more { margin: 22px 0 0; font-size: 16px; }
.more a { font-weight: 700; text-decoration-color: var(--amber-dark); text-underline-offset: 3px; }

/* vantaggi */
.cards { display: grid; gap: 16px; }
.card { background: var(--soft); border-radius: var(--radius); padding: 22px; }
.card h3 { margin: 0 0 6px; font-size: 19px; }
.card h2 { margin: 0 0 6px; font-size: 19px; line-height: 1.5; letter-spacing: 0; }
.card p { margin: 0; color: var(--ink-2); }
.card p + p { margin-top: 8px; }
.card .tag { display: inline-block; background: var(--ink); color: var(--amber); font-weight: 700; font-size: 13px; border-radius: 6px; padding: 2px 8px; margin-bottom: 10px; }
.card .btn { margin-top: 16px; }
.card .link { display: inline-block; margin-top: 12px; font-weight: 700; text-decoration-color: var(--amber-dark); text-underline-offset: 3px; }
.alt .card { background: var(--white); }
.card .fine-note { margin-top: 12px; font-size: 15px; color: var(--muted); }

/* schermate: sul telefono scorrono di lato */
.shots { background: var(--soft); }
.shot-row { display: grid; grid-auto-flow: column; grid-auto-columns: 74%; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 20px 16px; margin: 0 -20px; scrollbar-width: none; }
.shot-row::-webkit-scrollbar { display: none; }
.shot-row .shot { scroll-snap-align: center; }
.swipe { color: var(--muted); font-size: 14px; margin: 4px 0 0; text-align: center; }
.docs-title { margin: 44px 0 6px; font-size: 22px; }
.docs-sub { color: var(--muted); margin: 0 0 18px; }
.doc-row { grid-auto-columns: 86%; }
.shot figcaption { margin-top: 14px; text-align: center; color: var(--ink-2); font-size: 16px; }
.shot figcaption b { display: block; color: var(--ink); font-size: 17px; }
.doc { background: var(--white); border-radius: var(--radius); padding: 10px; box-shadow: 0 10px 30px rgba(20,24,29,.12); }
figure { margin: 0; }

/* aree delle funzioni: testo e schermate */
.area-grid { display: grid; gap: 34px; }
.area-media { display: grid; gap: 26px; align-content: start; }
.area-media figure { width: 100%; }
.area-media .phone { max-width: 250px; }
.area-media .doc { max-width: 480px; margin: 0 auto; }
.area-media figcaption { margin-top: 12px; text-align: center; color: var(--ink-2); font-size: 15px; }
.area-media figcaption b { display: block; color: var(--ink); font-size: 16px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 470px; margin: 0 auto; }
.pair .phone { padding: 7px; border-radius: 26px; }
.pair .phone img { border-radius: 20px; }

/* elenco funzioni */
.features { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.features li { padding: 14px 0 14px 34px; border-bottom: 1px solid var(--line); position: relative; }
.features li::before { content: ''; position: absolute; left: 4px; top: 21px; width: 14px; height: 8px; border-left: 3px solid var(--amber-dark); border-bottom: 3px solid var(--amber-dark); transform: rotate(-45deg); }
.features b { display: block; }
.features span { color: var(--muted); font-size: 16px; }
.features span a { color: var(--ink); }

/* prezzo */
.price-box { background: var(--ink); color: var(--white); border-radius: var(--radius); padding: 28px 22px; text-align: center; }
.price-box .big { font-size: 48px; font-weight: 800; line-height: 1; margin: 6px 0; }
.price-box .big small { font-size: 20px; font-weight: 600; }
.price-box p { color: #d6dae0; margin: 6px 0; }
.price-box .btn { margin-top: 18px; }
.price-box .fine { color: #9aa3ae; font-size: 14px; }

.narrow { max-width: 760px; }

/* chi lo fa */
.about { display: grid; gap: 8px; }
.about blockquote { margin: 0; font-size: 19px; line-height: 1.55; border-left: 4px solid var(--amber); padding-left: 18px; }
.about .who { color: var(--muted); font-size: 15px; padding-left: 22px; }
.prose p { margin: 0 0 16px; font-size: 18px; color: var(--ink-2); }
.prose p:last-child { margin-bottom: 0; }

/* le persone (Chi siamo) */
.badge { display: inline-block; background: var(--ink); color: var(--amber); font-weight: 700; font-size: 13px; border-radius: 6px; padding: 2px 8px; }
h2.after-badge { margin-top: 12px; }
.people { display: grid; gap: 18px; }
.person { background: var(--soft); border-radius: var(--radius); padding: 24px 22px; display: grid; gap: 18px; align-content: start; }
.alt .person { background: var(--white); }
.person-head { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; row-gap: 12px; align-items: center; }
.person-head .badge { grid-column: 1 / -1; justify-self: start; }
.person-photo { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--line); }
.person h3 { margin: 0; font-size: 22px; line-height: 1.2; }
.person .role { margin: 4px 0 0; color: var(--muted); font-size: 16px; }
.person .bio p { margin: 0 0 12px; color: var(--ink-2); }
.person .bio p:last-child { margin-bottom: 0; }

/* dati dell'azienda */
.facts { margin: 0; }
.facts div { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.facts dt { color: var(--muted); font-size: 15px; }
.facts dd { margin: 0; font-weight: 600; }

/* in arrivo */
.soon { border: 1px dashed #b9c0c9; border-radius: var(--radius); padding: 20px 22px; }
.soon h2 { font-size: 22px; margin-bottom: 6px; }
.soon p { margin: 0; color: var(--ink-2); }

/* domande */
.faq-section { padding-top: 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; scroll-margin-top: 72px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 28px 14px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 10px; font-size: 24px; color: var(--amber-dark); font-weight: 400; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 0 0 16px; color: var(--ink-2); }

/* guida: indice con tutte le domande e una pagina per argomento */
.page-hero .eyebrow a { color: inherit; text-underline-offset: 3px; }
.guide-list { list-style: none; margin: 0; padding: 0; }
.guide-list li { border-bottom: 1px solid var(--line); }
.guide-list li[hidden] { display: none; }
.guide-list a { display: block; padding: 12px 26px 12px 0; text-decoration: none; font-weight: 600; position: relative; }
.guide-list a::after { content: '›'; position: absolute; right: 4px; top: 9px; font-size: 22px; color: var(--amber-dark); font-weight: 400; }
.guide-list a:hover, .guide-list a:focus-visible { text-decoration: underline; text-decoration-color: var(--amber-dark); text-underline-offset: 3px; }
.guide-topic h2 a { text-decoration: none; }
.guide-topic h2 a:hover, .guide-topic h2 a:focus-visible { text-decoration: underline; text-decoration-color: var(--amber-dark); text-underline-offset: 4px; }
.guide-topic[hidden] { display: none; }
.guide-q { padding: 34px 0 0; scroll-margin-top: 72px; }
.guide-q h2 { font-size: 23px; margin-bottom: 10px; }
.guide-q:target h2 { box-shadow: inset 4px 0 0 var(--amber); padding-left: 12px; }
/* pagina Domande: le domande sono titoli di terzo livello, sotto l'argomento */
.guide-q h3 { font-size: 21px; line-height: 1.3; margin: 0 0 10px; }
.guide-q:target h3 { box-shadow: inset 4px 0 0 var(--amber); padding-left: 12px; }
.sub + .guide-q { padding-top: 4px; }
.guide-q .prose ul { margin: 0 0 16px; padding-left: 22px; color: var(--ink-2); font-size: 18px; }
.guide-q .prose li { margin-bottom: 8px; }
.guide-q .prose mark { background: #fde7b8; color: inherit; padding: 0 3px; border-radius: 3px; }
.guide-q .in-app { font-size: 16px; }
.guide-q .in-app a { font-weight: 700; text-decoration-color: var(--amber-dark); text-underline-offset: 3px; }
.jump.light { margin-top: 18px; }
.jump.light a { box-shadow: inset 0 0 0 1px #c9ced6; color: var(--ink); background: var(--white); }
.jump.light a:hover, .jump.light a:focus-visible { box-shadow: inset 0 0 0 1px var(--amber-dark); color: var(--ink); }
.guide-search { margin: 26px 0 0; max-width: 520px; }
.guide-search input { width: 100%; font: inherit; padding: 12px 14px; border-radius: 10px; border: 0; box-shadow: inset 0 0 0 1px #3a424d; background: #1f252c; color: var(--white); }
.guide-search input::placeholder { color: #9aa3ae; }
.guide-search input:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.guide-empty { color: var(--muted); }

/* chiusura */
.closing { background: var(--amber); text-align: center; }
.closing h2 { margin-bottom: 8px; }
.closing p { margin: 0 0 22px; }
.closing .btn { background: var(--ink); color: var(--white); }
.closing .btn:hover { background: var(--ink-2); }

/* piè di pagina */
footer { background: var(--ink); color: #9aa3ae; font-size: 14px; padding: 28px 0 32px; }
.home footer { padding-bottom: 90px; }
footer p { margin: 4px 0; }
footer a { color: #c3c9d1; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0 0 16px; padding-bottom: 16px; border-bottom: 1px solid #2a3038; }
.foot-nav a { color: #e6e9ed; text-decoration: none; font-size: 15px; padding: 4px 0; }
.foot-nav a:hover { text-decoration: underline; }

/* pulsante fisso sul telefono */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(20,24,29,.96); z-index: 20; transform: translateY(110%); transition: transform .2s; }
.sticky-cta.show { transform: none; }
.sticky-cta .btn { width: 100%; }

/* telefoni stretti: "Accedi" resta nel menu */
@media (max-width: 379px) {
  .top-actions .login { display: none; }
}

@media (min-width: 760px) {
  body { font-size: 18px; }
  .hero { padding-top: 56px; }
  .hero .wrap { grid-template-columns: 1.1fr .9fr; align-items: center; }
  .hero h1 { font-size: 50px; }
  .hero .btn { width: auto; }
  .hero .phone { max-width: 320px; }
  .page-hero { padding: 60px 0 64px; }
  .page-hero h1 { font-size: 46px; }
  h2 { font-size: 36px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .shot-row { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; padding: 0; margin: 0; }
  .swipe { display: none; }
  .docs-title { margin-top: 64px; font-size: 26px; }
  .doc-row { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .features { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .area-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 56px; align-items: start; }
  .area-grid .features { grid-template-columns: 1fr; }
  .area-media { position: sticky; top: 84px; }
  .area-media .phone { max-width: 280px; }
  .facts div { grid-template-columns: 240px 1fr; gap: 16px; }
  .price-box { max-width: 520px; margin: 0 auto; padding: 36px; }
  .price-box .btn { width: auto; }
  .people { grid-template-columns: 1fr 1fr; gap: 24px; }
  .person { padding: 30px 28px; }
  .guide-q h2 { font-size: 26px; }
  .guide-q h3 { font-size: 23px; }
  .person-photo { width: 132px; height: 132px; grid-row: 1 / span 2; }
  .person-id { align-self: end; }
  .person-head .badge { grid-column: 2; align-self: start; }
  .sticky-cta { display: none; }
  .home footer { padding-bottom: 32px; }
}

@media (min-width: 960px) {
  .cards.three { grid-template-columns: repeat(3, 1fr); }
}

/* computer: menu sempre visibile */
@media (min-width: 900px) {
  .menu-phone { display: none; }
  .menu-wide { display: flex; align-items: center; gap: 26px; margin: 0 auto 0 40px; }
  .menu-wide a { color: #c3c9d1; text-decoration: none; font-size: 15px; padding: 6px 0; }
  .menu-wide a:hover { color: var(--white); }
  .menu-wide a[aria-current="page"] { color: var(--white); box-shadow: inset 0 -2px 0 var(--amber); }
  .top-actions { gap: 20px; }
}

/* --- ecosistema (home): Rackio al centro, Crew e Agency collegate --- */
.eco-eyebrow { color: #8a5a00; }
.eco-map { display: grid; justify-items: center; margin-top: 8px; }
.eco-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  width: 100%;
  max-width: 360px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  color: var(--ink);
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}
.eco-node:hover, .eco-node:focus-visible { border-color: var(--amber-dark); box-shadow: 0 10px 28px rgba(20,24,29,.08); }
.eco-node b { font-size: 20px; }
.eco-logo, .eco-panel { display: block; margin-bottom: 6px; }
.eco-panel { width: 88px; height: auto; }
.eco-for { color: var(--muted); font-size: 14px; font-weight: 600; }
.eco-desc { color: var(--ink-2); font-size: 16px; margin-top: 4px; }
.eco-more { margin-top: 8px; font-weight: 700; font-size: 15px; text-decoration: underline; text-decoration-color: var(--amber-dark); text-underline-offset: 3px; }
.eco-core { background: var(--ink); border-color: var(--ink); color: var(--white); }
.eco-core .eco-for { color: var(--amber); }
.eco-core .eco-desc { color: #d6dae0; }
.eco-core .eco-more { text-decoration-color: var(--amber); }
.eco-core:hover, .eco-core:focus-visible { border-color: var(--amber); }
/* il collegamento: una linea con l'etichetta (in verticale sul telefono) */
.eco-link { position: relative; display: flex; align-items: center; justify-content: center; min-height: 64px; width: 100%; }
.eco-link::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; border-left: 2px dashed var(--amber-dark); }
.eco-link span { position: relative; background: var(--soft); color: var(--muted); font-size: 14px; font-weight: 600; padding: 2px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }

/* pagina Agency e Sicurezza */
.agency-mark { display: block; width: 104px; height: auto; margin: 0 0 18px; }
.agency-hero .btn-row { margin-top: 24px; }
.fine-print { color: var(--muted); font-size: 15px; margin: 18px 0 0; }
.features.one { grid-template-columns: 1fr; }

@media (min-width: 900px) {
  .eco-map { grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1.1fr) 150px minmax(0, 1fr); align-items: center; margin-top: 20px; }
  .eco-node { max-width: none; height: 100%; justify-content: center; }
  .eco-core { padding: 30px 22px; box-shadow: 0 18px 40px rgba(20,24,29,.18); }
  .eco-link { min-height: 0; height: 100%; }
  .eco-link::before { top: 50%; bottom: auto; left: 0; right: 0; border-left: 0; border-top: 2px dashed var(--amber-dark); }
  .eco-link span { text-align: center; line-height: 1.3; margin: 0 6px; }
}
