/* ==========================================================================
   AWIO — awio.it
   Ricostruzione statica del sito originale.
   Tipografia e ritmo verticale allineati 1:1 all'originale:
   Montserrat 600 per i titoli, line-height 1.3, nero #000, accento #99ff00.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg:        #ffffff;
  --ink:       #000000;
  --muted:     #6b6b6b;
  --line:      rgba(0, 0, 0, .10);
  --surface:   #111111;
  --surface-2: #222222;
  --accent:    #99ff00;
  --accent-deep: #66cc00;

  --container: 1425px;
  --gutter: 20px;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }

:focus-visible { outline: 3px solid var(--accent-deep); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: #000; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: #000; color: #fff; padding: 12px 20px;
}
.skip-link:focus { left: 0; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 1425px; }

/* spaziature originali (spacer di 100 / 200 px) */
.sp-100 { height: 100px; }
.sp-200 { height: 200px; }
@media (max-width: 921px) {
  .sp-100 { height: 40px; }
  .sp-200 { height: 100px; }
}

/* ---------- Tipografia (valori dell'originale) ---------- */
h1, h2, h3 {
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: normal;
  color: var(--ink);
}

.t-hero    { font-size: 83px; line-height: 93px; }
.t-52      { font-size: 52px; }
.t-54      { font-size: 54px; }
.t-65      { font-size: 65px; }
.t-32      { font-size: 32px; }
.t-body    { font-size: 18px; font-weight: 400; line-height: 1.3; }
.t-body--center { text-align: center; }

@media (max-width: 1200px) {
  .t-hero { font-size: 64px; line-height: 72px; }
  .t-65   { font-size: 52px; }
  .t-54   { font-size: 44px; }
  .t-52   { font-size: 44px; }
}
@media (max-width: 921px) {
  .t-hero { font-size: 38px; line-height: 45px; }
  .t-65   { font-size: 38px; line-height: 45px; }
  .t-54   { font-size: 32px; }
  .t-52   { font-size: 32px; }
  .t-32   { font-size: 28px; }
  .t-body { font-size: 15px; }
}

.mark {
  background: #000000;
  color: var(--accent);
  padding: 2px 6px;
  border-radius: 3px;
  display: inline-block;
}
.accent-text { color: var(--accent-deep); font-weight: 600; }

/* ---------- Bottone (padding 20/40, raggio 50px, 20px/500) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 40px;
  background: var(--accent);
  color: #000;
  border: 0;
  border-radius: 50px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { background: #8ae600; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--sm { padding: 14px 28px; font-size: 16px; }

@media (max-width: 921px) {
  .btn { padding: 16px 32px; font-size: 17px; }
}

/* ==========================================================================
   Card Nav  (come l'originale: 800px, 60px di altezza, bianca)
   ========================================================================== */
.nav-wrap {
  position: fixed;
  top: 2em;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1425px;
  z-index: 999;
}

.card-nav {
  position: relative;
  height: 60px;
  background: #ffffff;
  border: .5px solid rgba(255, 255, 255, .1);
  border-radius: .75rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, .1);
  overflow: hidden;
  transition: height .45s var(--ease), box-shadow .4s var(--ease);
  will-change: height;
}
.card-nav.is-open { box-shadow: 0 18px 44px rgba(0, 0, 0, .18); }

.card-nav__top {
  position: absolute;
  inset: 0 0 auto 0;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .5rem .45rem .55rem 1.1rem;
  z-index: 2;
}

.burger {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 6px;
  background: none;
  border: 0;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 30px;
  height: 2px;
  background: currentColor;
  transition: transform .25s ease, opacity .2s ease;
}
.burger:hover span { opacity: .75; }
.card-nav.is-open .burger span:first-child { transform: translateY(4px) rotate(45deg); }
.card-nav.is-open .burger span:last-child  { transform: translateY(-4px) rotate(-45deg); }

.card-nav__logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
}
.card-nav__logo img { height: 45px; width: auto; max-width: 200px; object-fit: contain; }

