/* ==========================================================================
   CC Management — style.css
   ========================================================================== */

:root {
  --navy: #0c203b;
  --navy-2: #1a2740;
  --gold: #ac8639;
  --gold-light: #d5be90;
  --sand: #f6f5f3;
  --gray: #4f5664;
  --gray-2: #56585e;
  --white: #ffffff;

  --font-serif: "Merriweather", Georgia, serif;
  --font-lora: "Lora", Georgia, serif;
  --font-display: "Playfair Display", Georgia, serif;
  --font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-ui: "Inter", "Helvetica Neue", Arial, sans-serif;

  --container: 1240px;
  --gutter: 24px;
  --header-h: 124px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 300; }
p { margin: 0; }
figure { margin: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: var(--white); padding: 8px 16px; z-index: 1000;
}
.skip-link:focus { left: 8px; top: 8px; }

.text-gold { color: var(--gold-light); }

/* ---------- Eyebrows ---------- */
.eyebrow {
  font-family: var(--font-lora);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.eyebrow--light { color: var(--gold-light); }
.eyebrow--spaced { font-size: 16px; font-weight: 400; letter-spacing: 3px; margin-bottom: 8px; }

.eyebrow-italic {
  font-family: var(--font-lora);
  font-style: italic;
  font-size: 16px;
  color: var(--gold-light);
  margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  padding: 0 24px;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
  cursor: pointer;
}
.btn .arrow { transition: transform .25s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.btn--gold { background: var(--gold); color: var(--white); }
.btn--gold:hover { background: #967330; }

.btn--glass {
  background: rgba(255, 255, 255, .3);
  border-color: rgba(255, 255, 255, .8);
  color: var(--white);
  min-width: 173px;
}
.btn--glass:hover { background: rgba(255, 255, 255, .45); }

.btn--outline-light {
  background: rgba(255, 255, 255, .17);
  border-color: var(--white);
  color: var(--white);
}
.btn--outline-light:hover { background: rgba(255, 255, 255, .3); }

.btn--outline-dark { border-color: var(--navy); color: var(--navy); }
.btn--outline-dark:hover { background: var(--navy); color: var(--white); }

.text-link {
  font-family: var(--font-lora);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid rgba(12, 32, 59, .06);
  transition: box-shadow .3s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(12, 32, 59, .08); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  transition: height .3s ease;
}
.site-header.is-scrolled .header-inner { height: 88px; }

.brand img { width: 300px; height: auto; transition: width .3s ease; }
.site-header.is-scrolled .brand img { width: 240px; }

.site-nav { display: flex; align-items: center; gap: 36px; }

.nav-list { display: flex; gap: 36px; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  position: relative;
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 24px;
  color: var(--navy);
  text-decoration: none;
  padding: 4px 0;
  transition: color .2s ease;
}
.nav-list a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--gold-light);
  transform: scaleX(0); transition: transform .25s ease;
}
.nav-list a:hover,
.nav-list a.is-active { color: var(--gold-light); }
.nav-list a:hover::after,
.nav-list a.is-active::after { transform: scaleX(1); }

/* Language switch */
.lang-switch { position: relative; }
.lang-current {
  display: flex; align-items: center; gap: 8px;
  background: none; border: 0; padding: 6px 0; cursor: pointer; color: var(--navy);
  font-family: var(--font-display); font-size: 14px;
}
.lang-current img { width: 20px; height: 15px; }
.lang-code { display: none; }
.caret {
  width: 0; height: 0;
  border-left: 5px solid transparent; border-right: 5px solid transparent;
  border-top: 6px solid var(--navy);
  transition: transform .2s ease;
}
.lang-switch.is-open .caret { transform: rotate(180deg); }

.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  list-style: none; margin: 0; padding: 8px 0;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(12, 32, 59, .15);
  min-width: 190px;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.lang-switch.is-open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  font-family: var(--font-sans); font-size: 14px;
  color: var(--navy); text-decoration: none;
}
.lang-menu a:hover { background: var(--sand); }
.lang-menu img { width: 20px; height: 15px; }

.menu-toggle {
  display: none;
  background: none; border: 0; padding: 8px; color: var(--navy); cursor: pointer;
}
.menu-toggle svg { width: 28px; height: 28px; display: block; }
.menu-toggle .icon-close { display: none; }

