:root {
  --cyan: #00c8ff;
  --teal: #0e585c;
  --ink: #000;
  --text: #1a1a1a;
  --muted: #555;
  --dark: #4d4d4d;
  --header-h: 67px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: 'Raleway', Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: stretch;
  background: var(--cyan);
}
.brand { background: #000; display: flex; align-items: center; padding: 0 50px 0 28px; }
.brand img { width: 158px; height: auto; }
.main-nav { margin-left: auto; display: flex; align-items: center; padding-right: 22px; }
.main-nav a {
  color: #fff; text-decoration: none; font-weight: 700; font-size: 14px;
  padding: 0 34px; line-height: var(--header-h);
  transition: color .2s;
}
.main-nav a:hover, .main-nav a.active { color: #0e3d6b; }
.menu-toggle { display: none; }

/* Dot nav */
.dot-nav {
  position: fixed; right: 40px; top: 50%; transform: translateY(-50%); z-index: 40;
  display: flex; flex-direction: column; gap: 13px;
}
.dot-nav a {
  width: 12px; height: 12px; border-radius: 50%;
  border: 1.5px solid #fff; background: transparent;
  box-shadow: 0 0 2px rgba(0,0,0,.35);
}
.dot-nav a.active { background: #fff; }

/* Buttons */
.btn {
  display: inline-block; border: 0; cursor: pointer;
  background: var(--cyan); color: #fff;
  font: 700 15px 'Raleway', sans-serif; text-decoration: none;
  padding: 14px 28px; transition: background .2s;
}
.btn:hover { background: #00a8d8; }
.btn-pill { border-radius: 30px; min-width: 202px; text-align: center; }
.btn-block { display: block; width: 100%; padding: 13px; font-size: 16px; }
.btn-ghost { background: transparent; border: 1px solid #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }

/* Hero */
.hero {
  margin-top: var(--header-h);
  min-height: 926px;
  background: var(--teal) url('/assets/hero-bg.png') center / cover no-repeat;
  display: flex; justify-content: center;
}
.hero-inner { width: 100%; max-width: 980px; padding: 80px 20px 0; text-align: center; }
.hero h1 { font-weight: 600; font-size: 44px; line-height: 1.27; color: #000; margin: 0 0 72px; }
.video {
  position: relative; width: 745px; max-width: 100%; margin: 90px auto 0;
  aspect-ratio: 745 / 418; background: #000;
  box-shadow: 0 2px 6px rgba(0,0,0,.4);
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Content sections */
.section { padding: 130px 0 90px; }
.container { max-width: 980px; margin: 0 auto; padding: 0 20px; }
.title-xl { font-weight: 600; font-size: 40px; color: #2f2e2e; margin: 0 0 32px; line-height: 1.2; }
h3 { font-weight: 600; font-size: 28px; color: #000; margin: 52px 0 26px; line-height: 1.2; }
p { margin: 0 0 1em; text-align: justify; }
p.tight { margin-bottom: 0; }
ul { margin: 0; padding-left: 29px; text-align: justify; }
ul.compact { line-height: 1.3; }

.img-applicazioni { margin: 40px auto 0; width: 692px; max-width: 100%; }

/* Lente interattiva */
.section-lente { padding-top: 0; }
.lente-bg {
  padding: 150px 0 70px;
  background: url('/assets/lente-bg.jpg') center top / cover no-repeat;
  position: relative;
}
.lente-bg::before { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,.7); }
.lente-bg > .container { position: relative; }
.framed { margin: 34px auto 36px; width: 552px; max-width: 100%; position: relative; }
.framed img { border: 1px solid #ddd; background: #fff; }
.framed::after {
  content: ''; position: absolute; left: 3%; right: 3%; bottom: -10px; height: 18px; z-index: -1;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 70%);
}
.framed-overlap { margin-top: -30px; }
.framed-wide { width: 600px; margin-top: 46px; }

/* Dicono di noi */
.section-press { padding: 140px 0 70px; }
.press-item { display: flex; gap: 27px; max-width: 556px; margin: 76px auto 0; }
.press-item > a { flex: 0 0 120px; }
.press-item h4 { margin: 0; font-weight: 400; font-size: 18px; color: #555; }
.press-item h4 a { text-decoration: none; }
.press-item h4 a:hover { color: var(--cyan); }
.press-item .press-source { font-style: italic; font-size: 13px; color: #777; margin: 0 0 8px; }
.press-item p { color: #444; line-height: 1.3; }

/* Contatti */
.section-contact {
  background:
    radial-gradient(ellipse at 85% 0%, rgba(120,130,140,.45) 0%, rgba(0,0,0,0) 55%),
    linear-gradient(180deg, #111 0%, #2a2a2a 30%, var(--dark) 35%, var(--dark) 100%);
  color: #fff;
  padding: 60px 20px 45px;
}
.contact-inner { max-width: 664px; margin: 0 auto; }
.section-contact h2 { font-weight: 700; font-size: 38px; line-height: 1.4; margin: 0 0 50px; position: relative; padding-right: 30px; }
.section-contact .chev { color: var(--cyan); position: absolute; right: 6px; bottom: 0; font-size: 46px; line-height: 1.2; }
.contact-form .row { display: flex; gap: 17px; margin-bottom: 12px; }
.contact-form input, .contact-form textarea {
  width: 100%; background: #ebebeb; border: 1px solid transparent; color: #222;
  font: 400 14px 'Raleway', sans-serif; padding: 9px 5px;
}
.contact-form textarea { resize: vertical; min-height: 250px; margin-bottom: 9px; display: block; }
.contact-form ::placeholder { color: var(--cyan); opacity: 1; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--cyan); }
.contact-form [aria-invalid="true"] { border-color: #ff4d4d; }
.hp { position: absolute; left: -9999px; }
.form-status { min-height: 1.4em; margin: 12px 0 0; text-align: center; font-weight: 400; }
.form-status.ok { color: #7fe3a1; }
.form-status.err { color: #ff8f8f; }

.contact-info {
  max-width: 664px; margin: 50px auto 0;
  display: flex; align-items: center; justify-content: center; gap: 36px;
  font-weight: 400; font-size: 16px; line-height: 2;
}
.contact-info img { width: 150px; }
.contact-info p { margin: 0; text-align: center; padding-left: 36px; border-left: 2px solid #1b8cc0; }

/* Footer */
.site-footer { background: #000; color: var(--cyan); text-align: center; padding: 26px 20px; font-size: 14px; font-weight: 400; }
.site-footer p { text-align: center; margin: 0; }
.link-btn { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; text-decoration: underline; padding: 0; }

/* Back to top */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 40;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--cyan); color: #fff;
  display: grid; place-items: center;
}

/* Cookie banner */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
  max-width: 680px; margin: 0 auto;
  background: #111; color: #fff; padding: 16px 20px;
  display: flex; gap: 16px; align-items: center;
  box-shadow: 0 4px 20px rgba(0,0,0,.35);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; text-align: left; font-size: 14px; font-weight: 400; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-actions .btn { padding: 9px 18px; font-size: 14px; }

/* Responsive */
@media (max-width: 1000px) {
  .main-nav a { padding: 0 16px; }
  .brand { padding: 0 24px 0 16px; }
}
@media (max-width: 800px) {
  :root { --header-h: 60px; }
  body { font-size: 15px; }
  .brand img { width: 130px; }
  .menu-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    margin-left: auto; width: 60px; background: none; border: 0; cursor: pointer; padding: 0 16px;
  }
  .menu-toggle span { display: block; height: 3px; background: #fff; border-radius: 2px; }
  .main-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; padding: 0;
    background: var(--cyan); display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { line-height: 52px; padding: 0 20px; border-top: 1px solid rgba(255,255,255,.3); }
  .dot-nav { display: none; }
  .hero { min-height: 0; }
  .hero-inner { padding: 50px 16px 50px; }
  .hero h1 { font-size: 28px; margin-bottom: 36px; }
  .hero h1 br { display: none; }
  .video { margin-top: 48px; }
  .section { padding: 70px 0 50px; }
  .container { padding: 0 16px; }
  .title-xl { font-size: 32px; }
  h3 { font-size: 23px; margin-top: 40px; }
  p, ul { text-align: left; }
  .lente-bg { padding: 70px 0 40px; }
  .framed-overlap { margin-top: 30px; }
  .press-item { flex-direction: column; margin-top: 30px; }
  .section-press { padding: 70px 0 50px; }
  .section-contact { padding: 50px 16px 40px; }
  .section-contact h2 { font-size: 26px; margin-bottom: 30px; }
  .contact-form .row { flex-direction: column; gap: 12px; }
  .contact-info { flex-direction: column; gap: 18px; text-align: center; }
  .contact-info p { border: 0; padding: 0; text-align: center; line-height: 1.6; }
  .cookie-banner { flex-direction: column; align-items: stretch; }
  .cookie-actions { justify-content: flex-end; }
  .to-top { right: 16px; bottom: 16px; }
}
