/* GL Marine Surveyors — stile comune per le pagine EN e IT */

:root {
  --navy: #0b2540;
  --navy-2: #12355a;
  --sea: #0f6d86;
  --brass: #c49a3c;
  --green: #2e8b57;
  --bg: #f5f7f9;
  --card: #ffffff;
  --text: #1b2733;
  --muted: #5a6b7b;
  --line: #dde4ea;
  --radius: 14px;
  --max: 1140px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: var(--sea); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h2 { font-family: var(--serif); font-size: clamp(1.7rem, 3.5vw, 2.4rem); color: var(--navy); }
h3 { font-size: 1.12rem; color: var(--navy); }
p { margin: 0 0 1em; }

.container { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.section { padding: 84px 0; }
.section--white { background: #fff; }
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 10px;
}
.lead { font-size: 1.12rem; color: var(--muted); max-width: 720px; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 37, 64, .97);
  backdrop-filter: blur(6px);
  color: #fff;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; letter-spacing: .02em; }
.brand svg { width: 36px; height: 36px; flex: none; }
.brand small { display: block; font-weight: 400; font-size: .72rem; opacity: .75; letter-spacing: .08em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: #e8eef4; text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--brass); }
.lang {
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: .82rem !important;
  font-weight: 600;
}
.menu-btn {
  display: none;
  background: none; border: 0; color: #fff; cursor: pointer;
  width: 44px; height: 44px; padding: 10px;
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  display: block; height: 2px; background: currentColor; position: relative; border-radius: 2px;
}
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; right: 0; }
.menu-btn span::before { top: -7px; }
.menu-btn span::after { top: 7px; }

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--navy); padding: 8px 16px 18px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; width: 100%; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav .lang { margin-top: 12px; width: auto; border-bottom: 1px solid rgba(255,255,255,.35); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(196,154,60,.25), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 55%, var(--sea) 100%);
  overflow: hidden;
}
.hero__inner { padding: 96px 0 150px; position: relative; z-index: 1; }
.hero h1 { font-family: var(--serif); font-size: clamp(2.1rem, 5.5vw, 3.6rem); font-weight: 700; max-width: 820px; }
.hero p { font-size: clamp(1.05rem, 2vw, 1.25rem); color: #d6e2ec; max-width: 660px; }
.hero__waves { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 120px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px;
  font-weight: 600; text-decoration: none; font-size: .98rem;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--brass { background: var(--brass); color: #1a1405; }
.btn--brass:hover { background: #d4ab4c; }
.btn--ghost { border: 1px solid rgba(255,255,255,.5); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.1); }
.btn--navy { background: var(--navy); color: #fff; }

.facts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin-top: 52px; max-width: 900px;
}
.fact { border-left: 2px solid var(--brass); padding-left: 14px; }
.fact strong { display: block; font-size: 1.5rem; font-family: var(--serif); }
.fact span { font-size: .88rem; color: #c3d3e0; }
@media (max-width: 700px) { .facts { grid-template-columns: repeat(2, 1fr); gap: 22px; } }

/* ---------- Services ---------- */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-top: 36px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: 0 10px 28px rgba(11,37,64,.08); transform: translateY(-2px); }
.card p { color: var(--muted); font-size: .96rem; margin: 0; }
.icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: #e7f1f5; color: var(--sea);
  margin-bottom: 14px;
}
.icon svg { width: 24px; height: 24px; }
.card--green .icon { background: #e5f4ec; color: var(--green); }
.card--green { border-color: #bfe0cd; }
.tag {
  display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--green); background: #e5f4ec; border-radius: 999px; padding: 2px 9px; margin-left: 6px; vertical-align: middle;
}

/* ---------- Highlights ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 14px 0 14px 36px; border-bottom: 1px solid var(--line); position: relative; }
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: ""; position: absolute; left: 4px; top: 20px;
  width: 16px; height: 9px;
  border-left: 3px solid var(--brass); border-bottom: 3px solid var(--brass);
  transform: rotate(-45deg);
}
.checklist strong { color: var(--navy); }

/* ---------- About ---------- */
.profile {
  background: var(--navy); color: #fff; border-radius: 20px; padding: 36px;
  position: relative; overflow: hidden;
}
.profile h3 { color: #fff; font-family: var(--serif); font-size: 1.6rem; margin-bottom: 4px; }
.profile .role { color: var(--brass); font-weight: 600; margin-bottom: 18px; }
.profile p { color: #d3dee8; }
.profile svg.compass { position: absolute; right: -40px; bottom: -40px; width: 200px; opacity: .08; }
.quote { font-family: var(--serif); font-size: 1.3rem; color: var(--navy); border-left: 3px solid var(--brass); padding-left: 18px; margin: 24px 0 0; }

/* ---------- Area ---------- */
.areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
@media (max-width: 860px) { .areas { grid-template-columns: 1fr; } }
.area { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; border-top: 4px solid var(--sea); }
.area--primary { border-top-color: var(--brass); }
.area p { color: var(--muted); margin: 0; font-size: .96rem; }

/* ---------- Contact ---------- */
.contact { background: linear-gradient(160deg, var(--navy), var(--navy-2)); color: #fff; }
.contact h2 { color: #fff; }
.contact .lead { color: #c9d7e3; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 36px; }
.contact-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius); padding: 22px; color: #fff; text-decoration: none; display: block;
}
a.contact-card:hover { background: rgba(255,255,255,.11); }
.contact-card span { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brass); margin-bottom: 6px; font-weight: 700; }
.contact-card strong { font-size: 1.08rem; font-weight: 600; word-break: break-word; }
.contact-card small { display: block; color: #b8c8d6; margin-top: 4px; }

/* ---------- Footer ---------- */
.footer { background: #071a2e; color: #9fb2c3; font-size: .88rem; padding: 36px 0; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
.footer a { color: #cfdbe6; text-decoration: none; }
.footer a:hover { color: var(--brass); }
.social { display: flex; gap: 14px; }
.social a { display: inline-flex; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); align-items: center; justify-content: center; }
.social svg { width: 16px; height: 16px; fill: currentColor; }

/* ---------- Aggiunte nuova versione ---------- */
.group-title { font-family: var(--serif); font-size: 1.35rem; color: var(--navy); margin: 44px 0 0; padding-bottom: 8px; border-bottom: 2px solid var(--brass); display: inline-block; }
.group-title + .grid { margin-top: 20px; }
.section--green { background: linear-gradient(180deg, #eef7f1 0%, #f5f7f9 100%); }
.eyebrow--green { color: var(--green); }
.kit { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 28px; }
.kit > div { background: #fff; border: 1px solid #bfe0cd; border-radius: var(--radius); padding: 18px 22px; }
.kit strong { display: block; color: var(--green); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; }
.kit span { color: var(--text); font-size: .96rem; }
@media (max-width: 760px) { .kit { grid-template-columns: 1fr; } }
.btn--green { background: var(--green); color: #fff; }
.btn--green:hover { background: #267a4b; }
.timeline { list-style: none; padding: 0; margin: 0 0 16px; }
.timeline li { padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.12); color: #d3dee8; font-size: .96rem; }
.timeline b { display: inline-block; min-width: 96px; color: var(--brass); }
.langs { font-size: .9rem; margin: 0; }
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.06); }

/* ---------- Logo, foto e galleria ---------- */
.header { background: rgba(255,255,255,.97); color: var(--navy); box-shadow: 0 1px 0 var(--line); }
.header__inner { height: 76px; }
.brand img { height: 62px; width: auto; }
.nav a { color: var(--navy); font-weight: 500; }
.nav a:hover { color: var(--sea); }
.lang { border-color: var(--line) !important; }
.menu-btn { color: var(--navy); }
html { scroll-padding-top: 84px; }
@media (max-width: 860px) {
  .brand img { height: 46px; }
  .nav { top: 76px; background: #fff; box-shadow: 0 8px 18px rgba(11,37,64,.12); }
  .nav a { border-bottom-color: var(--line); }
  .nav .lang { border-bottom: 1px solid var(--line); }
}
.hero--photo { background-size: cover; background-position: center 40%; background-repeat: no-repeat; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 12px; margin-top: 32px; }
.gallery figure { margin: 0; position: relative; border-radius: 12px; overflow: hidden; background: var(--line); }
.gallery .g-wide { grid-column: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 10px; font-size: .85rem; color: #fff; background: linear-gradient(transparent, rgba(7,26,46,.85)); }
@media (max-width: 860px) { .gallery { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; grid-auto-rows: 240px; } .gallery .g-wide { grid-column: auto; } }
.banner { margin: 28px 0 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 21 / 7; }
.banner img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 600px) { .banner { aspect-ratio: 16 / 9; } }
.video { display: grid; grid-template-columns: 1fr 1.6fr; gap: 32px; align-items: center; margin-top: 48px; background: var(--bg); border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.video__text p { color: var(--muted); }
.video__frame { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 860px) { .video { grid-template-columns: 1fr; padding: 20px; } }
.yt { position: absolute; inset: 0; display: block; }
.yt img { width: 100%; height: 100%; object-fit: cover; }
.yt__play { position: absolute; left: 50%; top: 50%; width: 72px; height: 50px; margin: -25px 0 0 -36px; border-radius: 14px; background: #e00; box-shadow: 0 4px 14px rgba(0,0,0,.35); transition: transform .15s ease; }
.yt__play::after { content: ""; position: absolute; left: 29px; top: 15px; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }
.yt:hover .yt__play { transform: scale(1.08); }

/* Foto: ritratto e galleria droni */
.profile .portrait { position: relative; display: block; width: 132px; height: 132px; object-fit: cover; object-position: center 20%; border-radius: 50%; border: 3px solid var(--brass); margin-bottom: 18px; }
.gallery--drone { margin-top: 28px; }

/* Ultime notizie: feed Facebook */
.news { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
.news__feed { display: flex; justify-content: center; }
.news__feed iframe { width: 100%; max-width: 500px; height: 620px; border: 0; border-radius: 12px; background: #fff; box-shadow: 0 6px 24px rgba(11,37,64,.08); }
@media (max-width: 860px) { .news { grid-template-columns: 1fr; } .news__feed iframe { height: 560px; } }
