:root {
  --ink: #F2F6FA;
  --ink-soft: #A9B4C4;
  --paper: #0B111C;
  --paper-2: #131B29;
  --line: rgba(242,246,250,0.12);
  --signal: #4FC3F7;
  --signal-deep: #8FDAFB;
  --signal-tint: #16303F;
  --teal: #4FC3F7;
  --teal-tint: #16303F;
  --red: #FF5C5C;
  --red-deep: #FF9494;
  --red-tint: #3A1818;
  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}
.nav-cta, .btn-primary { color: #0B111C !important; }
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
}
img, svg { max-width: 100%; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 28px; }
a { color: inherit; }

nav.top { border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--paper); z-index: 10; }
nav.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; border-radius: 8px; background: #FFFFFF; display: flex; align-items: center; justify-content: center; flex-shrink: 0; padding: 3px; }
.brand-mark svg { width: 18px; height: 18px; }
.navlinks { display: flex; gap: 32px; font-size: 14px; font-weight: 500; }
.navlinks a { text-decoration: none; color: var(--ink-soft); }
.navlinks a:hover, .navlinks a.active { color: var(--ink); }
.nav-cta { background: var(--signal); color: #FFF7F3; padding: 10px 20px; border-radius: 999px; font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }

.menu-toggle-input { display: none; }
.menu-toggle-label { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.menu-toggle-label span { width: 22px; height: 2px; background: var(--ink); display: block; border-radius: 2px; }

.page-head { padding: 200px 0 48px; position: relative; overflow: hidden; min-height: 620px; display: flex; align-items: flex-end; }
.page-head::before {
  content: '';
  position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%);
  width: min(100%, 1400px);
  z-index: 0;
  background-image: var(--head-photo, none), linear-gradient(135deg, #1B4B6B 0%, #0F2A40 60%, #0B111C 100%);
  background-size: cover;
  background-position: center var(--head-pos, 40%);
  opacity: 0.45;
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 0%, black 70%, transparent 100%);
}
.page-head .wrap { position: relative; z-index: 1; width: 100%; }
.page-head .eyebrow { font-size: 13px; color: var(--signal-deep); font-weight: 600; margin: 0 0 8px; }
.page-head h1 { font-family: var(--font-head); font-size: 40px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 12px; }
.page-head p { font-size: 16px; color: var(--ink-soft); max-width: 60ch; margin: 0; }
.page-head .contacts span { white-space: nowrap; }
.contact-card a[href^="tel:"] { white-space: nowrap; }

.section { padding: 48px 0; }
.section.bordered { border-top: 1px solid var(--line); }

.hero { padding: 88px 0 72px; overflow: hidden; }
.hero.hero-photo {
  position: relative;
  padding: 130px 0 100px;
  overflow: hidden;
}
.hero.hero-photo::before {
  content: '';
  position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%);
  width: min(100%, 1400px);
  z-index: 0;
  background-image: var(--hero-photo);
  background-size: cover;
  background-position: center 85%;
  opacity: 0.55;
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 0%, black 55%, transparent 100%);
}
.hero.hero-photo::after {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(11,17,28,0.9) 0%, rgba(11,17,28,0.35) 45%, rgba(11,17,28,0) 75%);
}
.hero.hero-photo .wrap { position: relative; z-index: 3; }
.hero-center { text-align: center; max-width: 760px; margin: 0 auto; position: relative; z-index: 2; }
.hero-center h1, .hero-center .lead { text-shadow: 0 2px 20px rgba(0,0,0,0.85), 0 1px 4px rgba(0,0,0,0.9); }
.hero-center h1 { font-size: 60px; }
.hero.hero-photo .hero-center p.lead { margin-left: auto; margin-right: auto; max-width: 52ch; text-align: center; color: #F2F1EA; }
.hero-center .hero-ctas { justify-content: center; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero.hero-photo .wrap.hero-center { display: block; }
.hero h1 { font-family: var(--font-head); font-weight: 700; font-size: 56px; line-height: 1.02; letter-spacing: -0.02em; margin: 0 0 24px; }
.hero p.lead { font-size: 18px; color: var(--ink-soft); max-width: 42ch; margin: 0 0 32px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary { background-color: #4FC3F7; opacity: 1; color: #0B111C; padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; display: inline-block; border: none; cursor: pointer; }
.hero-ctas .btn-primary { position: relative; z-index: 5; box-shadow: 0 4px 16px rgba(0,0,0,0.3); }
.btn-ghost { border: 1.5px solid var(--line); padding: 13px 24px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; color: var(--ink); display: inline-block; }
.hero-visual { position: relative; aspect-ratio: 4/5; }
.hero-visual .plate { position: absolute; inset: 0; background: var(--ink); border-radius: 22px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-visual .plate svg { width: 62%; height: 62%; }
.hero-visual .chip { position: absolute; bottom: -18px; left: -18px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; box-shadow: 0 12px 30px rgba(16,24,43,0.14); }
.chip .num { font-family: var(--font-head); font-size: 26px; font-weight: 700; }
.chip .label { font-size: 12px; color: var(--ink-soft); }

h2.h-section { font-family: var(--font-head); font-size: 32px; font-weight: 600; margin: 0 0 8px; letter-spacing: -0.01em; }

.disc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 32px; }
.disc-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.disc-card { border: 1px solid var(--line); border-radius: 18px; padding: 28px; background: var(--paper-2); }
.disc-card .icon-plate { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.disc-card.teal .icon-plate { background: var(--teal-tint); }
.disc-card.signal .icon-plate { background: var(--signal-tint); }
.disc-card.red .icon-plate { background: var(--red-tint); }
.disc-card.teal svg { color: var(--teal); }
.disc-card.signal svg { color: var(--signal-deep); }
.disc-card.red svg { color: var(--red-deep); }
.disc-card .icon-plate svg { width: 22px; height: 22px; }
.disc-card h3 { font-family: var(--font-head); font-size: 19px; font-weight: 600; margin: 0 0 8px; }
.disc-card p { font-size: 14px; color: var(--ink-soft); margin: 0; }

.disc-card.photo-card {
  position: relative;
  padding: 0;
  border: none;
  aspect-ratio: 4/5;
  background-image: var(--card-photo);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.disc-card.photo-card .card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,17,28,0.92) 0%, rgba(11,17,28,0.35) 55%, rgba(11,17,28,0.05) 100%);
}
.disc-card.photo-card .card-text {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px;
}
.disc-card.photo-card h3 { color: #F7F9FC; margin: 0 0 6px; text-transform: uppercase; letter-spacing: 0.03em; }
.disc-card.photo-card p { color: rgba(247,249,252,0.85); margin: 0; }

/* BLOG */
.blog-list { display: flex; flex-direction: column; gap: 24px; margin-top: 32px; }
.blog-card { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--paper-2); }
.blog-head { padding: 28px 28px 0; }
.blog-head .eyebrow { font-size: 12px; color: var(--signal-deep); font-weight: 600; }
.blog-head h3 { font-family: var(--font-head); font-size: 24px; font-weight: 600; margin: 8px 0 1px; }
.blog-head .date { font-size: 13px; color: var(--ink-soft); margin: 0 0 16px; display: block; }
.photo-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.photo-strip .ph { aspect-ratio: 4/3; background: var(--ink); position: relative; overflow: hidden; }
.photo-strip .ph::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,78,31,0.35), transparent 60%); }
.photo-strip .ph svg { position: absolute; bottom: 14px; left: 14px; width: 22px; height: 22px; color: rgba(250,249,245,0.8); }
.photo-strip img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* DOCUMENTI */
.doc-list { display: flex; flex-direction: column; gap: 1px; margin-top: 32px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.doc-row { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; background: var(--paper-2); }
.doc-row .name { font-weight: 500; font-size: 15px; }
.doc-row .meta { font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; }
.doc-row a.dl { font-size: 13.5px; font-weight: 600; color: var(--signal-deep); text-decoration: none; white-space: nowrap; margin-left: 20px; }

/* TECNICI */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 32px; }
.team-card { border: 1px solid var(--line); border-radius: 16px; padding: 20px; background: var(--paper-2); }
.team-card .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); margin-bottom: 12px; }
.team-card h4 { font-family: var(--font-head); font-size: 16px; font-weight: 600; margin: 0 0 3px; }
.team-card .role { font-size: 13px; color: var(--signal-deep); font-weight: 600; margin-bottom: 4px; }
.team-card .grp { font-size: 13px; color: var(--ink-soft); margin: 0; }

