/* ═══════════════════════════════════════════════
   PAI S.r.l.s. — Design System
   Palette: #231f20 / #fcfcfc / #fe6b6b
   Font: Cormorant Garamond + Jost
═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Jost:wght@300;400;500;600&display=swap');
/* Optima: sistema macOS/iOS. Jost come fallback su Windows/Android */

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--black);
  color: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── VARIABILI ── */
:root {
  --black:      #1a1617;
  --white:      #fcfcfc;
  --coral:       #fe6b6b;
  --coral-light: #ff8b8b;
  --coral-dim:   rgba(254,107,107,0.12);
  --dark2:      #231f20;
  --dark3:      #2c2729;
  --dark4:      #363032;
  --muted:      #777;
  --border:     rgba(245,243,240,0.08);
  --border-coral: rgba(254,107,107,0.28);
  --nav-h:      80px;
  --font-sans:  'Optima', 'Optima Nova LT', 'Jost', 'Trebuchet MS', 'Gill Sans', sans-serif;
}

/* ── TIPOGRAFIA ── */
h1, h2, h3, h4, .serif { font-family: 'Cormorant Garamond', serif; }

h1 {
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.01em;
}
h3 {
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  font-weight: 400;
  line-height: 1.2;
}
h4 {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
p { color: var(--muted); font-size: 1.02rem; line-height: 1.85; }
strong { color: var(--white); font-weight: 700; }
a { color: inherit; text-decoration: none; }

/* ── UTILITÀ ── */
.container  { max-width: 1160px; margin: 0 auto; padding: 0 32px; }
.container--sm { max-width: 800px; margin: 0 auto; padding: 0 32px; }
.section    { padding: 120px 0; }
.section-sm { padding: 80px 0; }

.gold-line {
  display: inline-block;
  width: 48px; height: 1px;
  background: var(--coral);
  vertical-align: middle;
  margin-right: 14px;
}
.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--coral);
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}
.section-label {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 18px;
  display: block;
}
.divider-gold {
  width: 60px; height: 1px;
  background: var(--coral);
  margin: 32px 0;
}
.divider-gold--center { margin: 32px auto; }

.text-gold { color: var(--coral); }
.text-muted { color: var(--muted); }
.text-white { color: var(--white); }

/* ── REVEAL ANIMATION ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── BOTTONI ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.btn:hover::after { transform: scaleX(1); }

.btn-gold {
  background: var(--coral);
  color: var(--black);
}
.btn-gold:hover {
  background: var(--coral-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(254,107,107,0.28);
}
.btn-gold::after { display: none; }

.btn-outline {
  border: 1px solid var(--border-coral);
  color: var(--coral);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--coral);
  background: var(--coral-dim);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--white);
  background: transparent;
}
.btn-ghost:hover {
  border-color: rgba(245,243,240,0.3);
  background: rgba(245,243,240,0.04);
}

.btn-arrow::after { display: none; }
.btn-arrow .arrow {
  transition: transform 0.3s ease;
  font-size: 1rem;
}
.btn-arrow:hover .arrow { transform: translateX(6px); }

/* ── NAVBAR ── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
#navbar.scrolled {
  background: rgba(26,22,23,0.97);
  backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 40px rgba(0,0,0,0.5);
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img {
  height: 38px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(252,252,252,0.6);
  transition: color 0.25s;
  position: relative;
  padding-bottom: 2px;
  white-space: nowrap;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 1px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-phone {
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  color: var(--muted);
}
.nav-phone a { color: var(--muted); transition: color 0.2s; }
.nav-phone a:hover { color: var(--coral); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--white);
  transition: all 0.3s;
}

/* Mobile menu */
#mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(10,10,10,0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 32px;
  z-index: 999;
}
#mobile-nav.open { display: block; }
#mobile-nav ul { list-style: none; display: flex; flex-direction: column; gap: 22px; }
#mobile-nav a {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(245,243,240,0.7);
}
#mobile-nav a:hover { color: var(--coral); }

@media(max-width: 960px) {
  .nav-links, .nav-phone { display: none; }
  .hamburger { display: flex; }
}

/* ── FOOTER ── */
#footer {
  background: var(--dark2);
  border-top: 1px solid var(--border);
  padding: 80px 0 32px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
.foot-logo { margin-bottom: 20px; }
.foot-logo img { height: 32px; width: auto; }
.foot-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-style: italic;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.6;
}
.foot-info {
  font-size: 0.78rem;
  color: rgba(245,243,240,0.25);
  line-height: 1.9;
}
.foot-col h5 {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 20px;
}
.foot-col ul { list-style: none; }
.foot-col li { margin-bottom: 10px; }
.foot-col a {
  font-size: 0.85rem;
  color: rgba(245,243,240,0.5);
  transition: color 0.2s;
}
.foot-col a:hover { color: var(--coral); }
.foot-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: rgba(245,243,240,0.25);
  letter-spacing: 0.5px;
}
.foot-bottom a { color: rgba(245,243,240,0.4); }
.foot-bottom a:hover { color: var(--coral); }

