/* ============================================================
   SUCCESSIONI ON LINE LIGURIA — style.css
   Sistema di design condiviso tra tutte le pagine
   ============================================================ */

/* --- FONT IMPORTS --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Poppins:wght@400;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* --- VARIABILI GLOBALI --- */
:root {
  --navy:          #00008c;
  --navy-deep:     #000050;
  --navy-light:    #e8eaf6;
  --gold:          #C8A96E;
  --gold-light:    #f0e8d6;
  --text-dark:     #1a2035;
  --text-mid:      #4a5568;
  --text-light:    #718096;
  --bg:            #fafaf8;
  --bg-white:      #ffffff;
  --bg-section:    #f4f4f1;
  --border:        #e2e0d8;
  --green-wa:      #25D366;
  --blue-tg:       #24A1DE;
  --radius:        12px;
  --radius-lg:     20px;
  --shadow-sm:     0 2px 8px rgba(0,0,100,0.06);
  --shadow-md:     0 8px 28px rgba(0,0,100,0.10);
  --shadow-lg:     0 20px 48px rgba(0,0,100,0.14);
  --transition:    0.3s ease;
}

/* --- RESET BASE --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-dark);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: 'Poppins', sans-serif;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 1rem;
}

p { margin-bottom: 1.25rem; color: var(--text-mid); }
a { text-decoration: none; color: inherit; transition: color var(--transition); }
ul { list-style-position: inside; }
strong { color: var(--text-dark); font-weight: 600; }
em { font-style: italic; color: var(--navy); font-weight: 500; }
u { text-decoration-color: var(--gold); text-decoration-thickness: 2px; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; width: 100%;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  height: 72px;
}

.logo {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-accent {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--navy);
  border-bottom-color: var(--gold);
}

/* ============================================================
   HERO — versione standard (tutte le pagine)
   ============================================================ */
.hero {
  margin-top: 72px;
  position: relative;
  overflow: hidden;
  background: var(--navy-deep);
  color: var(--bg-white);
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  filter: saturate(0.6);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 7rem 5% 6rem;
  max-width: 860px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.4rem;
  padding: 6px 16px;
  border: 1px solid rgba(200,169,110,0.4);
  border-radius: 40px;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  color: var(--bg-white);
  margin-bottom: 1.2rem;
  line-height: 1.15;
}

.hero-subtitle {
  font-size: 1.1rem;
  font-weight: 300;
  color: rgba(255,255,255,0.75);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ============================================================
   SECTION LAYOUT
   ============================================================ */
.section {
  padding: 6rem 5%;
  max-width: 1240px;
  margin: 0 auto;
}

.section-white {
  background-color: var(--bg-white);
}

.section-alt {
  background-color: var(--bg-section);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* SECTION TITLE con firma doppia barra */
.section-title {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title h2 {
  font-size: clamp(1.6rem, 3vw, 4rem);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: var(--navy);
}

.section-title-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 10px;
}

.section-title-bar span:nth-child(1) {
  display: block;
  width: 40px;
  height: 4px;
  background: var(--navy);
  border-radius: 2px;
}

.section-title-bar span:nth-child(2) {
  display: block;
  width: 10px;
  height: 10px;
  background: var(--gold);
  border-radius: 50%;
}

.section-title-bar span:nth-child(3) {
  display: block;
  width: 40px;
  height: 4px;
  background: var(--navy);
  border-radius: 2px;
}

/* GRIDS */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* ============================================================
   CARD — generica
   ============================================================ */
.card {
  background: var(--bg-white);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--gold);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
}

.card h3 i { color: var(--gold); }

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline {
  position: relative;
  padding-left: 36px;
  margin-top: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0; height: 100%;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -42px; top: 7px;
  width: 14px; height: 14px;
  background: var(--gold);
  border-radius: 50%;
  border: 3px solid var(--bg-white);
  box-shadow: 0 0 0 2px var(--gold);
}

/* ============================================================
   PRICING CARDS
   ============================================================ */
.pricing-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  text-align: center;
  padding: 3rem 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), border-color var(--transition);
  position: relative;
}