.card-nav__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 1rem;
  background: #111;
  color: #fff;
  border-radius: calc(.75rem - .35rem);
  font-size: 14px;
  font-weight: 500;
  transition: background-color .3s ease;
}
.card-nav__cta:hover { background: #333; color: #fff; }

.card-nav__panel {
  position: absolute;
  inset: 60px 0 0 0;
  padding: .5rem;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  visibility: hidden;
  pointer-events: none;
  z-index: 1;
}
.card-nav.is-open .card-nav__panel { visibility: visible; pointer-events: auto; }

.nav-card {
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 16px;
  border-radius: calc(.75rem - .2rem);
  color: #fff;
  opacity: 0;
  transform: translateY(24px);
  transition: transform .5s var(--ease), opacity .5s var(--ease);
  user-select: none;
}
.card-nav.is-open .nav-card { opacity: 1; transform: none; }
.card-nav.is-open .nav-card:nth-child(1) { transition-delay: .06s; }
.card-nav.is-open .nav-card:nth-child(2) { transition-delay: .12s; }
.card-nav.is-open .nav-card:nth-child(3) { transition-delay: .18s; }

.nav-card:nth-child(1) { background: #0D0716; }
.nav-card:nth-child(2) { background: #170D27; }
.nav-card:nth-child(3) { background: #271E37; }

.nav-card__label { font-size: 22px; font-weight: 400; letter-spacing: -.5px; line-height: 1.2; }
.nav-card__links { margin-top: auto; display: flex; flex-direction: column; gap: 2px; }
.nav-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  line-height: 1.5;
  transition: opacity .3s ease;
}
.nav-card__link:hover { opacity: .75; }
.nav-card__link svg { flex: none; }

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .2);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
  z-index: 998;
}
.nav-backdrop.is-visible { opacity: 1; visibility: visible; }

@media (max-width: 768px) {
  .nav-wrap { width: 90%; top: 1.2em; }
  .card-nav__top { padding: .5rem 1rem; }
  .card-nav__logo { position: static; transform: none; order: -1; }
  .card-nav__cta { display: none; }
  .burger { order: 2; }
  .card-nav__panel { flex-direction: column; }
  .nav-card { flex: 1 0 auto; min-height: 90px; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding-top: 120px; }

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  align-items: start;
}

.hero__copy { margin-top: 24px; max-width: 660px; }
.hero__actions { margin-top: 30px; }

.hero__media {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #0b0b0b;
}
.hero__media video,
.hero__media img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 921px) {
  .hero { padding-top: 90px; }
  .hero__grid { grid-template-columns: 1fr; gap: 20px; }
  .hero__media { aspect-ratio: 1 / 1; order: -1; }
  .hero__copy { margin-top: 10px; }
}

/* ==========================================================================
   Certificazioni
   ========================================================================== */
.certs { text-align: center; }

/* conformita' dichiarata a testo: i marchi altrui non si espongono */
.certs__eyebrow {
  margin-top: 34px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}

.certs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 20px;
  margin: 26px auto 140px;
  max-width: 940px;
}

.certs__item {
  position: relative;
  flex: 1 1 340px;
  max-width: 440px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 26px 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  text-align: left;
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
/* alone verde che si accende all'hover */
.certs__item::after {
  content: "";
  position: absolute;
  top: -60%;
  right: -30%;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(153, 255, 0, .28), transparent 65%);
  opacity: 0;
  transition: opacity .45s var(--ease);
  pointer-events: none;
}
.certs__item:hover {
  transform: translateY(-3px);
  border-color: rgba(153, 255, 0, .55);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .08);
}
.certs__item:hover::after { opacity: 1; }

