/* ==========================================================================
   Blue Sky Milano — design system
   Identità ripresa dal sito originale: crema + blu notte + azzurro cielo + sabbia
   Font: Cormorant Garamond (titoli), Inter Tight (testo), Allura (logo)
   ========================================================================== */

:root {
  --bg: #f7f4ee;            /* crema */
  --bg-alt: #ece9e0;
  --card: #ffffff;
  --ink: #15212f;           /* testo, blu inchiostro */
  --ink-2: #354256;
  --text-muted: #6f6d66;
  --border: #e3ddd0;
  --accent: #2a6fa5;        /* azzurro cielo */
  --accent-dark: #154e7a;
  --gold: #c9a875;          /* sabbia calda */
  --gold-2: #d4b888;
  --navy: #0f2840;          /* blu notte */
  --navy-2: #081a2b;
  --radius: 6px;
  --shadow: 0 18px 40px -24px rgba(20, 40, 60, 0.35), 0 6px 16px -10px rgba(20, 40, 60, 0.15);
  --shadow-hover: 0 30px 60px -30px rgba(20, 40, 60, 0.45), 0 8px 20px -12px rgba(20, 40, 60, 0.2);
  --max-width: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 1.02rem;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.5rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--ink-2); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ---------- Header / Nav ---------- */

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.brand { display: flex; align-items: baseline; gap: 8px; color: var(--ink); line-height: 1; }
.brand:hover { text-decoration: none; }
.brand { align-items: center; gap: 10px; }
.brand img { height: 40px; width: auto; }
.brand-text { display: flex; flex-direction: column; gap: 3px; }
.brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2d64a8;
  line-height: 1;
}
.brand small {
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hero-mark { width: 140px; height: auto; margin: 0 auto 18px; opacity: 0.95; }
.footer-mark { width: 90px; height: auto; margin-bottom: 14px; opacity: 0.9; }

.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--ink);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nav-links a:hover { color: var(--accent); text-decoration: none; }
.nav-cta {
  border: 1px solid var(--ink);
  padding: 10px 20px;
  border-radius: 2px;
}
.nav-cta:hover { background: var(--ink); color: var(--bg) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--ink);
}

@media (max-width: 780px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    gap: 18px;
  }
}

/* ---------- Hero (blu notte) ---------- */