.pricing-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}

.pricing-card.featured {
  border: 2px solid var(--navy);
  transform: scale(1.04);
  z-index: 1;
  box-shadow: var(--shadow-md);
}

.pricing-badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 30px;
}

.pricing-price {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--navy);
  margin: 1.5rem 0 0.25rem;
  line-height: 1;
}

.pricing-sub {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.pricing-card ul {
  text-align: left;
  margin-top: 1.5rem;
  list-style: none;
}

.pricing-card ul li {
  margin-bottom: 0.85rem;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.95rem;
  color: var(--text-mid);
}

.pricing-card ul li::before {
  content: '✓';
  position: absolute; left: 0;
  color: var(--gold);
  font-weight: bold;
}

/* INFO BOX */
.info-box {
  background: var(--gold-light);
  border-left: 4px solid var(--gold);
  padding: 2rem 2.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-top: 3rem;
}

.info-box h4 { color: var(--navy); margin-bottom: 0.75rem; font-size: 1rem; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--navy-deep);
  color: var(--bg-white);
  padding: 5rem 5% 2.5rem;
  text-align: center;
}

.footer-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--bg-white);
  letter-spacing: 0.04em;
}
.footer-logo {
  width: 450px;
  max-width: 100%;
  margin-bottom: 2rem;
}
.contact-grid {
  display: flex;
  justify-content: center;
  gap: 5rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.contact-icon {
  font-size: 2.5rem;
  color: var(--gold);
}

.contact-item h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--bg-white);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.contact-item p {
  margin: 0;
  color: rgba(255,255,255,0.65);
}

.copyright {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.03em;
}

/* ============================================================
   BLOCKQUOTE (Chi Siamo)
   ============================================================ */
.blockquote {
  background: var(--navy-light);
  border-left: 5px solid var(--gold);
  padding: 2.5rem 3rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 4rem 0;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--navy);
  font-size: 1.2rem;
  line-height: 1.8;
}

.blockquote .source {
  display: block;
  font-style: normal;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-mid);
  margin-top: 1.25rem;
  letter-spacing: 0.04em;
}

/* ============================================================
   ACTION CARDS (Chi Siamo — bottom)
   ============================================================ */
.action-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.action-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.action-card.highlight {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--bg-white);
}

.action-card.highlight h4 { color: var(--bg-white); }
.action-card.highlight p { color: rgba(255,255,255,0.75); }

.main-icon {
  font-size: 2.8rem;
  display: block;
  margin-bottom: 1.25rem;
  color: var(--gold);
}

.action-card.highlight .main-icon { color: var(--gold); }

.btn-download, .btn-review {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 12px 28px;
  border-radius: 40px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: all var(--transition);
}

.btn-download {
  background: var(--gold);
  color: var(--navy-deep);
}
.btn-download:hover { background: #b8935a; }

.btn-review {
  background: transparent;
  border: 2px solid var(--navy);
  color: var(--navy);
}
.btn-review:hover { background: var(--navy); color: white; }

/* ============================================================
   MAPPA
   ============================================================ */
.map-wrapper h3 {
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
  color: var(--navy);
}

.map-full-section {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

#custom-google-map {
  width: 100%;
  height: 420px;
}

/* ============================================================
   SERVIZI — Image rows
   ============================================================ */
.service-row {
  display: flex;
  align-items: center;
  gap: 5rem;
  margin-bottom: 6rem;
}

.service-row:last-child { margin-bottom: 0; }

.service-image {
  flex: 0 0 44%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.service-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 16/10;
}

.service-text h3 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

/* BOX CARDS (Servizi sezione 2) */
.box-card {
  background: var(--bg-white);
  padding: 3rem 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--gold);
  transition: transform var(--transition), box-shadow var(--transition);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.box-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.box-icon {
  background: var(--gold-light);
  color: var(--gold);
  width: 76px; height: 76px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  margin-bottom: 1.75rem;
}

.box-card h3 {
  font-size: 1.45rem;
  margin-bottom: 1.25rem;
  line-height: 1.3;
}

/* SEZIONI MACRO (Servizi) */
.macro-section { padding: 7rem 5%; }
.macro-section.bg-gray {
  background-color: var(--bg-section);
  border-top: 1px solid var(--border);
}
.container { max-width: 1240px; margin: 0 auto; }

/* INFO CARD (Chi Siamo) */
.info-card {
  background: var(--bg-white);
  padding: 3rem 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--gold);
  position: sticky;
  top: 100px;
}