.certs__seal {
  flex: none;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(153, 255, 0, .16);
  color: #3f7a00;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
.certs__item:hover .certs__seal { background: var(--accent); color: #0a0a0a; }

.certs__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.certs__label {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.3;
  color: var(--ink);
}
.certs__desc {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  color: #5b5b5b;
}

@media (max-width: 921px) {
  .certs__eyebrow { margin-top: 22px; font-size: 10px; }
  .certs__list { gap: 12px; margin: 20px auto 60px; }
  .certs__item { flex: 1 1 100%; padding: 18px 20px; gap: 14px; }
  .certs__seal { width: 44px; height: 44px; border-radius: 12px; }
  .certs__seal svg { width: 22px; height: 22px; }
  .certs__label { font-size: 16px; }
  .certs__desc { font-size: 14px; }
}

.certs__note { margin-top: 30px; }

/* ==========================================================================
   Dome gallery — stessa geometria dell'originale
   36 spicchi, tessere 2x2 unita' sfalsate, raggio = min(w*0.85, h*1.35)
   ========================================================================== */
.dome {
  position: relative;
  height: 700px;
  overflow: hidden;
  background: var(--bg);
  touch-action: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.dome.is-dragging { cursor: grabbing; }

.dome__stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  perspective: calc(var(--radius, 945px) * 2);
  perspective-origin: 50% 50%;
}

.dome__sphere {
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  will-change: transform;
}

.dome__item {
  position: absolute;
  top: -999px;
  left: -999px;
  margin: calc(999px - var(--item-size, 165px) / 2);
  width: var(--item-size, 165px);
  height: var(--item-size, 165px);
  transform-style: preserve-3d;
  transform-origin: 50% 50%;
  backface-visibility: hidden;
}

.dome__tile {
  position: absolute;
  inset: 10px;
  border-radius: 30px;
  overflow: hidden;
  background: #efefef;
  cursor: pointer;
}
.dome__tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* visore dell'immagine ingrandita */
.dome__viewer {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: none;
}
.dome__viewer.is-open { display: block; }

.dome__scrim {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.dome__viewer.is-open .dome__scrim { opacity: 1; }

.dome__enlarge {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 400px;
  height: 400px;
  max-width: 82vw;
  max-height: 72%;
  transform: translate(-50%, -50%) scale(.9);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
  opacity: 0;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.dome__viewer.is-open .dome__enlarge { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.dome__enlarge img { width: 100%; height: 100%; object-fit: cover; }

.dome__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #111;
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.dome__viewer.is-open .dome__close { opacity: 1; }

@media (max-width: 921px) { .dome { height: 460px; } }

/* ==========================================================================
   Partner / soluzioni
   ========================================================================== */
.partners__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 25px;
  align-items: start;
}

.partners__claim { margin-top: 20px; }
.partners__copy  { margin-top: 24px; }

/* sull'originale il claim è nascosto sotto i 1024px */
@media (max-width: 1024px) { .partners__claim { display: none; } }

.sectors {
  max-width: 500px;
  margin: 0 auto;
}
.sectors__list {
  max-height: 400px;
  overflow-y: auto;
  padding: 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, .25) transparent;
  overscroll-behavior: contain;
}
.sectors__list::-webkit-scrollbar { width: 8px; }
.sectors__list::-webkit-scrollbar-track { background: transparent; }
.sectors__list::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, .2); border-radius: 999px; }
.sectors__list::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 0, .35); }

.sector {
  display: block;
  margin-bottom: 16px;
  padding: 16px;
  background: #111;
  color: #fff;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3;
  transition: background-color .2s ease;
}
.sector:last-child { margin-bottom: 0; }
.sector:hover { background: #222; }

@media (max-width: 921px) {
  .partners__grid { grid-template-columns: 1fr; gap: 30px; }
  .sector { font-size: 15px; }
}

/* ==========================================================================
   Tickly
   ========================================================================== */
.tickly__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
.tickly { padding-bottom: 100px; }
.tickly__logo { padding: 100px 10px; }
.tickly__logo img { width: 512px; max-width: 100%; margin-inline: auto; }
.tickly__copy { margin-top: 24px; }
.tickly__actions { margin-top: 30px; }

@media (max-width: 921px) {
  .tickly__grid { grid-template-columns: 1fr; gap: 0; }
  .tickly__logo { padding: 30px 10px 10px; }
  .tickly__logo img { width: 280px; }
}

/* ==========================================================================
   Chi siamo
   ========================================================================== */
.about { text-align: center; }
.about__copy { margin-top: 25px; }

@media (max-width: 921px) {
  .about, .about .t-body { text-align: left; }
}

.partners__claim { font-weight: 600; }

/* ==========================================================================
   Form  (card bianca, bordo sottile, raggio 20px, bottone a destra)
   ========================================================================== */
.contact__card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 100px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .07), 0 2px 8px rgba(0, 0, 0, .05);
}
.contact__title { font-size: 26px; font-weight: 600; margin-bottom: 34px; }