@media(max-width: 900px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media(max-width: 540px) {
  .foot-grid { grid-template-columns: 1fr; }
  .foot-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ── HERO STANDARD ── */
.page-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.page-hero .container {
  position: relative;
  z-index: 3;
  width: 100%;
}
.page-hero-content {
  padding-top: calc(var(--nav-h) + 40px);
  padding-bottom: 100px;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--black) 0%, var(--dark2) 100%);
  z-index: 0;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: var(--border-coral);
}
/* .page-hero .container handled above */
.page-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.5rem, 6vw, 5.5rem);
  font-weight: 300;
  line-height: 1.05;
  margin-bottom: 20px;
  max-width: 900px;
}

/* ── NAV su sfondi chiari ── */
#navbar.nav--dark .nav-links a { color: var(--text-dark); opacity: 0.7; }
#navbar.nav--dark .nav-links a:hover,
#navbar.nav--dark .nav-links a.active { color: var(--text-dark); opacity: 1; }
#navbar.nav--dark .nav-links a::after { background: var(--text-dark); }
#navbar.nav--dark .nav-logo img { filter: invert(1) brightness(0); }
#navbar.nav--dark.scrolled { background: rgba(252,252,252,0.97); border-bottom-color: rgba(26,22,23,0.08); box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
#navbar.nav--dark .nav-cta .btn { border-color: var(--text-dark); color: var(--text-dark); }
#navbar.nav--dark .nav-cta .btn:hover { background: var(--text-dark); color: var(--white); }
.page-hero p {
  font-size: 1.05rem;
  max-width: 560px;
  color: var(--muted);
}
/* ── scroll-hint nelle pagine interne ── */
.page-scroll-hint {
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  z-index: 3;
  animation: float 2.5s ease-in-out infinite;
}
.page-scroll-hint span {
  font-size: 0.62rem; letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(252,252,252,0.35);
}
.page-scroll-hint .scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, transparent, var(--coral));
}
.page-hero--light .page-scroll-hint span { color: rgba(26,22,23,0.35); }
.page-hero--light .page-scroll-hint .scroll-line {
  background: linear-gradient(to bottom, transparent, var(--coral));
}

/* ── CARD SERVIZI ── */
.card-service {
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 40px 36px;
  transition: border-color 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
}
.card-service::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.card-service:hover { border-color: var(--border-coral); transform: translateY(-4px); }
.card-service:hover::before { transform: scaleX(1); }
.card-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  font-weight: 300;
  color: rgba(254,107,107,0.12);
  line-height: 1;
  margin-bottom: 20px;
}
.card-service h3 { margin-bottom: 12px; }
.card-service p { font-size: 0.9rem; }

/* ── GRIDS ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }

@media(max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media(max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ── NUMERO GRANDE DECORATIVO ── */
.big-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(6rem, 15vw, 14rem);
  font-weight: 300;
  color: rgba(254,107,107,0.06);
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

/* ── SEPARATORE ── */
hr.gold { border: none; border-top: 1px solid var(--border-coral); margin: 80px 0; }

/* ── TAG / BADGE ── */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--border-coral);
  color: var(--coral);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: var(--font-sans);
  border-radius: 2px;
}

/* ── DISCLAIMER BOX ── */
.disclaimer {
  background: rgba(254,107,107,0.06);
  border: 1px solid var(--border-coral);
  border-radius: 2px;
  padding: 28px 32px;
  margin: 40px 0;
}
.disclaimer p {
  font-size: 0.88rem;
  color: rgba(245,243,240,0.6);
  line-height: 1.8;
}
.disclaimer strong { color: var(--coral); }

/* ── FORM ── */
.form-group { margin-bottom: 24px; }
.form-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.form-input, .form-textarea, .form-select {
  width: 100%;
  background: var(--dark3);
  border: 1px solid var(--border);
  color: var(--white);
  padding: 14px 18px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.25s;
  border-radius: 2px;
  -webkit-appearance: none;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--coral);
}
.form-input::placeholder, .form-textarea::placeholder {
  color: rgba(245,243,240,0.2);
}
.form-textarea { min-height: 140px; resize: vertical; }
.form-select option { background: var(--dark3); color: var(--white); }