/* ==========================================================================
   Home — hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 595px;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg,
.image-band__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero::after,
.image-band::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(10, 18, 30, .46);
}
.hero__inner { padding-top: 80px; padding-bottom: 80px; }
.hero__content { margin-left: 24.5%; max-width: 780px; }
.hero h1 {
  font-family: var(--font-lora);
  font-weight: 400;
  font-size: 48px;
  line-height: 1.3;
  margin-bottom: 18px;
}
.hero__lead { font-family: var(--font-display); font-size: 19px; line-height: 1.55; max-width: 720px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 24px 116px; margin-top: 56px; }
.btn-row .btn { min-width: 173px; }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: 96px 0; }
.section--white { background: var(--white); }
.section--sand { background: var(--sand); }
.section--navy { background: var(--navy); color: var(--white); }

.section-head { text-align: center; margin-bottom: 64px; }
.section-head h2 {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 36px;
  line-height: 1.3;
}

/* Service cards (home) */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px 80px;
  max-width: 1134px;
  margin: 0 auto;
}
.service-card {
  position: relative;
  border: 4px solid var(--navy);
  background: var(--white);
  padding: 40px 36px 34px;
  min-height: 287px;
  display: flex;
  flex-direction: column;
  transition: transform .35s ease, box-shadow .35s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(12, 32, 59, .12); }
.service-card__icon { width: 44px; height: 44px; object-fit: contain; margin-bottom: 26px; }
.service-card h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.3;
  margin-bottom: 14px;
}
.service-card p { font-size: 13.5px; line-height: 1.75; color: var(--gray); }
.service-card__line {
  display: block; width: 60px; height: 1px; background: var(--gold-light);
  margin-top: auto; padding-top: 0; transform: translateY(14px);
}

.link-right { max-width: 1134px; margin: 48px auto 0; text-align: right; }

/* Value cards (navy) */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  max-width: 1206px;
  margin: 0 auto;
}
.value-card {
  position: relative;
  padding: 40px 34px 46px;
  min-height: 329px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0));
  transition: border-color .3s ease, transform .35s ease;
}
.value-card::after {
  content: ""; position: absolute; inset: 10px;
  border: 1px solid rgba(213, 190, 144, .12);
  pointer-events: none;
}
.value-card:hover { border-color: rgba(213, 190, 144, .45); transform: translateY(-4px); }
.value-card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 34px; }
.value-card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid rgba(213, 190, 144, .5);
  color: var(--gold-light);
}
.value-card__icon svg { width: 18px; height: 18px; }
.value-card__num { font-family: var(--font-serif); font-weight: 300; font-size: 34px; color: var(--gold-light); }
.value-card h3 { font-family: var(--font-serif); font-weight: 400; font-size: 20px; margin-bottom: 18px; }
.value-card p { font-size: 14px; line-height: 1.75; color: rgba(255, 255, 255, .7); }

/* Image band (Argentario) */
.image-band {
  position: relative;
  min-height: 641px;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.image-band::after { background: rgba(12, 22, 36, .45); }
.image-band__inner { padding-top: 96px; padding-bottom: 96px; }
.image-band__content { margin-left: 24.5%; max-width: 780px; }
.image-band h2 {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 48px;
  line-height: 1.3;
  margin-bottom: 24px;
}
.image-band p {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 40px;
}

/* CTA band */
.cta-band { background: var(--sand); padding: 64px 0; }
.cta-band__inner { display: flex; align-items: center; gap: 32px 120px; flex-wrap: wrap; }
.cta-band h2 { font-family: var(--font-serif); font-weight: 300; font-size: 32px; line-height: 1.3; max-width: 640px; }

/* ==========================================================================
   Page hero (About / Contact)
   ========================================================================== */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 52px 0 56px;
}
.page-hero h1 {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 36px;
  line-height: 1.35;
}
.page-hero__lead { margin-top: 16px; max-width: 620px; font-size: 16px; color: rgba(255, 255, 255, .75); }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 500px) minmax(0, 442px);
  gap: 80px;
  align-items: start;
}
.about-text h2 {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 36px;
  line-height: 1.35;
  margin-bottom: 36px;
}
.about-text p {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.75;
  color: var(--navy);
  margin-bottom: 22px;
}
.about-text strong { font-weight: 700; }
.about-photo { margin-top: 140px; }
.about-photo img { width: 100%; aspect-ratio: 442 / 553; object-fit: cover; }

