:root {
  color-scheme: dark;
  --bg: #070a10;
  --tint: #0a101b;
  --panel: #0d1523;
  --line: #202b3b;
  --line-bright: #32425a;
  --text: #f3f6fc;
  --muted: #a4afc1;
  --faint: #8290a7;
  --blue: #a9c5ff;
  --bright: #e6efff;
  --max: 1184px;
  --radius: 17px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  scroll-behavior: smooth;
  touch-action: manipulation;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
:read-write {
  -webkit-touch-callout: default;
  -webkit-user-select: text;
  user-select: text;
}
a[href], img { -webkit-user-drag: none; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--text); background: var(--bg); font-size: 1rem; line-height: 1.6; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
h1, h2, h3, h4 { line-height: 1.04; font-weight: 580; }
h1, h2 { letter-spacing: -.066em; }
section[id], footer[id] { scroll-margin-top: 24px; }
.shell { width: min(var(--max), calc(100% - 88px)); margin-inline: auto; }
.symbol-bank { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.26rem; height: 1.26rem; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: absolute; top: .8rem; left: .8rem; z-index: 20; transform: translateY(-170%); padding: .6rem 1rem; background: var(--bright); color: var(--bg); border-radius: .35rem; }
.skip:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--line); background: #080b12; position: relative; z-index: 5; }
.header-layout { height: 76px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.75rem; }
.brand { display: inline-flex; gap: .78rem; width: fit-content; align-items: center; white-space: nowrap; color: var(--text); font-weight: 650; font-size: .79rem; letter-spacing: .16em; }
.brand-mark { width: 1.83rem; height: 1.83rem; border: 1px solid var(--line-bright); border-radius: 6px; padding: 3px; }
.footer-bottom a:last-child { color: var(--muted); font-size: .91rem; transition: color .18s ease; }
.footer-bottom a:last-child:hover { color: var(--text); }
.button { display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; min-height: 48px; border-radius: 7px; padding: .68rem 1.16rem; font-size: .93rem; line-height: 1.2; font-weight: 620; white-space: nowrap; cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.button-primary {
  color: #f3f5ef; border-radius: 999px; border-color: #dce6db56 #cad8cc29 #151c20;
  background: radial-gradient(ellipse at var(--contact-x,28%) var(--contact-y,0%),#e9ffe024,transparent 65%),linear-gradient(145deg,#424b4de8,#242c30ed 64%);
  box-shadow: inset 0 1px 1px #fcfff732,inset 0 -2px 2px #11181c9c,0 4px 12px #0205084d;
  -webkit-backdrop-filter: blur(10px) saturate(130%); backdrop-filter: blur(10px) saturate(130%);
  scale: calc(1 - .038 * var(--glass-press,0));
}
.button-primary:hover,.button-primary[data-contact] { border-color: #e8f2d894; color: white; }
@media (prefers-reduced-motion: reduce) { .button-primary { scale: 1; } }
@media (prefers-reduced-transparency: reduce) { .button-primary { background: #30383b; -webkit-backdrop-filter: none; backdrop-filter: none; } }

.hero { min-height: 614px; display: grid; align-items: center; position: relative; isolation: isolate; overflow: clip; }
.hero-copy { z-index: 1; position: relative; padding-block: 4.7rem 5.3rem; max-width: 38rem; }
.eyebrow { font-weight: 640; letter-spacing: .15em; color: var(--blue); font-size: .76rem; line-height: 1.35; }
.eyebrow .rule { width: 1.52rem; height: 1px; background: #708dbd; display: inline-block; vertical-align: middle; margin-right: .55rem; }
.hero h1 { font-size: clamp(4.35rem, 7.8vw, 7.25rem); margin-block: 1.24rem 1.38rem; line-height: .96; }
.accent { color: var(--blue); }
.intro { max-width: 27rem; font-size: clamp(1.02rem, 1.6vw, 1.19rem); color: var(--muted); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .67rem 1rem; margin-top: 1.95rem; }
.hero-visual { position: absolute; z-index: -1; inset: 5% -5.8% 2% 28%; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: 64% 50%; }
.hero-visual::after { content: ""; position: absolute; inset: -1px; background:
  linear-gradient(90deg, var(--bg), #070a10d9 16%, #070a1040 39%, transparent 64%, #070a1066 100%),
  linear-gradient(0deg, var(--bg), #070a10b0 10%, transparent 38%, transparent 64%, #070a1055 83%, var(--bg)); }
.hero-visual figcaption { position: absolute; z-index: 1; right: 9%; bottom: 5%; color: var(--faint); font-size: .78rem; letter-spacing: .025em; }

.capabilities { border-block: 1px solid var(--line); background: #090e17; }
.capability-grid { display: grid; grid-template-columns: repeat(3, 1fr); min-height: 75px; }
.capability-grid span { display: flex; align-items: center; justify-content: center; gap: .8rem; font-size: .94rem; color: #dce5f3; padding-block: 1.1rem; padding-inline: .7rem; }
.capability-grid span + span { border-left: 1px solid var(--line); }
.capability-grid .icon { color: var(--blue); }

h2 { font-size: clamp(2.7rem, 6vw, 5.02rem); margin-top: .9rem; }
.map { position: relative; min-height: 394px; background: #0b172b; overflow: hidden; }
.map > svg { position: absolute; width: 100%; height: 100%; }
.map figcaption { font-size: .76rem; color: #c5d5ed; position: absolute; left: .86rem; bottom: .7rem; background: #0a1424ee; border: 1px solid #2e405b; border-radius: 5px; padding: .29rem .52rem; }
.wind-layer { opacity: 0; transition: opacity .25s ease; }
.map[data-layer="meteo"] .wind-layer { opacity: 1; }
.route-lines { transition: opacity .25s ease; }
.map[data-layer="meteo"] .route-lines { opacity: .43; }
.map[data-layer="posizione"] .route-lines { opacity: .58; }
.map[data-layer="posizione"] .boat-marker circle:first-child { opacity: .32; }

.footer-main { padding-block: 4.45rem; display: flex; justify-content: space-between; align-items: end; gap: 2rem; }
.footer-main h2 { font-size: clamp(2.35rem, 5vw, 3.55rem); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; border-top: 1px solid var(--line); padding-block: 1.43rem; color: var(--faint); font-size: .83rem; }
.footer-bottom .brand { font-size: .72rem; }
.footer-bottom .brand-mark { width: 1.53rem; height: 1.53rem; }

@media (max-width: 1080px) {
  .shell { width: calc(100% - 64px); }
  .hero { min-height: 548px; }
  .hero-visual { inset-inline: 25% -10%; }
}
@media (max-width: 780px) {
  .shell { width: calc(100% - 42px); }
  .header-layout { height: 64px; grid-template-columns: 1fr auto; gap: 1rem; }
  .hero { display: flex; flex-direction: column; align-items: stretch; min-height: 0; overflow: visible; }
  .hero-copy { padding-top: 3.6rem; padding-bottom: 0; }
  .hero h1 { font-size: clamp(3.65rem, 11vw, 5.65rem); margin-block: 1rem 1.2rem; }
  .hero-visual { position: relative; order: 2; z-index: 0; inset: auto; margin: .2rem -21px 0; height: clamp(250px, 58vw, 465px); }
  .hero-visual img { object-position: 52% 53%; }
  .hero-visual::after { background: linear-gradient(0deg, var(--bg), transparent 34%, transparent 62%, var(--bg)); }
  .hero-visual figcaption { right: 22px; bottom: .62rem; }
  .capability-grid span { font-size: .85rem; text-align: center; flex-direction: column; gap: .43rem; line-height: 1.26; }
  .capability-grid .icon { width: 1.07rem; height: 1.07rem; }
  .map { min-height: clamp(270px, 58vw, 390px); }
  .footer-main { flex-direction: column; align-items: flex-start; gap: 1.2rem; padding-block: 3.1rem; }
  .footer-bottom { font-size: .8rem; }
}
@media (max-width: 490px) {
  .hero-copy { padding-top: 2.9rem; }
  .actions { margin-top: 1.3rem; gap: .38rem .48rem; }
  .button { font-size: .87rem; padding-inline: .84rem; }
  .map > svg { width: 116%; left: -8%; }
}
@media (max-height: 510px) and (min-width: 570px) and (orientation: landscape) {
  .header-layout { height: 48px; }
  .hero { display: grid; min-height: 0; overflow: clip; }
  .hero-copy { max-width: 62%; padding-block: 1.25rem 1.55rem; }
  .hero h1 { font-size: clamp(2.6rem, 6vw, 3.8rem); margin-block: .6rem; }
  .intro { font-size: 1rem; line-height: 1.4; }
  .actions { margin-top: .8rem; }
  .hero-visual { position: absolute; z-index: -1; height: auto; margin: 0; inset: 0 -7% 0 34%; }
  .hero-visual img { object-position: 58% center; }
  .hero-visual::after { background: linear-gradient(90deg, var(--bg), #070a1099 20%, transparent 58%); }
  .hero-visual figcaption { right: 12%; bottom: .4rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
