/* ═══════════════════════════════════════════════
   CITY SERVICE SPURGHI — style.css
   Foglio di stile unico per tutte le pagine
   ═══════════════════════════════════════════════ */

/* ── PALETTE ── */
:root {
  --green-deep:   #1a3a2a;
  --green-mid:    #2d6a4f;
  --green-bright: #40916c;
  --green-light:  #74c69d;
  --green-pale:   #d8f3dc;
  --cream:        #f9f6f0;
  --white:        #ffffff;
  --dark:         #111c17;
  --gray:         #6b7280;
  --gray-light:   #e5e7eb;
}

/* ── RESET & BASE ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--dark);
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--green-deep);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 60px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
  position: relative;
}
.nav-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--green-light);
  letter-spacing: 0.02em;
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 0;
  list-style: none;
}
.nav-links a {
  display: block;
  padding: 0 1.1rem;
  line-height: 60px;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover {
  color: var(--green-light);
  background: rgba(255,255,255,0.05);
}
.nav-links a.active { color: var(--green-light); }
.nav-links a.cta {
  color: var(--green-deep);
  background: var(--green-light);
  margin-left: 0.5rem;
  font-weight: 600;
}
.nav-links a.cta:hover { background: var(--white); color: var(--green-deep); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--green-light);
  border-radius: 2px;
  transition: 0.3s;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  background: var(--green-light);
  color: var(--green-deep);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 3px;
  transition: background 0.2s, transform 0.2s;
  letter-spacing: 0.02em;
}
.btn-primary:hover { background: var(--white); transform: translateY(-2px); }
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  border: 2px solid rgba(255,255,255,0.35);
  color: var(--white);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 3px;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.btn-outline:hover { border-color: var(--green-light); background: rgba(116,198,157,0.1); transform: translateY(-2px); }

/* ── SECTION COMMONS ── */
.section { padding: 5rem 2rem; }
.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-bright);
  margin-bottom: 0.75rem;
  display: block;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--green-deep);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.section-sub {
  font-size: 1rem;
  color: var(--gray);
  line-height: 1.7;
  max-width: 520px;
}

/* ── PAGE HERO (pagine interne) ── */
.page-hero {
  background: linear-gradient(135deg, var(--green-deep) 0%, var(--green-mid) 60%, var(--green-bright) 100%);
  padding: 5rem 2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: var(--white);
  opacity: 0.05;
  top: -200px; right: -100px;
}
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  animation: fadeDown 0.7s 0.1s ease both;
}
.page-hero h1 em {
  font-style: normal;
  color: var(--green-light);
}
.page-hero .label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-light);
  display: block;
  margin-bottom: 0.75rem;
  animation: fadeDown 0.7s ease both;
}

/* ── CONTACTS STRIP ── */
.contacts-strip {
  background: var(--dark);
  padding: 3rem 2rem;
}
.contacts-strip .inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  align-items: center;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.contact-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}
.contact-item a, .contact-item p {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.5;
  transition: color 0.2s;
}
.contact-item a:hover { color: var(--green-light); }
.contact-item strong {
  display: block;
  color: var(--white);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

/* ── FOOTER ── */
footer {
  background: var(--green-deep);
  text-align: center;
  padding: 2rem 2rem 1.5rem;
  color: rgba(255,255,255,0.4);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}
.footer-main {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.75rem;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.2rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-legal a {
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-legal a:hover { color: var(--green-light); }
.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
}
.footer-links a {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--green-light); }
.footer-links span { color: rgba(255,255,255,0.2); }

/* ── ANIMATIONS ── */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 0.9; transform: scaleY(1.15); }
}

/* ══════════════════════════════════════════
   HOME — index.html
   ══════════════════════════════════════════ */