/* Services page */
.services-hero { background: var(--sand); padding: 72px 0 96px; }
.services-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 500px) minmax(0, 560px);
  justify-content: space-between;
  gap: 64px;
  align-items: center;
}
.services-hero h1 {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 36px;
  line-height: 1.35;
  margin-bottom: 28px;
}
.services-hero h1 em { font-style: italic; }
.services-hero__text > p:last-child { font-size: 15px; line-height: 1.7; color: var(--navy); }
.services-hero__media img { width: 100%; aspect-ratio: 560 / 373; object-fit: cover; }

.service-row { padding: 72px 0; }
.service-row__inner {
  display: grid;
  grid-template-columns: minmax(0, 520px) minmax(0, 480px);
  justify-content: space-between;
  gap: 64px;
  align-items: center;
}
.service-row--reverse .service-row__text { order: 2; }
.service-row--reverse .service-row__media { order: 1; }
.service-row--reverse .service-row__inner { grid-template-columns: minmax(0, 480px) minmax(0, 520px); }
.service-row__num { font-family: var(--font-serif); font-weight: 300; font-size: 26px; color: var(--gold); margin-bottom: 8px; }
.service-row h2 { font-family: var(--font-serif); font-weight: 300; font-size: 30px; line-height: 1.35; margin-bottom: 28px; }
.service-row__text > p { font-size: 15px; line-height: 1.7; margin-bottom: 22px; }
.service-row__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li {
  position: relative;
  padding-left: 30px;
  margin: 10px 0;
  font-size: 13.5px;
  color: var(--gray-2);
}
.checklist li::before {
  content: "";
  position: absolute; left: 8px; top: 4px;
  width: 15px; height: 13px;
  background: url("../img/check.png") center / contain no-repeat;
}

.note-band { background: var(--navy-2); color: var(--white); padding: 44px 0; text-align: center; }
.note-band p { font-family: var(--font-lora); font-style: italic; font-size: 18px; line-height: 1.6; max-width: 860px; margin: 0 auto; }