/* CONTATTI */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; }
.flyer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-card { border: 1px solid var(--line); border-radius: 16px; padding: 24px; background: var(--paper-2); }
.contact-card svg { width: 22px; height: 22px; color: var(--ink-soft); margin-bottom: 14px; }
.contact-card h4 { font-family: var(--font-head); font-size: 16px; font-weight: 600; margin: 0 0 6px; }
.contact-card p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }
.contact-card a { color: var(--signal-deep); text-decoration: underline; text-underline-offset: 2px; }

.cta-band { border-top: 1px solid var(--line); padding: 72px 0; text-align: center; }
.cta-band h2 { font-family: var(--font-head); font-size: 34px; font-weight: 600; margin: 0 0 12px; letter-spacing: -0.01em; }
.cta-band p { color: var(--ink-soft); margin: 0 0 28px; }

footer { border-top: 1px solid var(--line); padding: 40px 0; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
footer .fmeta { font-size: 13px; color: var(--ink-soft); }

@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero h1 { font-size: 38px; }
  .hero-center h1 { font-size: 32px; }
  .disc-grid, .disc-grid.cols-3, .contact-grid, .flyer-grid { grid-template-columns: 1fr; }
  .disc-card.photo-card { aspect-ratio: 16/10; }
  .team-grid { grid-template-columns: 1fr; }
  .menu-toggle-label { display: flex; order: 2; }
  nav.top .wrap { flex-wrap: wrap; }
  .nav-cta { order: 3; }
  .navlinks {
    display: none;
    order: 4;
    width: 100%;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-top: 1px solid var(--line);
    margin-top: 12px;
  }
  .navlinks a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .menu-toggle-input:checked ~ .navlinks { display: flex; }
  .page-head { min-height: 320px; padding: 120px 0 32px; }
  .page-head .contacts span { display: block; }
  .page-head .contacts .sep { display: none; }
  .doc-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .doc-row a.dl { margin-left: 0; }
}