/* ── NOTIFICATION ── */
.notify {
  padding: 14px 20px;
  border-radius: 2px;
  font-size: 0.85rem;
  margin-top: 16px;
  display: none;
}
.notify.success { background: rgba(42,157,92,0.15); border: 1px solid rgba(42,157,92,0.3); color: #5ae07a; }
.notify.error   { background: rgba(204,48,48,0.1); border: 1px solid rgba(204,48,48,0.3); color: #f07070; }
.notify.show    { display: block; }

/* ── RESPONSIVE UTILS ── */
@media(max-width: 768px) {
  .section { padding: 80px 0; }
  .section-sm { padding: 56px 0; }
  h1 { font-size: clamp(2.4rem, 9vw, 4rem); }
  h2 { font-size: clamp(1.8rem, 6vw, 2.8rem); }
}
@media(max-width: 480px) {
  .container { padding: 0 20px; }
}

/* ══════════════════════════════════════════
   UTILITY: SEZIONI CHIARE
   ══════════════════════════════════════════ */
:root {
  --cream:          #f6f3f0;
  --text-dark:      #1a1617;
  --text-dark-p:    #5a5558;
  --text-dark-muted:#888;
}

/* Sfondi chiari */
.bg-white { background: var(--white) !important; }
.bg-cream  { background: var(--cream) !important; }
.bg-coral  { background: var(--coral) !important; }
.bg-coral-dim { background: rgba(254,107,107,0.07) !important; }

/* Testo scuro — da applicare sulle sezioni bianche/crema */
.text-on-light h1,
.text-on-light h2,
.text-on-light h3,
.text-on-light h4          { color: var(--text-dark); }
.text-on-light p           { color: var(--text-dark-p); }
.text-on-light strong      { color: var(--text-dark); }
.text-on-light em          { color: var(--coral); }
.text-on-light blockquote  { color: var(--text-dark); }
.text-on-light .section-label  { color: var(--coral); }
.text-on-light .eyebrow        { color: var(--coral); }
.text-on-light .gold-line      { background: var(--coral); }
.text-on-light .divider-gold   { background: var(--coral); }
.text-on-light cite            { color: var(--coral); }

/* Testo scuro — su sfondo corallo pieno */
.text-on-coral h1,
.text-on-coral h2,
.text-on-coral h3,
.text-on-coral h4   { color: var(--text-dark); }
.text-on-coral p    { color: rgba(26,22,23,0.72); }
.text-on-coral strong { color: var(--text-dark); }
.text-on-coral .section-label { color: rgba(26,22,23,0.6); }
.text-on-coral .divider-gold  { background: rgba(26,22,23,0.3); }

/* Bottone scuro — per sfondo bianco/crema */
.btn-dark {
  border: 1px solid rgba(26,22,23,0.22);
  color: var(--text-dark);
  background: transparent;
}
.btn-dark:hover {
  border-color: var(--text-dark);
  background: rgba(26,22,23,0.05);
}
/* Bottone outline su sfondo chiaro — rimane coral */
.btn-outline-dark {
  border: 1px solid var(--border-coral);
  color: var(--coral);
  background: transparent;
}
.btn-outline-dark:hover {
  background: rgba(254,107,107,0.08);
  border-color: var(--coral);
}

/* Card su sfondo chiaro */
.card-light {
  background: var(--white);
  border: 1px solid rgba(26,22,23,0.1);
  border-radius: 2px;
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.card-light::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.card-light:hover { border-color: rgba(254,107,107,0.3); box-shadow: 0 4px 24px rgba(0,0,0,0.06); }
.card-light:hover::before { transform: scaleX(1); }
.card-light h3, .card-light h4 { color: var(--text-dark); }
.card-light p   { color: var(--text-dark-p); }
.card-light .card-num { color: rgba(254,107,107,0.18); }

/* ── hero-deco globale ── */
.hero-deco {
  position: absolute;
  right: -18%; top: 50%;
  transform: translateY(-50%);
  width: clamp(650px, 82vw, 1150px);
  opacity: 0.07;
  pointer-events: none;
  z-index: 1;
  user-select: none;
}

/* ── PAGE-HERO VARIANTI ── */
.page-hero--coral::before {
  background: linear-gradient(150deg, var(--coral) 0%, #c84040 100%) !important;
}
.page-hero--coral h1 { color: var(--text-dark); }
.page-hero--coral p  { color: rgba(26,22,23,0.68); }
.page-hero--coral .eyebrow { color: rgba(26,22,23,0.6); }
.page-hero--coral .gold-line { background: rgba(26,22,23,0.35); }

.page-hero--light::before {
  background: linear-gradient(150deg, var(--white) 0%, var(--cream) 100%) !important;
}
.page-hero--light::after { background: rgba(26,22,23,0.1); }
.page-hero--light h1 { color: var(--text-dark); }
.page-hero--light p  { color: var(--text-dark-p); }
.page-hero--light .eyebrow { color: var(--coral); }
.page-hero--light .gold-line { background: var(--coral); }
