/* ============================================================
   IOTTI & CORRADINI GIOIELLI — Foglio di stile condiviso
   Palette: Navy #152B4E · Oro #C8A96E · Bianco
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Raleway:wght@300;400;500;600&display=swap');

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:    #152B4E;   /* brand navy principale */
  --navy-dk: #0D1E38;   /* navy scuro hero/footer */
  --navy-md: #1B3565;   /* navy medio hover/card */
  --cream:   #F4F7FC;   /* body background */
  --dark:    #152B4E;   /* alias navy per sezioni scure */
  --charcoal:#3E4A5C;   /* testo corpo */
  --gold:    #C8A96E;   /* oro accent */
  --gold-dk: #A8843D;   /* oro scuro hover */
  --light:   #DDE4EF;   /* bordi/separatori */
  --white:   #FFFFFF;
  --ff-serif: 'Cormorant Garamond', Georgia, serif;
  --ff-sans:  'Raleway', sans-serif;
  --transition: .35s ease;
  --shadow: 0 4px 24px rgba(13,30,56,.12);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--ff-sans);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: min(1140px, 92%); margin: 0 auto; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--ff-serif);
  font-weight: 400;
  line-height: 1.25;
  color: var(--navy);
}
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }

.gold-text   { color: var(--gold); }
.italic      { font-style: italic; }
.section-tag {
  display: inline-block;
  font-family: var(--ff-sans);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .85rem;
}
.divider {
  width: 52px; height: 1px;
  background: var(--gold);
  margin: 1.1rem 0 1.6rem;
}
.divider.center { margin: 1.1rem auto 1.6rem; }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: .85rem 2.2rem;
  font-family: var(--ff-sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.btn:hover, .btn:focus { background: var(--gold); color: var(--white); }
.btn-solid { background: var(--gold); color: var(--white); }
.btn-solid:hover, .btn-solid:focus { background: var(--gold-dk); border-color: var(--gold-dk); }
.btn-dark { border-color: var(--navy); color: var(--navy); }
.btn-dark:hover { background: var(--navy); color: var(--white); }

/* ============================================================
   NAVBAR — sempre scura (navy) su tutti gli schermi
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.1rem 0;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}
.navbar.scrolled {
  background: rgba(13, 30, 56, .97);
  box-shadow: 0 2px 22px rgba(0,0,0,.22);
  padding: .7rem 0;
  backdrop-filter: blur(8px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo nel navbar */
.nav-logo { display: flex; align-items: center; }
.nav-logo .logo-img {
  height: 52px;
  width: auto;
  transition: opacity var(--transition);
}
.nav-logo:hover .logo-img { opacity: .85; }

.nav-links {
  display: flex;
  gap: 2.4rem;
  align-items: center;
}
.nav-links a {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  position: relative;
  transition: color var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 26px; height: 2px;
  background: var(--white);
  transition: all var(--transition);
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile menu */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--navy-dk);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.mobile-nav.open { display: flex; opacity: 1; pointer-events: all; }
.mobile-nav a {
  font-family: var(--ff-serif);
  font-size: 2rem;
  color: var(--white);
  letter-spacing: .04em;
  transition: color var(--transition);
}
.mobile-nav a:hover { color: var(--gold); }
.mobile-nav-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  background: none; border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--white);
}

/* Logo nel mobile nav */
.mobile-nav .mobile-logo {
  height: 60px;
  width: auto;
  margin-bottom: 1rem;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(.38);
}
/* Overlay velo navy */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(13, 30, 56, .45);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  max-width: 760px;
}
.hero-content h1 { color: var(--white); margin-bottom: 1.2rem; }
.hero-content p {
  color: rgba(255,255,255,.82);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto 2.2rem;
  font-weight: 300;
}

/* Logo centrato nell'hero */
.hero-logo {
  height: 90px;
  width: auto;
  margin: 0 auto 2rem;
  display: block;
}

