/* Layout: colonna centrale ariosa, fasce a tutta larghezza alternate (bianco nebbia / acqua di lago), una sola foto grande nell'apertura */
:root {
  --mist: #f6f7fb;      /* fondo pagina, nebbia mattutina sul lago */
  --paper: #ffffff;
  --lake: #2a3f7e;      /* blu profondo, in armonia con il blu del logo */
  --lake-soft: #e2e8f8;
  --ink: #1d2335;       /* testo */
  --muted: #586078;
  --sun: #c7862a;       /* ocra caldo, unico accento */
  --line: #d8dded;
  --display: "Young Serif", Georgia, "Times New Roman", serif;
  --body: "Figtree", "Segoe UI", Helvetica, Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: var(--lake); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.2; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0; }
.eyebrow {
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sun); font-weight: 600;
}
.lead { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }

/* Header */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: rgba(246, 247, 251, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { display: flex; align-items: center; text-decoration: none; color: var(--ink); min-width: 0; }
.brand img { height: 50px; width: auto; }
.brand .wordmark { font-family: var(--display); font-size: 1.25rem; }
.brand.has-logo .wordmark { display: none; }
.nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--ink); font-size: .95rem; }
.nav a:hover { color: var(--lake); }
.nav .lang {
  border: 1px solid var(--lake); color: var(--lake); padding: 2px 10px; border-radius: 99px;
  font-size: .8rem; font-weight: 600; letter-spacing: .06em;
}
.menu-btn { display: none; }
@media (max-width: 860px) {
  .nav { display: none; }
  .menu-btn {
    display: inline-block; background: none; border: 1px solid var(--line); border-radius: 8px;
    padding: 6px 12px; font: inherit; color: var(--ink); cursor: pointer;
  }
  .top.open .nav {
    display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--mist); border-bottom: 1px solid var(--line);
    padding: 18px max(20px, env(safe-area-inset-left, 0px));
  }
}

/* Hero */
.hero { padding-block: clamp(40px, 7vw, 88px); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-text { display: grid; gap: 22px; min-width: 0; }
.hero h1 strong { font-weight: 400; color: var(--lake); }
.hero-photo { position: relative; justify-self: center; width: 100%; max-width: 420px; }
.hero-photo::before {
  content: ""; position: absolute; inset: 12% 0 0 0;
  background: var(--lake-soft); border-radius: 50% 50% 18px 18px;
}
.hero-photo img { position: relative; width: 100%; height: auto; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  padding: 12px 22px; border-radius: 99px; border: 1.5px solid var(--lake);
}
.btn.primary { background: var(--lake); color: var(--paper); }
.btn.primary:hover { background: #1e2f62; }
.btn.ghost { color: var(--lake); }
.btn.ghost:hover { background: var(--lake-soft); }
@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-photo { max-width: 300px; order: -1; }
}

/* Sezioni */
section { scroll-margin-top: 80px; }
.band { padding-block: clamp(56px, 8vw, 104px); }
.band.white { background: var(--paper); }
.band.lake { background: var(--lake); color: var(--paper); }
.band.lake .lead, .band.lake p { color: #d9e0f4; }
.band.lake h2, .band.lake h3 { color: var(--paper); }
.band.lake .eyebrow { color: #e9b45c; }
.head { display: grid; gap: 14px; margin-bottom: 44px; max-width: 760px; }

/* Principi */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 40px; }
.principles div { display: grid; gap: 10px; align-content: start; min-width: 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.25); }
@media (max-width: 900px) { .principles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .principles { grid-template-columns: 1fr; } }

/* Servizi */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service { display: grid; grid-template-rows: auto 1fr; background: var(--paper); border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.service .pic { aspect-ratio: 16 / 10; background: var(--lake-soft); max-width: 100%; }
.service .pic img { width: 100%; height: 100%; object-fit: cover; }
.service .txt { display: grid; gap: 10px; padding: 22px 24px 26px; align-content: start; }
.service p { color: var(--muted); font-size: 1rem; }
@media (max-width: 900px) { .services { grid-template-columns: 1fr; max-width: 560px; } }

/* Chi sono */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.about-photo { background: var(--lake-soft); border-radius: 14px; overflow: hidden; max-width: 100%; }
.about-text { display: grid; gap: 18px; min-width: 0; }
.creds { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.creds li { padding-left: 22px; position: relative; }
.creds li::before { content: ""; position: absolute; left: 0; top: .7em; width: 10px; height: 2px; background: var(--sun); }
.focus { display: flex; flex-wrap: wrap; gap: 8px; }
.focus span { background: var(--lake-soft); color: var(--lake); border-radius: 99px; padding: 4px 14px; font-size: .9rem; }
@media (max-width: 800px) { .about { grid-template-columns: 1fr; } .about-photo { max-width: 340px; } }

/* Percorso */
.quotes { display: grid; gap: 14px; margin: 8px 0 0; max-width: 680px; }
.quotes blockquote {
  margin: 0; font-family: var(--display); font-size: 1.2rem; line-height: 1.45;
  padding-left: 18px; border-left: 2px solid #e9b45c;
}
.outcomes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 44px; margin-top: 52px; }
.outcomes div { display: grid; gap: 10px; min-width: 0; align-content: start; }
@media (max-width: 760px) { .outcomes { grid-template-columns: 1fr; } }

/* Testimonianze */
.gallery { columns: 2 340px; column-gap: 24px; }
.gallery figure {
  display: block; break-inside: avoid; margin: 0 0 20px; background: var(--paper);
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
}

/* Contatti */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 28px; display: grid; gap: 16px; min-width: 0; }
.contact-card dl { margin: 0; display: grid; gap: 14px; }
.contact-card dt { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact-card dd { margin: 0; overflow-wrap: anywhere; }
.social { display: flex; gap: 16px; flex-wrap: wrap; }
@media (max-width: 800px) { .contact { grid-template-columns: 1fr; } }

/* Footer */
footer { background: var(--ink); color: #b9c0d4; font-size: .9rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 28px; }
footer a { color: #e6eaf6; }

/* Pagine legali */
.legal { padding-block: 56px 88px; }
.legal .wrap { max-width: 780px; display: grid; gap: 18px; }
.legal h2 { font-size: 1.5rem; margin-top: 18px; }
.legal .todo { background: #fff4dc; padding: 0 4px; border-radius: 3px; }

/* Segnaposto immagine (si vede solo finché la foto non è caricata) */
.ph { position: relative; }
.ph.noimg { min-height: 220px; display: grid; place-items: center; }
.ph.noimg img { display: none; }
.ph.noimg::after {
  content: attr(data-label); color: var(--lake); font-size: .85rem; text-align: center; padding: 12px;
  position: relative;
}
