:root {
  --navy: #1f3a5f;
  --navy-dark: #152a45;
  --accent: #c8963e;
  --ink: #1d2430;
  --muted: #5b6575;
  --bg: #ffffff;
  --bg-alt: #f4f6f9;
  --line: #e2e6ec;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(20, 35, 60, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); }
h1, h2, h3 { font-family: "Source Serif 4", Georgia, serif; line-height: 1.2; margin: 0 0 .6em; color: var(--navy-dark); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); color: #fff; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.2rem; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 600; color: var(--accent); margin: 0 0 .5em; }
.two-col { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }

/* Buttons */
.btn {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 600; padding: 14px 26px; border-radius: 999px; border: 0; cursor: pointer;
  font-size: 1rem; font-family: inherit; transition: transform .15s, background .15s;
}
.btn:hover { background: #b5832f; transform: translateY(-1px); }
.btn-ghost { background: transparent; border: 1.5px solid rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-small { padding: 9px 18px; font-size: .92rem; color: #fff !important; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 42px; height: 42px; border-radius: 10px; background: var(--navy); color: #fff;
  display: grid; place-items: center; font-family: "Source Serif 4", serif; font-weight: 700;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text small { color: var(--muted); font-size: .85rem; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: var(--accent); }
.lang-switch { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang-switch button { background: none; border: 0; padding: 6px 11px; cursor: pointer; font: 600 .8rem Inter, sans-serif; color: var(--muted); }
.lang-switch button.active { background: var(--navy); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* Hero */
.hero {
  background:
    linear-gradient(120deg, rgba(21,42,69,.94), rgba(31,58,95,.82)),
    url("img/hero.jpg") center/cover, var(--navy);
  color: #e8edf4; padding: 120px 0 110px;
}
.hero-inner { max-width: 820px; }
.hero .lead { font-size: 1.2rem; color: #cfd8e4; max-width: 640px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }

/* Studio facts */
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.facts li {
  background: var(--bg-alt); border-left: 4px solid var(--accent); padding: 18px 22px;
  border-radius: 0 var(--radius) var(--radius) 0; display: flex; flex-direction: column;
}
.facts span { color: var(--muted); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; margin-top: 28px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); transition: transform .2s;
}
.card:hover { transform: translateY(-3px); }
.card p { color: var(--muted); margin: 0; font-size: .96rem; }
.icon { font-size: 1.7rem; margin-bottom: 10px; }

/* Area */
.prov { margin: 18px 0 0; font-weight: 600; font-size: .9rem; color: var(--navy); }
.tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 18px; }
.tags li { background: var(--bg-alt); border: 1px solid var(--line); padding: 5px 13px; border-radius: 999px; font-size: .9rem; }
.address { margin-bottom: 8px; }
.link { font-weight: 600; text-decoration: none; }
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3.4; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 28px; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); cursor: zoom-in; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .35s; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { padding: 12px 16px; font-size: .92rem; color: var(--muted); }
.gallery figure.placeholder { cursor: default; }
.gallery figure.placeholder img { display: none; }
.gallery figure.placeholder::before {
  content: "📷  Inserisci la foto in img/"; display: grid; place-items: center; aspect-ratio: 4/3;
  background: repeating-linear-gradient(45deg, #e9edf2, #e9edf2 12px, #f2f4f7 12px, #f2f4f7 24px);
  color: var(--muted); font-size: .9rem;
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; background: rgba(10,18,30,.92); z-index: 100;
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 80vh; border-radius: 8px; }
.lightbox p { color: #dfe5ee; margin-top: 14px; }
.lightbox-close { position: absolute; top: 14px; right: 22px; font-size: 2.4rem; color: #fff; background: none; border: 0; cursor: pointer; }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 12px; align-items: center; }
.contact-list a { text-decoration: none; font-weight: 500; word-break: break-all; }
.form { background: var(--bg-alt); padding: 30px; border-radius: var(--radius); border: 1px solid var(--line); display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: .9rem; font-weight: 500; }
.form input, .form select, .form textarea {
  font: inherit; padding: 11px 13px; border: 1px solid #cfd5de; border-radius: 9px; background: #fff; width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--muted); font-size: .85rem; }
.form .check input { width: auto; margin-top: 4px; }
.form .invalid { border-color: #c0392b; }
.form-status { margin: 0; font-size: .92rem; min-height: 1.2em; }
.form-status.ok { color: #1e7a46; }
.form-status.err { color: #c0392b; }

/* Footer */
.site-footer { background: var(--navy-dark); color: #b9c4d3; padding: 34px 0; font-size: .9rem; }
.site-footer strong { color: #fff; }
.site-footer a { color: #fff; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: flex-end; }

/* Responsive */
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; gap: 36px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column;
    align-items: flex-start; padding: 18px 16px 24px; gap: 16px; border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; }
}
@media (max-width: 560px) {
  .section { padding: 64px 0; }
  .hero { padding: 84px 0 76px; }
  .gallery { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .form { padding: 22px; }
}