.hero-scroll {
  position: absolute;
  bottom: 2.2rem; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  color: rgba(255,255,255,.6);
  font-size: .65rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.hero-scroll::after {
  content: '';
  display: block;
  width: 1px; height: 42px;
  background: var(--gold);
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 5.5rem 0; }
.section-light { background: var(--white); }
.section-dark {
  background: var(--navy);
  color: rgba(255,255,255,.8);
}
.section-dark h2, .section-dark h3 { color: var(--white); }

.text-center { text-align: center; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .12s; }
.reveal-delay-2 { transition-delay: .24s; }
.reveal-delay-3 { transition-delay: .36s; }
.reveal-delay-4 { transition-delay: .48s; }

/* ============================================================
   CARDS GRID
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--light);
  transition: box-shadow var(--transition), transform var(--transition);
  overflow: hidden;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-5px); }
.card-img { width: 100%; height: 220px; object-fit: cover; }
.card-body { padding: 1.6rem; }
.card-body h3 { margin-bottom: .5rem; color: var(--navy); }
.card-body p { font-size: .92rem; color: var(--charcoal); }

/* ============================================================
   FEATURE / 2-COL
   ============================================================ */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.feature-grid.reverse { direction: rtl; }
.feature-grid.reverse > * { direction: ltr; }
.feature-img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.feature-text p { font-size: .97rem; margin-bottom: 1.2rem; }

/* ============================================================
   STATS ROW
   ============================================================ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  padding: 3.5rem 0;
  border-top: 1px solid rgba(200,169,110,.3);
  border-bottom: 1px solid rgba(200,169,110,.3);
  text-align: center;
}
.stat-num {
  font-family: var(--ff-serif);
  font-size: 2.8rem;
  color: var(--gold);
  display: block;
  line-height: 1;
  margin-bottom: .3rem;
}
.stat-label {
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--charcoal);
}

/* ============================================================
   GALLERY GRID
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}
.gallery-item { position: relative; overflow: hidden; cursor: pointer; }
.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(13,30,56,.55);
  display: flex;
  align-items: flex-end;
  padding: 1.2rem;
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span {
  font-family: var(--ff-serif);
  font-size: 1.1rem;
  color: var(--white);
  font-style: italic;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed; inset: 0;
  z-index: 2000;
  background: rgba(8,18,36,.95);
  align-items: center;
  justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 90vw; max-height: 88vh;
  object-fit: contain;
  box-shadow: 0 0 60px rgba(0,0,0,.5);
}
.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 1.8rem;
  font-size: 2rem; color: var(--white);
  cursor: pointer; background: none; border: none; line-height: 1;
}
.lightbox-close:hover { color: var(--gold); }

/* ============================================================
   BRANDS
   ============================================================ */
.brands-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  padding: 3rem 0;
}
.brand-badge {
  font-family: var(--ff-serif);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--navy);
  opacity: .55;
  transition: opacity var(--transition), color var(--transition);
  text-transform: uppercase;
}
.brand-badge:hover { opacity: 1; color: var(--gold); }

/* ============================================================
   SERVICES PAGE
   ============================================================ */
.service-icon { width: 56px; height: 56px; margin-bottom: 1.2rem; color: var(--gold); }
.services-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}
.service-block {
  padding: 2.2rem;
  border: 1px solid var(--light);
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--white);
}
.service-block:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 20px rgba(200,169,110,.12);
}
.service-block h3 { margin-bottom: .6rem; color: var(--navy); }
.service-block p { font-size: .93rem; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: start;
}
.contact-info-block { display: flex; flex-direction: column; gap: 2rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
}
.contact-icon svg { width: 18px; height: 18px; }
.contact-detail { font-size: .93rem; }
.contact-detail strong {
  display: block;
  font-family: var(--ff-serif);
  font-size: 1.05rem; font-weight: 500;
  margin-bottom: .2rem;
  color: var(--navy);
}
.contact-detail a:hover { color: var(--gold); }