.hero {
  min-height: 88vh;
  background: linear-gradient(135deg, var(--green-deep) 0%, var(--green-mid) 60%, var(--green-bright) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 4rem 2rem;
}
.hero::before, .hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: 0.07;
  background: var(--white);
}
.hero::before { width: 600px; height: 600px; top: -200px; right: -100px; }
.hero::after  { width: 400px; height: 400px; bottom: -150px; left: -80px; }
.hero-inner { position: relative; z-index: 1; max-width: 700px; }
.hero-logo {
  width: 120px; height: 120px;
  object-fit: contain;
  border-radius: 50%;
  border: 3px solid var(--green-light);
  margin-bottom: 2rem;
  animation: fadeDown 0.8s ease both;
}
.hero-tagline {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-light);
  background: rgba(116,198,157,0.12);
  padding: 0.35rem 1rem;
  border: 1px solid rgba(116,198,157,0.3);
  border-radius: 2px;
  margin-bottom: 1.5rem;
  animation: fadeDown 0.8s 0.1s ease both;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.25rem;
  animation: fadeDown 0.8s 0.2s ease both;
}
.hero h1 em { font-style: normal; color: var(--green-light); }
.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  animation: fadeDown 0.8s 0.3s ease both;
}
.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeDown 0.8s 0.4s ease both;
}
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.4);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
@media (max-width: 768px) {
  .scroll-hint { display: none; }
}
.scroll-hint::after {
  content: '';
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}

/* Services */
.services { background: var(--white); }
.services .inner { max-width: 1100px; margin: 0 auto; }
.services-header { margin-bottom: 3.5rem; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--cream);
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  padding: 2rem;
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--green-bright);
  opacity: 0;
  transition: opacity 0.25s;
}
.service-card:hover {
  box-shadow: 0 8px 32px rgba(45,106,79,0.12);
  transform: translateY(-4px);
  border-color: var(--green-light);
}
.service-card:hover::before { opacity: 1; }
.service-icon {
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.service-icon .emoji { font-size: 2.8rem; }
.service-icon img { width: 48px; height: 48px; object-fit: contain; }
.service-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--green-deep);
  margin-bottom: 0.5rem;
}
.service-card p { font-size: 0.9rem; color: var(--gray); line-height: 1.65; }

/* Why us */
.why { background: var(--green-deep); }
.why .inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.why .section-label { color: var(--green-light); }
.why .section-title { color: var(--white); }
.why .section-sub { color: rgba(255,255,255,0.6); }
.why-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}
.why-list li { display: flex; align-items: flex-start; gap: 1rem; }
.why-list .check {
  flex-shrink: 0;
  width: 28px; height: 28px;
  background: rgba(116,198,157,0.15);
  border: 1px solid var(--green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-light);
  font-size: 0.75rem;
  margin-top: 2px;
}
.why-list .check-text strong { display: block; color: var(--white); font-size: 0.95rem; margin-bottom: 0.2rem; }
.why-list .check-text span { font-size: 0.85rem; color: rgba(255,255,255,0.55); }
.why-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.stat-box {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 1.75rem;
  text-align: center;
}
.stat-box .num {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--green-light);
  display: block;
}
.stat-box .lbl { font-size: 0.8rem; color: rgba(255,255,255,0.5); letter-spacing: 0.05em; margin-top: 0.25rem; display: block; }

/* Gallery */
.gallery-section { background: var(--cream); }
.gallery-section .inner { max-width: 1100px; margin: 0 auto; }
.gallery-header { margin-bottom: 2.5rem; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}
.gallery-item { aspect-ratio: 1; overflow: hidden; border-radius: 6px; position: relative; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; display: block; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,58,42,0.5), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-item:hover::after { opacity: 1; }

/* Stappami banner */
.stappami-banner {
  background: linear-gradient(90deg, var(--green-mid), var(--green-bright));
  padding: 3.5rem 2rem;
  text-align: center;
}
.stappami-banner p {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--white);
  margin-bottom: 1.5rem;
  font-style: italic;
}

/* ══════════════════════════════════════════
   INFORMAZIONI — informazioni.html
   ══════════════════════════════════════════ */