.hero {
  padding: 84px 24px 76px;
  text-align: center;
  color: #fff;
  background: linear-gradient(180deg, #122e48 0%, var(--navy) 55%, var(--navy-2) 100%);
  position: relative;
}
.hero-photo {
  background:
    linear-gradient(180deg, rgba(10, 25, 40, 0.55) 0%, rgba(10, 25, 40, 0.35) 40%, rgba(10, 25, 40, 0.8) 100%),
    url('images/terrazzo-panorama-01.jpg') center / cover no-repeat;
  padding: 130px 24px 120px;
}
.hero h1 { color: #fff; }
.hero .eyebrow {
  color: var(--gold-2);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 16px;
}
.hero p.lead {
  max-width: 640px;
  margin: 0 auto 32px;
  font-size: 1.12rem;
  color: rgba(232, 239, 247, 0.9);
}

.btn {
  display: inline-block;
  padding: 15px 32px;
  border-radius: 2px;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: linear-gradient(180deg, #dcc08a 0%, #b8924c 100%);
  color: var(--ink);
  box-shadow: 0 16px 36px -18px rgba(184, 146, 76, 0.8);
}
.btn-primary:hover { color: var(--ink); box-shadow: 0 20px 44px -16px rgba(184, 146, 76, 0.95); }
.btn-secondary { background: transparent; color: var(--accent-dark); border: 1px solid var(--accent-dark); }
.btn-secondary:hover { background: var(--accent-dark); color: #fff; }
.hero .btn-secondary, .dark .btn-secondary { color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.hero .btn-secondary:hover, .dark .btn-secondary:hover { background: #fff; color: var(--navy); }

.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Sections ---------- */

section { padding: 72px 24px; }
section.alt { background: var(--bg-alt); }
section.dark { background: var(--navy); color: #e8eff7; }
section.dark h2, section.dark > .container > .section-head h2 { color: #fff; }
section.dark > .container > p,
section.dark .section-head p,
section.dark .grid-2 > div > p { color: rgba(232, 239, 247, 0.85); }
section.dark .badge { background: transparent; color: var(--gold-2); border-color: rgba(212, 184, 136, 0.5); }

.section-head { text-align: center; max-width: 660px; margin: 0 auto 44px; }
.section-head p { color: var(--text-muted); }

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border-top: 2px solid var(--accent);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.card p { color: var(--ink-2); }
.card .icon { font-size: 1.8rem; margin-bottom: 12px; display: block; }

/* ---------- Feature list ---------- */

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.feature-list .check { color: var(--accent); font-weight: 700; flex-shrink: 0; }

/* ---------- Foto ---------- */

.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .photo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .photo-grid { grid-template-columns: 1fr; } }
.photo-tile {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.photo-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.photo-tile:hover img { transform: scale(1.04); }
.photo-placeholder {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: var(--bg-alt);
  border: 1px dashed var(--border);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--text-muted); gap: 8px; text-align: center; padding: 16px;
}

/* ---------- CTA band (blu notte) ---------- */

.cta-band {
  background:
    linear-gradient(180deg, rgba(15, 40, 64, 0.92), rgba(8, 26, 43, 0.96)),
    url('images/terrazzo-panorama-01.jpg') center / cover no-repeat;
  color: #fff;
  text-align: center;
  border-radius: var(--radius);
  padding: 60px 32px;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(232, 239, 247, 0.88); max-width: 560px; margin-left: auto; margin-right: auto; }

/* ---------- Form contatti ---------- */

.form-grid { display: grid; gap: 16px; max-width: 560px; }
label {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: block;
  margin-bottom: 6px;
}
input, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--card);
  color: var(--ink);
}
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(42, 111, 165, 0.15); }
textarea { min-height: 130px; resize: vertical; }
.form-grid .btn-primary { justify-self: start; }
.form-grid .btn-primary[disabled] { opacity: 0.6; cursor: wait; }
.form-error { color: #9b2c2c; background: #fdecec; border: 1px solid #f3c2c2; padding: 12px 14px; border-radius: 2px; margin: 0; }

.contact-info { display: grid; gap: 16px; }
.contact-info .item { display: flex; gap: 12px; align-items: flex-start; }
.contact-info .item .ic { font-size: 1.3rem; }

.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); }
.map-embed iframe { width: 100%; height: 340px; border: 0; display: block; }

/* ---------- Footer (blu notte) ---------- */

.site-footer { background: var(--navy-2); color: #c9d3de; padding: 56px 24px 24px; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 28px;
  max-width: var(--max-width);
  margin: 0 auto 24px;
}
.footer-grid h4 { color: var(--gold-2); margin-bottom: 14px; font-size: 1.2rem; }
.footer-grid p { color: #9fb0c2 !important; }
.footer-grid a { color: #c9d3de; display: block; margin-bottom: 8px; font-size: 0.95rem; }
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
  color: #8a9bb0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Cookie banner ---------- */

.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--navy);
  color: #e8eff7;
  padding: 18px 24px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  z-index: 200;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
}
.cookie-banner.show { display: flex; }
.cookie-banner p { margin: 0; font-size: 0.92rem; max-width: 640px; color: #e8eff7; }
.cookie-banner a { color: var(--gold-2); }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions button {
  padding: 10px 18px;
  border-radius: 2px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: inherit;
}
.cookie-accept { background: var(--gold); color: var(--ink); }
.cookie-reject { background: transparent; color: #e8eff7; border: 1px solid rgba(255, 255, 255, 0.35) !important; }

/* ---------- Breadcrumb ---------- */

.breadcrumb {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.breadcrumb a { color: var(--text-muted); }

/* ---------- Pagine legali ---------- */

.legal-content { max-width: 760px; margin: 0 auto; padding: 48px 24px 80px; }
.legal-content h2 { margin-top: 2em; }

/* ---------- Utility ---------- */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.badge {
  display: inline-block;
  color: var(--accent);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