.consult { text-align: center; }
.consult__inner { max-width: 760px; }
.consult h2 { font-family: var(--font-serif); font-weight: 300; font-size: 36px; margin-bottom: 20px; }
.consult p:not(.eyebrow) { font-size: 16px; color: var(--gray); margin-bottom: 36px; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.contact-info h2 { font-family: var(--font-serif); font-weight: 300; font-size: 32px; margin-bottom: 28px; }
.contact-info dl { margin: 0; }
.contact-info dt { font-size: 13px; color: var(--gray); margin-top: 24px; }
.contact-info dt:first-child { margin-top: 0; }
.contact-info dd { margin: 4px 0 0; font-size: 16px; line-height: 1.8; }
.contact-info a { text-decoration: none; }
.contact-info a:hover { color: var(--gold); }
.contact-map iframe { display: block; width: 100%; height: 640px; border: 0; background: #e5e3df; }

/* Legal */
.legal { max-width: 860px; }
.legal h1 { font-family: var(--font-serif); font-weight: 300; font-size: 36px; margin-bottom: 32px; }
.legal h2 { font-family: var(--font-serif); font-weight: 400; font-size: 20px; margin: 36px 0 12px; }
.legal p, .legal li { font-size: 15px; line-height: 1.75; color: var(--gray); }
.legal p { margin-bottom: 14px; }
.legal ul { padding-left: 22px; margin: 0 0 14px; }
.legal a { color: var(--gold); }

.notfound { text-align: center; padding: 140px 0; }
.notfound h1 { font-family: var(--font-serif); font-size: 32px; margin-bottom: 32px; }
.notfound .btn { margin: 0 6px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--navy); color: var(--white); padding: 56px 0 72px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.footer-brand img { width: 170px; margin-bottom: 20px; }
.footer-brand p { font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, .6); max-width: 260px; }
.footer-col { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding-top: 16px; }
.footer-title { font-family: var(--font-sans); font-size: 16px; font-weight: 700; text-transform: uppercase; margin-bottom: 8px; }
.footer-col a { font-size: 14px; color: var(--white); text-decoration: none; }
.footer-col a:hover { color: var(--gold-light); }
.social { display: flex; gap: 18px; }
.social svg { width: 20px; height: 20px; display: block; }
.copyright { text-align: center; font-size: 14px; margin-top: 110px; padding: 0 var(--gutter); }

/* WhatsApp */
.whatsapp {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #1f8f53; color: var(--white);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
  transition: transform .25s ease;
}
.whatsapp:hover { transform: scale(1.06); }
.whatsapp svg { width: 30px; height: 30px; }

/* Cookie banner */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px 32px;
  background: var(--white);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, .1);
  font-size: 14px; color: #1d1e20;
}
.cookie-banner[hidden] { display: none; }
.cookie-actions { display: flex; gap: 16px; align-items: center; flex-shrink: 0; }
.cookie-actions button { font: inherit; cursor: pointer; padding: 10px 22px; border: 0; }
.cookie-accept { background: #1d1e20; color: var(--white); border-radius: 4px; }
.cookie-decline { background: none; text-decoration: underline; color: #1d1e20; }

/* Reveal animation */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .hero__content, .image-band__content { margin-left: 8%; }
  .btn-row { column-gap: 24px; }
}

@media (max-width: 920px) {
  :root { --header-h: 84px; }
  .brand img, .site-header.is-scrolled .brand img { width: 220px; }
  .site-header.is-scrolled .header-inner { height: 76px; }

  .menu-toggle { display: block; }
  /* Menu mobile trasparente, come sul sito originale */
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-end; gap: 22px;
    background: rgba(255, 255, 255, .72);
    padding: 28px var(--gutter) 32px;
    opacity: 0; visibility: hidden;
    transition: opacity .3s ease, visibility .3s;
  }
  .nav-open .site-nav { opacity: 1; visibility: visible; }
  .nav-open .menu-toggle .icon-open { display: none; }
  .nav-open .menu-toggle .icon-close { display: block; }
  .nav-list { flex-direction: column; align-items: flex-end; gap: 22px; text-align: right; }
  .nav-list a { display: inline-block; font-size: 22px; line-height: 1.4; padding: 2px 0; }
  .lang-current { padding: 4px 0; }
  .lang-current img { width: 30px; height: 22px; }
  .caret { border-left-width: 6px; border-right-width: 6px; border-top-width: 7px; margin-left: 10px; }

  .about-grid,
  .services-hero__inner,
  .service-row__inner,
  .service-row--reverse .service-row__inner,
  .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .service-row--reverse .service-row__text { order: 1; }
  .service-row--reverse .service-row__media { order: 2; }
  .about-photo { margin-top: 0; max-width: 480px; }

  .value-grid { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .section { padding: 64px 0; }
  .hero { min-height: 560px; }
  .hero__content, .image-band__content { margin-left: 0; }
  .hero h1 { font-size: 36px; }
  .hero__lead { font-size: 16px; }
  .btn-row { margin-top: 36px; gap: 14px; }
  .btn-row .btn { flex: 1 1 100%; }
  .section-head { margin-bottom: 40px; }
  .section-head h2, .about-text h2, .services-hero h1, .consult h2, .page-hero h1, .legal h1 { font-size: 28px; }
  .service-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .service-card { min-height: 0; padding: 32px 26px 30px; }
  .link-right { text-align: center; margin-top: 32px; }
  .image-band { min-height: 560px; }
  .image-band h2 { font-size: 32px; }
  .image-band p { font-size: 16px; }
  .cta-band h2 { font-size: 26px; }
  .cta-band .btn { width: 100%; }
  .service-row { padding: 48px 0; }
  .service-row h2 { font-size: 26px; }
  .services-hero { padding: 48px 0 64px; }
  .contact-map iframe { height: 380px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .footer-brand { display: flex; flex-direction: column; align-items: center; }
  .footer-brand p { max-width: none; }
  .footer-col { padding-top: 0; }
  .copyright { margin-top: 48px; }
  .cookie-banner { flex-direction: column; align-items: stretch; padding: 16px; gap: 12px; }
  .cookie-actions { justify-content: flex-end; }
  .whatsapp { right: 16px; bottom: 16px; width: 52px; height: 52px; }
}