.content-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 4rem 2rem 5rem;
}
.article-block { margin-bottom: 4rem; }
.article-block .block-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-bright);
  margin-bottom: 0.6rem;
  display: block;
}
.article-block h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: var(--green-deep);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--green-pale);
}
.article-block p {
  font-size: 0.97rem;
  color: #374151;
  line-height: 1.85;
  margin-bottom: 1.1rem;
}
.article-block p:last-child { margin-bottom: 0; }
.article-block p strong { color: var(--green-deep); font-weight: 600; }
.highlight-box {
  background: var(--green-pale);
  border-left: 4px solid var(--green-bright);
  border-radius: 0 8px 8px 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.highlight-box p { margin: 0; color: var(--green-deep) !important; font-weight: 500; }
.section-divider {
  width: 60px;
  height: 3px;
  background: var(--green-bright);
  border: none;
  margin: 3rem 0;
  border-radius: 2px;
}
.cta-banner {
  background: linear-gradient(90deg, var(--green-mid), var(--green-bright));
  border-radius: 12px;
  padding: 2.5rem 2rem;
  text-align: center;
  margin-top: 3rem;
}
.cta-banner p {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--white);
  margin-bottom: 1.25rem;
  font-style: italic;
}

/* ══════════════════════════════════════════
   STAPPAMI — stappami.html
   ══════════════════════════════════════════ */

.stappami-hero {
  background: linear-gradient(135deg, var(--green-deep) 0%, var(--green-mid) 60%, var(--green-bright) 100%);
  padding: 6rem 2rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.stappami-hero::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: var(--white);
  opacity: 0.05;
  top: -200px; right: -100px;
}
.stappami-hero .label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-light);
  display: block;
  margin-bottom: 0.75rem;
  animation: fadeDown 0.7s ease both;
}
.stappami-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.5rem;
  animation: fadeDown 0.7s 0.1s ease both;
}
.stappami-hero h1 em { font-style: normal; color: var(--green-light); }

.stappami-content {
  max-width: 740px;
  margin: 0 auto;
  padding: 4rem 2rem 5rem;
}
.stappami-intro {
  font-size: 1.05rem;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  font-weight: 500;
}
.stappami-text {
  font-size: 1rem;
  color: #374151;
  line-height: 1.9;
  margin-bottom: 1.5rem;
}
.stappami-poem {
  background: var(--green-deep);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  margin: 2.5rem 0;
  text-align: center;
}
.stappami-poem p {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255,255,255,0.85);
  line-height: 1.9;
  font-style: italic;
}
.stappami-poem strong {
  color: var(--green-light);
  font-style: normal;
  font-size: 1.1em;
}
.stappami-closing {
  font-size: 1.1rem;
  color: var(--green-deep);
  font-weight: 600;
  text-align: center;
  margin-top: 2rem;
  font-family: 'Playfair Display', serif;
}

/* ══════════════════════════════════════════
   CONTATTACI — contattaci.html
   ══════════════════════════════════════════ */

.contact-page { max-width: 860px; margin: 0 auto; padding: 4rem 2rem 5rem; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: 10px;
  padding: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}
.contact-card:hover {
  box-shadow: 0 8px 32px rgba(45,106,79,0.1);
  transform: translateY(-3px);
  border-color: var(--green-light);
}
.contact-card .card-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}
.contact-card strong {
  display: block;
  color: var(--green-deep);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.contact-card a, .contact-card p {
  color: var(--gray);
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.5;
  transition: color 0.2s;
}
.contact-card a:hover { color: var(--green-bright); }
.contact-intro {
  font-size: 1rem;
  color: var(--gray);
  line-height: 1.75;
  max-width: 560px;
  margin-top: 0.75rem;
}
.map-wrap {
  margin-top: 3rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--gray-light);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.map-wrap iframe { display: block; width: 100%; height: 320px; border: none; }

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px; left: 0; right: 0;
    background: var(--green-deep);
    padding: 1rem 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { line-height: 1; padding: 0.9rem 1.5rem; }
  .nav-links a.cta { margin: 0.5rem 1rem; }
  .nav-toggle { display: flex; }

  .why .inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .why-stats { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .why-stats { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; align-items: center; }
}

/* ══════════════════════════════════════════
   LIGHTBOX
   ══════════════════════════════════════════ */
.gallery-item { cursor: pointer; }

#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
}
#lightbox.open { display: flex; }
#lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
  object-fit: contain;
}
#lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
#lightbox-close:hover { background: rgba(255,255,255,0.3); }