form > * + * { margin-top: 28px; }

.form__medium { max-width: 60%; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form__field { display: block; }

.form__input,
.form__textarea {
  width: 100%;
  padding: 11px 14px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .25);
  border-radius: 3px;
  font-size: 16px;
  color: rgba(0, 0, 0, .7);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.form__input::placeholder, .form__textarea::placeholder { color: rgba(0, 0, 0, .45); }
.form__input:focus, .form__textarea:focus {
  outline: none;
  border-color: var(--accent-deep);
  box-shadow: 0 0 0 3px rgba(153, 255, 0, .25);
}
.form__textarea { min-height: 120px; resize: vertical; }

.form__foot { margin-top: 30px; display: flex; justify-content: flex-end; }
.form__submit {
  background: var(--accent);
  color: #000;
  border: 0;
  border-radius: 3px;
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color .2s var(--ease);
}
.form__submit:hover { background: #8ae600; }

.form__status {
  margin-top: 16px;
  font-size: 15px;
  padding: 12px 16px;
  border-radius: 6px;
  display: none;
}
.form__status.is-ok  { display: block; background: rgba(153, 255, 0, .18); color: #2f5f00; }
.form__status.is-err { display: block; background: rgba(214, 54, 55, .1);  color: #a21d1e; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@media (max-width: 921px) {
  .contact__card { padding: 24px; }
  .form__row { grid-template-columns: 1fr; }
  .form__medium { max-width: 100%; }
}

/* ==========================================================================
   Footer  (identico all'originale)
   ========================================================================== */
.footer {
  background: #000;
  color: #fff;
  padding: 50px 0 30px;
  margin-top: 80px;
}
.footer-container { max-width: 1425px; margin: 0 auto; padding: 0 40px; }

.footer-content {
  display: grid;
  grid-template-columns: 80px 1fr 1fr 1.2fr;
  gap: 60px;
  margin-bottom: 40px;
  align-items: start;
}
.footer-logo { padding-top: 5px; }
.footer-logo img { width: 45px; height: 45px; object-fit: contain; }

.footer-column h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #fff;
  margin-bottom: 18px;
}
.footer-column ul li { margin-bottom: 10px; }
.footer-column ul li a { color: #E0E0E0; font-size: 15px; font-weight: 400; transition: color .2s; }
.footer-column ul li a:hover { color: #fff; }
.footer-column .is-plain { color: #E0E0E0; font-size: 15px; font-weight: 500; }

.footer-bottom { border-top: 1px solid #222; padding-top: 25px; margin-top: 30px; }
.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}
.footer-legal { flex: 1; }
.footer-legal-links { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 12px; }
.footer-legal-links a { color: #E0E0E0; font-size: 11px; font-weight: 300; transition: color .2s; }
.footer-legal-links a:hover { color: #fff; }
.footer-company-info { color: #555; font-size: 10px; line-height: 1.5; font-weight: 300; }

@media (max-width: 921px) {
  .footer-container { padding: 0 20px; }
  .footer-content { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-logo { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer-content { grid-template-columns: 1fr; }
}

/* ---------- Torna in alto ---------- */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: #111;
  color: #fff;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s, background-color .25s;
  z-index: 120;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top.is-hidden { opacity: 0; visibility: hidden; transform: translateY(10px); }
.to-top:hover { background: var(--accent); color: #000; }

/* ---------- Reveal (leggero, non altera il layout) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .08s; }
.js .reveal[data-delay="2"] { transition-delay: .16s; }
.js .reveal[data-delay="3"] { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
