/* =========================================================
   GIEMME ENTERPRISE LIMITED — Landing page
   Palette: blu (navy) + oro  |  Foto + accenti grafici
   ========================================================= */

:root {
  /* Colori */
  --navy-900: #061227;
  --navy-800: #0a1f44;
  --navy-700: #102a55;
  --navy-600: #1b3b6f;
  --gold-500: #c9a24b;
  --gold-400: #d8b766;
  --gold-300: #e7d3a1;
  --ink: #1a2233;
  --muted: #5b6577;
  --paper: #ffffff;
  --paper-alt: #f5f7fb;
  --line: #e4e8f0;

  /* Tipografia */
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --container: 1140px;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(10, 31, 68, 0.12);
  --header-h: 92px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0; color: var(--navy-800); }

/* ===== Layout helpers ===== */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.narrow { max-width: 760px; }
.section { position: relative; padding: clamp(64px, 9vw, 120px) 0; }
.section-alt { background: var(--paper-alt); }
.section-dark { position: relative; background: var(--navy-900); color: #d8deea; overflow: hidden; }
.section-dark .container { position: relative; z-index: 2; }
.section-dark .section-title { color: #fff; }

.section-head { max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.section-eyebrow {
  font-family: var(--sans);
  font-size: .8rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold-500);
  margin: 0 0 14px;
}
.section-eyebrow.gold { color: var(--gold-400); }
.section-title { font-size: clamp(1.8rem, 3.6vw, 2.8rem); margin-bottom: 18px; }
.section-intro { color: var(--muted); font-size: 1.08rem; margin: 0; }
.section-dark .section-intro { color: #b7c2d6; }
.section p { color: var(--muted); }
.section-dark p { color: #c4cde0; }
.note {
  border-left: 3px solid var(--gold-500);
  padding-left: 16px;
  font-size: .95rem;
  font-style: italic;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .98rem;
  letter-spacing: .01em;
  padding: 14px 30px;
  border-radius: 50px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  cursor: pointer;
  border: 1.5px solid transparent;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: var(--navy-900);
  box-shadow: 0 12px 28px rgba(201, 162, 75, 0.35);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(201, 162, 75, 0.45); }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* ===== Header ===== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background .3s ease, box-shadow .3s ease;
}
.site-header.scrolled {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 24px rgba(10, 31, 68, 0.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.header-right { display: flex; align-items: center; gap: 14px; }

/* Selettore lingua (dropdown nativo, senza JS) */
.lang-switch { position: relative; }
.lang-switch summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 9px;
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover { background: rgba(255,255,255,.12); }
.lang-globe { font-size: .95rem; line-height: 1; }
.lang-caret { font-size: .7rem; opacity: .8; }
.scrolled .lang-switch summary { color: var(--navy-700); border-color: var(--line); }
.scrolled .lang-switch summary:hover { background: var(--paper-alt); }
.lang-switch ul {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 168px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 7px;
  z-index: 60;
}
.lang-switch[open] summary { border-color: var(--gold-500); }
.lang-switch li a {
  display: block;
  padding: 9px 14px;
  border-radius: 7px;
  color: var(--navy-700);
  font-size: .92rem;
  font-weight: 500;
}
.lang-switch li a:hover { background: var(--paper-alt); }
.lang-switch li a.active { color: var(--gold-500); font-weight: 700; }

/* Logo nell'header.
   Header scuro (hero): "targhetta" bianca rifinita per leggibilità.
   Header bianco (scrolled): logo diretto, senza riquadro.
   Il logo (.brand-logo) ha altezza fissa: non cambia tra i due stati. */
.brand { display: inline-flex; align-items: center; }
.brand-card {
  display: inline-flex;
  align-items: center;
  background: #fff;
  padding: 9px 20px;
  border-radius: 13px;
  border: 1px solid rgba(201, 162, 75, .4);
  box-shadow: 0 10px 26px rgba(6, 18, 39, .28);
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease, padding .3s ease;
}
.brand-logo { height: 52px; width: auto; display: block; }
.scrolled .brand-card {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  padding: 9px 0;
}

/* Nav */
.nav-menu { display: flex; align-items: center; gap: 8px; }
.nav-menu a {
  display: inline-block;
  padding: 9px 16px;
  font-size: .95rem;
  font-weight: 500;
  color: rgba(255,255,255,.9);
  border-radius: 8px;
  transition: color .2s ease, background .2s ease;
}
.nav-menu a:hover { color: #fff; background: rgba(255,255,255,.12); }
.scrolled .nav-menu a { color: var(--navy-700); }
.scrolled .nav-menu a:hover { background: var(--paper-alt); }
.nav-cta {
  background: var(--gold-500) !important;
  color: var(--navy-900) !important;
  margin-left: 8px;
}
.nav-cta:hover { background: var(--gold-400) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px; height: 44px;
  justify-content: center; align-items: center;
  background: none; border: none; cursor: pointer;
}
.nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s ease, opacity .3s ease, background .3s ease; }
.scrolled .nav-toggle span { background: var(--navy-800); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 0 80px;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(120deg, rgba(6,18,39,.92) 0%, rgba(10,31,68,.82) 45%, rgba(6,18,39,.78) 100%),
    radial-gradient(900px 500px at 75% 10%, rgba(201,162,75,.22), transparent 60%),
    url("../img/hero-port.jpg") center/cover no-repeat;
}
.hero-accent {
  position: absolute; z-index: -1;
  top: 8%; right: -4%;
  width: min(620px, 60vw); aspect-ratio: 1;
  background: url("../img/accent-network.svg") center/contain no-repeat;
  opacity: .5;
  pointer-events: none;
}
.hero-content { position: relative; max-width: 760px; }
.eyebrow {
  font-size: .82rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold-300);
  font-weight: 600;
  margin: 0 0 22px;
}
.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5rem);
  color: #fff;
  margin-bottom: 24px;
  text-shadow: 0 2px 30px rgba(0,0,0,.35);
}
.hero h1 .gold { color: var(--gold-400); }
.lead { font-size: clamp(1.05rem, 1.7vw, 1.25rem); color: #d5ddec; max-width: 620px; margin: 0 0 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero-meta { font-size: .85rem; letter-spacing: .08em; color: rgba(255,255,255,.6); margin: 0; }

/* ===== Chi siamo ===== */
.narrow p { font-size: 1.1rem; margin: 0 0 20px; }
.narrow .section-title { margin-bottom: 26px; }

/* ===== Cards (servizi) ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card-icon {
  display: grid; place-items: center;
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--navy-800);
  color: var(--gold-400);
  font-size: 1.4rem;
  margin-bottom: 18px;
}
.card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.card p { margin: 0; font-size: .96rem; }

/* ===== Fascia immagine (parallax) ===== */
.band {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  color: #fff;
  background: var(--navy-900) url("../img/ship-sea.jpg") center/cover no-repeat fixed;
  overflow: hidden;
}
.band-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(6,18,39,.86) 0%, rgba(10,31,68,.55) 70%, rgba(6,18,39,.4) 100%);
}
.band-content { position: relative; max-width: 680px; padding-block: 80px; }
.band-title {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 3rem);
  text-shadow: 0 2px 26px rgba(0,0,0,.4);
}