.info-card .icon-header {
  text-align: center;
  font-size: 3rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.info-card h3 {
  font-size: 1.4rem;
  text-align: center;
  margin-bottom: 0.4rem;
}

.info-card h4 {
  font-size: 1rem;
  color: var(--text-light);
  text-align: center;
  font-weight: 400;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.info-card .address-block {
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.info-card .address-block:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.info-card .address-block i { color: var(--gold); font-size: 1.1rem; margin-bottom: 8px; display: block; }
.info-card p { font-size: 0.95rem; margin-bottom: 0.25rem; color: var(--text-dark); }

.cf-piva {
  font-family: 'Inter', monospace;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.88rem;
  background: var(--bg);
  padding: 14px;
  border-radius: 8px;
  text-align: center;
  margin-top: 1.5rem;
  letter-spacing: 0.05em;
}

/* BIO */
.profile-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 5rem;
  align-items: start;
}

.bio-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 2.5rem;
  position: relative;
}

.bio-section h5 {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

/* BOTTOM SECTION (Chi Siamo) */
.bottom-section {
  background: var(--bg-white);
  padding: 6rem 5%;
  border-top: 1px solid var(--border);
}

.bottom-container { max-width: 1240px; margin: 0 auto; }

.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 5rem;
}

/* ============================================================
   MOBILE MENU
   ============================================================ */

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--navy);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 8px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .profile-grid { grid-template-columns: 1fr; gap: 3rem; }
  .info-card { position: static; }
  .grid-2 { grid-template-columns: 1fr; gap: 3rem; }
  .grid-3 { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .pricing-card.featured { transform: scale(1); }
  .service-row { flex-direction: column; gap: 3rem; }
  .service-image { width: 100%; }
  .boxes-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
}

@media (max-width: 768px) {

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    flex-direction: column;
    gap: 0;
    display: none;

    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid var(--border);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a {
    display: block;
    padding: 1rem;
    border-bottom: none;
  }

  .hero-content { padding: 5rem 5% 4rem; }
  .section { padding: 4rem 5%; }
  .grid-3 { grid-template-columns: 1fr; }
  .macro-section { padding: 5rem 5%; }
  .contact-grid { gap: 3rem; }
}

/* CONTACT LINKS */
.contact-item a,
.info-card a {
  text-decoration: none;
  color: inherit;
  transition: opacity var(--transition);
}

.contact-item a:hover,
.info-card a:hover {
  opacity: 0.75;
  text-decoration: underline;
}

/* ============================================================
   UTILITY
   ============================================================ */
.text-center { text-align: center; }
.mt-sm { margin-top: 1rem; }
.mt-md { margin-top: 2rem; }
.mt-lg { margin-top: 3rem; }
.warning-box {
  background: #fff8f0;
  border-left: 4px solid #e07b39;
  padding: 1rem 1.5rem;
  border-radius: 0 8px 8px 0;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-dark);
}

/* ============================================================
   QUOTE BAND (homepage Darwin)
   ============================================================ */
.quote-band {
  background: var(--navy-deep);
  padding: 5rem 5%;
  text-align: center;
}

.quote-band-inner {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
}

.quote-mark {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 7rem;
  line-height: 0.6;
  color: var(--gold);
  opacity: 0.35;
  margin-bottom: 1.5rem;
  user-select: none;
}

.quote-band-text {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1.25rem, 2.5vw, 1.7rem);
  font-weight: 400;
  color: #f0ece4;
  line-height: 1.65;
  margin-bottom: 2rem;
}

.quote-author {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}