.hours-table { width: 100%; border-collapse: collapse; font-size: .9rem; margin-top: .4rem; }
.hours-table td { padding: .28rem 0; }
.hours-table td:last-child { text-align: right; color: var(--charcoal); }
.hours-table .closed { color: #999; }

.map-wrap { margin-top: 3rem; }
.map-wrap iframe { width: 100%; height: 340px; border: none; display: block; }

.form-group { margin-bottom: 1.3rem; }
.form-group label {
  display: block;
  font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; font-weight: 600;
  margin-bottom: .5rem; color: var(--charcoal);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: .82rem 1rem;
  border: 1px solid var(--light);
  background: var(--white);
  font-family: var(--ff-sans); font-size: .93rem;
  color: var(--navy); outline: none;
  transition: border-color var(--transition);
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--gold); }
.form-group textarea { height: 130px; resize: vertical; }

/* ============================================================
   PAGE HERO (sottopagine)
   ============================================================ */
.page-hero {
  padding: 8rem 0 4rem;
  text-align: center;
  background: var(--navy-dk);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .18;
}
.page-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(13,30,56,.3);
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); }
.page-hero p { color: rgba(255,255,255,.7); max-width: 560px; margin: 1rem auto 0; }
.breadcrumb {
  font-size: .7rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gold); margin-bottom: .8rem;
}
.breadcrumb a { color: rgba(255,255,255,.5); }
.breadcrumb a:hover { color: var(--gold); }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--navy-dk);
  color: rgba(255,255,255,.6);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

/* Logo nel footer */
.footer-logo-wrap { margin-bottom: 1rem; }
.footer-logo-wrap .logo-img-footer {
  height: 64px;
  width: auto;
  opacity: .92;
}

.footer-tagline { font-size: .88rem; max-width: 300px; }
.footer-col h4 {
  font-family: var(--ff-sans);
  font-size: .68rem; letter-spacing: .15em;
  text-transform: uppercase; font-weight: 600;
  color: var(--gold); margin-bottom: 1.2rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: .55rem; }
.footer-col li a { font-size: .88rem; transition: color var(--transition); }
.footer-col li a:hover { color: var(--gold); }
.footer-bottom {
  padding: 1.4rem 0;
  font-size: .78rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
}
.footer-social { display: flex; gap: 1rem; margin-top: 1.2rem; }
.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), border-color var(--transition);
}
.footer-social a:hover { background: var(--gold); border-color: var(--gold); }
.footer-social svg { width: 15px; height: 15px; fill: rgba(255,255,255,.7); }
.footer-social a:hover svg { fill: var(--white); }

/* ============================================================
   WHATSAPP FLOATING BUTTON
   ============================================================ */
.whatsapp-btn {
  position: fixed;
  bottom: 2rem; right: 2rem;
  z-index: 900;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(37,211,102,.38);
  transition: transform var(--transition), box-shadow var(--transition);
  animation: waPulse 2.8s ease-in-out infinite;
}
.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37,211,102,.55);
  animation: none;
}
.whatsapp-btn svg { width: 30px; height: 30px; fill: #fff; }
@keyframes waPulse {
  0%, 100% { box-shadow: 0 4px 18px rgba(37,211,102,.38); }
  50%       { box-shadow: 0 4px 30px rgba(37,211,102,.65); }
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.testimonial-card {
  padding: 2rem;
  border-left: 3px solid var(--gold);
  background: var(--white);
}
.testimonial-text {
  font-family: var(--ff-serif);
  font-size: 1.1rem; font-style: italic;
  color: var(--navy); margin-bottom: 1rem; line-height: 1.55;
}
.testimonial-author {
  font-size: .78rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gold); font-weight: 600;
}
.stars { color: var(--gold); font-size: 1rem; margin-bottom: .6rem; }

/* ============================================================
   404 PAGE
   ============================================================ */
.page-404 {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 2rem;
}
.page-404-num {
  font-family: var(--ff-serif);
  font-size: clamp(6rem, 18vw, 12rem);
  line-height: 1; color: var(--gold); opacity: .3;
}
.page-404-content { position: relative; }
.page-404-content h2 { margin-bottom: 1rem; }
.page-404-content p { margin-bottom: 2rem; max-width: 400px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .feature-grid.reverse { direction: ltr; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.wide { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > *:first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-logo .logo-img { height: 42px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.tall { grid-row: span 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 3.5rem 0; }
}