/* ===== Commodities (split) ===== */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.split-text p { font-size: 1.05rem; margin: 0 0 18px; }
.img-frame {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
}
.img-frame::after {
  content: "";
  position: absolute; inset: 0;
  border: 1px solid rgba(201,162,75,.5);
  border-radius: var(--radius);
  pointer-events: none;
}
.img-frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.checklist { margin: 6px 0 22px; }
.checklist li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  color: var(--ink);
  font-weight: 500;
}
.checklist li::before {
  content: "";
  position: absolute; left: 0; top: 7px;
  width: 15px; height: 8px;
  border-left: 2px solid var(--gold-500);
  border-bottom: 2px solid var(--gold-500);
  transform: rotate(-45deg);
}

/* ===== Conformità (dark + bg foto) ===== */
.section-dark-bg {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(160deg, rgba(10,31,68,.94), rgba(6,18,39,.97)),
    url("../img/skyline.jpg") center/cover no-repeat;
}
.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}
.pill-grid li {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(201,162,75,.4);
  color: #eef2f9;
  padding: 14px 26px;
  border-radius: 50px;
  font-size: .98rem;
  font-weight: 500;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.pill-grid li:hover { background: rgba(201,162,75,.16); border-color: var(--gold-400); transform: translateY(-2px); }

/* ===== Valori ===== */
.values {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 4px 40px;
  max-width: 900px;
  margin: 0 auto;
}
.values li {
  display: flex;
  align-items: baseline;
  gap: 18px;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy-800);
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.values li span {
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 600;
  color: var(--gold-500);
  letter-spacing: .1em;
  flex: none;
}

/* ===== Contatti ===== */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.contact-text p { font-size: 1.08rem; margin: 0 0 28px; }
.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold-500);
  border-radius: var(--radius);
  padding: 38px 36px;
  box-shadow: var(--shadow);
}
.contact-card h3 { font-size: 1.4rem; margin-bottom: 24px; }
.company-info { margin: 0; }
.company-info dt {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-500);
  font-weight: 600;
  margin-bottom: 4px;
}
.company-info dd { margin: 0 0 20px; color: var(--ink); font-weight: 500; }
.company-info dd a { color: var(--navy-600); border-bottom: 1px solid var(--gold-300); }
.company-info dd a:hover { color: var(--gold-500); }

/* ===== Footer ===== */
.site-footer { background: var(--navy-900); color: #aeb9cd; padding: 64px 0 28px; }
.footer-inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-brand { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.footer-logo-wrap { display: inline-block; background: #fff; padding: 12px 20px; border-radius: 12px; border: 1px solid rgba(201, 162, 75, .35); box-shadow: 0 10px 26px rgba(0, 0, 0, .25); }
.footer-logo { height: 58px; width: auto; display: block; }
.footer-addr { font-size: .9rem; margin: 0; }
.footer-legal h4 { color: var(--gold-300); font-family: var(--sans); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 12px; }
.footer-legal p { font-size: .85rem; line-height: 1.7; margin: 0; color: #9aa6bd; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; padding-top: 24px; font-size: .82rem; }
.footer-bottom p { margin: 0; }
.to-top { color: var(--gold-300); font-weight: 500; }
.to-top:hover { color: var(--gold-400); }
.footer-credits { padding-top: 14px; }
.footer-credits p { margin: 0; font-size: .72rem; color: #6b7790; line-height: 1.6; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.cards .card.reveal { transition-delay: calc(var(--i, 0) * 60ms); }

/* ===== RTL (arabo) ===== */
[dir="rtl"] .note { border-left: 0; border-right: 3px solid var(--gold-500); padding-left: 0; padding-right: 16px; }
[dir="rtl"] .checklist li { padding-left: 0; padding-right: 30px; }
[dir="rtl"] .checklist li::before { left: auto; right: 0; }
[dir="rtl"] .nav-cta { margin-left: 0 !important; margin-right: 8px !important; }
[dir="rtl"] .lang-switch ul { right: auto; left: 0; }
[dir="rtl"] .hero-accent { right: auto; left: -4%; }
[dir="rtl"] .hero-bg {
  background:
    linear-gradient(240deg, rgba(6,18,39,.92) 0%, rgba(10,31,68,.82) 45%, rgba(6,18,39,.78) 100%),
    radial-gradient(900px 500px at 25% 10%, rgba(201,162,75,.22), transparent 60%),
    url("../img/hero-port.jpg") center/cover no-repeat;
}
[dir="rtl"] .band-overlay {
  background: linear-gradient(270deg, rgba(6,18,39,.86) 0%, rgba(10,31,68,.55) 70%, rgba(6,18,39,.4) 100%);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .split, .contact { grid-template-columns: 1fr; gap: 36px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  /* parallax fixed non affidabile su mobile */
  .band { background-attachment: scroll; }
}

@media (max-width: 760px) {
  :root { --header-h: 80px; }
  .brand-logo { height: 42px; }
  .brand-card { padding: 7px 13px; }
  .scrolled .brand-card { padding: 7px 0; }
  .nav-toggle { display: flex; z-index: 110; }
  .nav-menu {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(80vw, 320px);
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(160deg, var(--navy-800), var(--navy-900));
    padding: 80px 28px 40px;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    box-shadow: -20px 0 60px rgba(0,0,0,.4);
  }
  .nav-menu.open { transform: translateX(0); }
  [dir="rtl"] .nav-menu { inset: 0 auto 0 0; transform: translateX(-100%); box-shadow: 20px 0 60px rgba(0,0,0,.4); }
  [dir="rtl"] .nav-menu.open { transform: translateX(0); }
  .nav-menu a { color: #eef2f9; font-size: 1.05rem; padding: 14px 18px; }
  .nav-menu a:hover { background: rgba(255,255,255,.1); }
  /* Fix menu mobile: con header "scrolled" la regola globale .scrolled .nav-menu a
     vinceva per specificità e rendeva i link navy (testo scuro su pannello scuro,
     invisibili dopo il primo tap). Nel pannello mobile restano sempre chiari. */
  .scrolled .nav-menu a { color: #eef2f9; }
  .scrolled .nav-menu a:hover { background: rgba(255,255,255,.1); }
  .nav-cta { text-align: center; margin: 10px 0 0; }
  body.nav-open { overflow: hidden; }

  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: #fff; }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: #fff; }

  .values li { font-size: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
