/*
Theme Name: Bastianini Giardiniere Gentiluomo
Theme URI: https://www.nicolabastianini.it
Author: Nicola Bastianini — Giardiniere Gentiluomo
Description: Tema ufficiale Nicola Bastianini — Giardiniere Gentiluomo
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: bastianini
*/

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

:root {
  --dark:        #1A2E1A;
  --green:       #2D5A32;
  --green-mid:   #3D7A45;
  --green-light: #5A9E64;
  --earth:       #8B7355;
  --earth-light: #C4A882;
  --cream:       #F5F1E8;
  --beige:       #EAE3D2;
  --white:       #FFFFFF;
  --text:        #2A2A2A;
  --text-light:  #6A6555;
  --olive:       #787A34;
  --olive-light: #9AA044;
  --serif:       'Josefin Sans', 'Helvetica Neue', sans-serif;
  --sans:        'DM Sans', system-ui, sans-serif;
  --radius:      10px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--text); background: var(--white); line-height: 1.75; font-size: 1rem; font-weight: 400; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: 0.04em; text-transform: uppercase; }
h1 { font-size: clamp(1.5rem, 3.5vw, 2.6rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.3rem); }
h3 { font-size: clamp(1rem, 2vw, 1.25rem); }
p  { margin-bottom: 1rem; }
ul { list-style: none; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 2rem; }
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--earth);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-family: var(--sans);
  font-weight: 600;
  margin-bottom: 1.1rem;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 28px; height: 1.5px;
  background: var(--earth);
  flex-shrink: 0;
}
.section-title { color: var(--dark); margin-bottom: 1.2rem; }

/* ═══════════════════════════════════════════
   HEADER
═══════════════════════════════════════════ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(26,46,26,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(139,115,85,0.25);
  padding: 1rem 0;
}
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.site-logo {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--cream);
  letter-spacing: 0.04em;
  font-weight: 700;
  line-height: 1.1;
  flex-shrink: 0;
}
.site-logo .logo-tagline {
  display: block;
  font-size: 0.54rem;
  color: var(--earth-light);
  letter-spacing: 0.26em;
  font-family: var(--sans);
  font-weight: 300;
  text-transform: uppercase;
  margin-top: 0.28rem;
  opacity: 0.85;
}
.site-logo .logo-img { height: 72px; width: auto; display: block; }
.site-header { padding: 0.5rem 0; }
@media(max-width:900px){ .site-logo .logo-img { height: 52px; } }
.main-nav ul { display: flex; gap: 1.8rem; align-items: center; }
.main-nav a {
  color: var(--cream);
  font-family: var(--serif);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.main-nav a:hover,
.main-nav .current-menu-item a { color: var(--olive-light); }
.main-nav .menu-contatti a {
  background: var(--earth);
  color: var(--white) !important;
  padding: 0.42rem 1.2rem !important;
  font-weight: 600;
  font-size: 0.82rem;
  border-radius: 50px;
  transition: background 0.2s, box-shadow 0.2s !important;
}
.main-nav .menu-contatti a:hover {
  background: var(--earth-light) !important;
  color: var(--dark) !important;
  box-shadow: 0 3px 12px rgba(139,115,85,0.3) !important;
}

/* ═══════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.85rem 2rem;
  font-family: var(--sans); font-size: 0.9rem; font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: 50px;
  transition: all 0.28s; cursor: pointer; border: 2px solid transparent;
}
.btn-green {
  background: var(--green); color: var(--white);
  border-color: var(--green);
}
.btn-green:hover {
  background: transparent; color: var(--green);
  box-shadow: 0 4px 18px rgba(45,90,50,0.18);
}
.btn-earth {
  background: var(--earth); color: var(--white);
  border-color: var(--earth);
}
.btn-earth:hover {
  background: transparent; color: var(--earth);
  box-shadow: 0 4px 18px rgba(139,115,85,0.22);
}
.btn-outline {
  border-color: var(--green); color: var(--green); background: transparent;
}
.btn-outline:hover { background: var(--green); color: var(--white); }
.btn-outline-light {
  border-color: rgba(245,241,232,0.7); color: var(--cream); background: transparent;
}
.btn-outline-light:hover { background: var(--cream); color: var(--dark); }
.btn-olive {
  background: var(--olive); color: var(--white);
  border-color: var(--olive);
}
.btn-olive:hover {
  background: var(--olive-light); border-color: var(--olive-light);
  box-shadow: 0 4px 18px rgba(120,122,52,0.32);
}

/* ═══════════════════════════════════════════
   HERO SLIDER
═══════════════════════════════════════════ */
.hero {
  position: relative; min-height: 100vh; overflow: hidden;
  display: flex; align-items: center; background: var(--dark);
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }

/* Placeholder slide gradient (finché non ci sono le foto reali) */
.hero-slide-ph1 { background: linear-gradient(135deg, #1A2E1A 0%, #2D5A32 50%, #3D7A45 100%); }
.hero-slide-ph2 { background: linear-gradient(135deg, #2D5A32 0%, #1A2E1A 60%, #8B7355 100%); }
.hero-slide-ph3 { background: linear-gradient(135deg, #3D7A45 0%, #2D5A32 40%, #1A2E1A 100%); }
.hero-slide-ph4 { background: linear-gradient(135deg, #8B7355 0%, #2D5A32 50%, #1A2E1A 100%); }

.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(120deg, rgba(10,18,10,0.80) 0%, rgba(20,38,20,0.58) 50%, rgba(10,18,10,0.76) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 820px; padding-top: 6rem; }
.hero-eyebrow {
  display: inline-block;
  color: var(--olive-light);
  font-size: 0.7rem; letter-spacing: 0.32em; text-transform: uppercase;
  border: 1px solid rgba(154,160,68,0.5);
  padding: 0.38rem 1rem; margin-bottom: 1.6rem;
}
.hero h1 { color: var(--white); margin-bottom: 1.4rem; }
.hero h1 em { color: var(--earth-light); font-style: italic; }
.hero .lead {
  color: rgba(244,240,230,0.78);
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  max-width: 580px; margin-bottom: 2.4rem; line-height: 1.85;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3.5rem; }
.hero-dots { display: flex; gap: 0.6rem; align-items: center; margin-top: 0.5rem; }
.hero-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(244,240,230,0.3);
  border: 1px solid rgba(244,240,230,0.5);
  cursor: pointer; transition: all 0.3s;
}
.hero-dot.active { background: var(--olive-light); border-color: var(--olive-light); width: 24px; border-radius: 4px; }

/* ═══════════════════════════════════════════
   SEZIONI GENERALI
═══════════════════════════════════════════ */
.section-pad { padding: 6rem 0; }
.section-pad-sm { padding: 4rem 0; }

/* ═══════════════════════════════════════════
   SERVIZI PREVIEW
═══════════════════════════════════════════ */
.servizi-preview { background: var(--cream); }
.servizi-preview .section-header { text-align: center; max-width: 640px; margin: 0 auto 3.5rem; }
.servizi-preview .section-header p { color: var(--text-light); }
.servizi-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-bottom: 3rem; }
.servizio-card {
  background: var(--white);
  padding: 2.2rem 1.8rem;
  border-radius: var(--radius);
  border: 1.5px solid var(--beige);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.servizio-card:hover { border-color: var(--green-mid); transform: translateY(-5px); box-shadow: 0 12px 32px rgba(45,90,50,0.1); }
.servizio-icon { font-size: 2.2rem; margin-bottom: 1.2rem; }
.servizio-card h3 { color: var(--dark); margin-bottom: 0.7rem; }
.servizio-card p { color: var(--text-light); font-size: 0.9rem; margin: 0; }
.servizi-preview .section-cta { text-align: center; }

/* ═══════════════════════════════════════════
   CHI SIAMO PREVIEW
═══════════════════════════════════════════ */
.chi-siamo-preview { background: var(--white); }
.chi-siamo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.chi-siamo-img {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--beige);
  overflow: hidden;
}
.chi-siamo-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.chi-siamo-img-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(160deg, #3D7A45 0%, #2D5A32 60%, #1A2E1A 100%);
  display: flex; align-items: center; justify-content: center;
}
.chi-siamo-img-placeholder span { color: rgba(244,240,230,0.5); font-size: 0.8rem; letter-spacing: 0.15em; }
.chi-siamo-badge {
  position: absolute; bottom: -1.5rem; right: -1.5rem;
  background: var(--earth);
  color: var(--white);
  padding: 1.4rem;
  font-family: var(--serif);
  text-align: center;
  line-height: 1.1;
}
.chi-siamo-badge strong { font-size: 2rem; display: block; }
.chi-siamo-badge span { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; }
.chi-siamo-text { padding: 2rem 0; }
.chi-siamo-text h2 { margin-bottom: 1.5rem; }
.chi-siamo-text p { color: var(--text-light); margin-bottom: 1rem; }
.chi-siamo-text .btn { margin-top: 1.5rem; }

/* ═══════════════════════════════════════════
   GALLERY PREVIEW (carosello marquee)
═══════════════════════════════════════════ */
.gallery-preview { background: var(--dark); overflow: hidden; padding: 5rem 0; }
.gallery-preview .section-header { text-align: center; margin-bottom: 3rem; }
.gallery-preview .section-label { color: var(--earth-light); }
.gallery-preview .section-title { color: var(--white); }
.gallery-track { display: flex; flex-wrap: nowrap; animation: gallery-loop 32s linear infinite; }
.gallery-item {
  min-width: calc(33.333% - 8px);
  width: calc(33.333% - 8px);
  height: 420px;
  flex-shrink: 0;
  margin-right: 12px;
  overflow: hidden;
  background: var(--green);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item-ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; letter-spacing: 0.15em; color: rgba(244,240,230,0.35);
}
@keyframes gallery-loop { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.gallery-preview .section-cta { text-align: center; margin-top: 2.8rem; }

/* ═══════════════════════════════════════════
   BLOG PREVIEW
═══════════════════════════════════════════ */
.blog-preview { background: var(--cream); }
.blog-preview .section-header { text-align: center; max-width: 580px; margin: 0 auto 3.5rem; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-bottom: 3rem; }
.blog-card { background: var(--white); overflow: hidden; border-radius: var(--radius); border: 1.5px solid var(--beige); transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s; }
.blog-card:hover { transform: translateY(-5px); box-shadow: 0 14px 38px rgba(26,46,26,0.1); border-color: var(--earth-light); }
.blog-card-img { aspect-ratio: 16/9; overflow: hidden; background: var(--beige); }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.blog-card:hover .blog-card-img img { transform: scale(1.04); }
.blog-card-img-ph {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #3D7A45, #2D5A32);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; letter-spacing: 0.15em; color: rgba(244,240,230,0.5);
}
.blog-card-body { padding: 1.6rem; }
.blog-card-meta { font-size: 0.75rem; color: var(--earth); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.7rem; }
.blog-card h3 { color: var(--dark); margin-bottom: 0.6rem; font-size: 1.1rem; }
.blog-card p { color: var(--text-light); font-size: 0.88rem; margin: 0; }
.blog-card-link { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 1.1rem; color: var(--earth); font-size: 0.85rem; font-weight: 600; transition: gap 0.2s, color 0.2s; }
.blog-card-link:hover { gap: 0.7rem; color: var(--dark); }
.blog-preview .section-cta { text-align: center; }

/* ═══════════════════════════════════════════
   CONTATTO SEZIONE (home + pagina)
═══════════════════════════════════════════ */
.contact-section { background: var(--green); }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.contact-info { padding-top: 0.5rem; }
.contact-info .section-label { color: var(--earth-light); }
.contact-info h2 { color: var(--white); margin-bottom: 1.2rem; }
.contact-info p { color: rgba(244,240,230,0.75); margin-bottom: 0; }
.contact-detail { margin-top: 2rem; display: flex; flex-direction: column; gap: 0.8rem; }
.contact-detail-row { display: flex; align-items: flex-start; gap: 0.8rem; color: rgba(244,240,230,0.75); font-size: 0.9rem; }
.contact-detail-row .cd-icon { font-size: 1.1rem; margin-top: 0.1rem; flex-shrink: 0; }
.contact-form-wrap {}

/* FORM */
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { color: rgba(244,240,230,0.85); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }
.form-group input,
.form-group textarea,
.form-group select {
  background: rgba(244,240,230,0.1);
  border: 1px solid rgba(244,240,230,0.2);
  color: var(--cream);
  padding: 0.85rem 1rem;
  font-family: var(--sans);
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(244,240,230,0.35); }
.form-group input:focus,
.form-group textarea:focus { border-color: var(--earth-light); }
.form-group textarea { min-height: 130px; resize: vertical; }
.form-privacy { display: flex; align-items: flex-start; gap: 0.75rem; }
.form-privacy input[type="checkbox"] { margin-top: 0.2rem; flex-shrink: 0; width: 16px; height: 16px; accent-color: var(--earth); }
.form-privacy label { color: rgba(244,240,230,0.7); font-size: 0.82rem; line-height: 1.5; }
.form-privacy a { color: var(--earth-light); text-decoration: underline; }
.form-submit { margin-top: 0.5rem; }
.form-submit .btn { width: 100%; justify-content: center; }
.form-message { margin-top: 1rem; padding: 0.9rem 1.2rem; font-size: 0.88rem; }
.form-message.success { background: rgba(90,158,100,0.25); border-left: 3px solid var(--green-light); color: var(--cream); }
.form-message.error { background: rgba(180,60,60,0.2); border-left: 3px solid #c06060; color: var(--cream); }

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.site-footer { background: var(--dark); border-top: 1px solid rgba(139,115,85,0.2); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand .site-logo { color: var(--cream); margin-bottom: 1rem; display: inline-block; }
.footer-brand p { color: rgba(244,240,230,0.55); font-size: 0.88rem; max-width: 320px; line-height: 1.7; }
.footer-col h4 { color: var(--earth-light); font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase; font-family: var(--sans); font-weight: 500; margin-bottom: 1.2rem; }
.footer-col ul li { margin-bottom: 0.6rem; color: #ffffff; font-size: 0.88rem; line-height: 1.6; }
.footer-col ul li a { color: #ffffff; font-size: 0.88rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--earth-light); }
.footer-bottom { border-top: 1px solid rgba(244,240,230,0.08); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer-copy { color: rgba(244,240,230,0.35); font-size: 0.78rem; }
.footer-social { display: flex; gap: 1rem; }
.footer-social a { color: rgba(244,240,230,0.45); font-size: 0.8rem; letter-spacing: 0.08em; transition: color 0.2s; }
.footer-social a:hover { color: var(--earth-light); }

/* ═══════════════════════════════════════════
   PAGINA CHI SIAMO
═══════════════════════════════════════════ */
.page-hero { padding: 9rem 0 5rem; background: var(--dark); }
.page-hero .section-label { color: var(--earth-light); }
.page-hero h1 { color: var(--white); max-width: 700px; margin-top: 0.5rem; }
.page-hero p { color: rgba(244,240,230,0.7); max-width: 580px; margin-top: 1rem; font-size: 1.05rem; }
.chi-siamo-content { padding: 5rem 0; }
.chi-siamo-content h2 { color: var(--dark); margin-bottom: 1.2rem; }
.chi-siamo-content p { color: var(--text-light); margin-bottom: 1rem; }
.chi-siamo-valori { background: var(--cream); padding: 5rem 0; }
.valori-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; }
.valore-card { background: var(--white); padding: 2.2rem; border-radius: var(--radius); border: 1.5px solid var(--beige); border-top: 3px solid var(--green-mid); }
.valore-icon { font-size: 2rem; margin-bottom: 1rem; }
.valore-card h3 { color: var(--dark); margin-bottom: 0.7rem; }
.valore-card p { color: var(--text-light); font-size: 0.9rem; margin: 0; }

/* ═══════════════════════════════════════════
   PAGINA SERVIZI
═══════════════════════════════════════════ */
.servizi-page { padding: 5rem 0; }
.servizio-full { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: center; margin-bottom: 5rem; padding-bottom: 5rem; border-bottom: 1px solid var(--beige); }
.servizio-full:last-child { border-bottom: none; margin-bottom: 0; }
.servizio-full:nth-child(even) .servizio-full-img { order: 1; }
.servizio-full:nth-child(even) .servizio-full-text { order: 2; }
.servizio-full-img { aspect-ratio: 4/3; overflow: hidden; background: var(--beige); }
.servizio-full-img img { width: 100%; height: 100%; object-fit: cover; }
.servizio-full-ph {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #3D7A45, #2D5A32);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; color: rgba(244,240,230,0.45); letter-spacing: 0.15em;
}
.servizio-full-text .servizio-num { color: var(--earth); font-size: 0.7rem; letter-spacing: 0.3em; font-family: var(--sans); text-transform: uppercase; margin-bottom: 0.6rem; }
.servizio-full-text h2 { color: var(--dark); margin-bottom: 1.2rem; }
.servizio-full-text p { color: var(--text-light); margin-bottom: 0.8rem; }

/* ═══════════════════════════════════════════
   PAGINA LAVORI (gallery + lightbox)
═══════════════════════════════════════════ */
.lavori-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 5rem 0; }
.lavoro-item { aspect-ratio: 4/3; overflow: hidden; cursor: pointer; background: var(--beige); position: relative; }
.lavoro-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
.lavoro-item:hover img { transform: scale(1.06); }
.lavoro-item-ph {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #3D7A45 0%, #2D5A32 60%, #1A2E1A 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; color: rgba(244,240,230,0.4); letter-spacing: 0.12em;
}
.lavoro-overlay {
  position: absolute; inset: 0;
  background: rgba(26,46,26,0); transition: background 0.3s;
  display: flex; align-items: center; justify-content: center;
}
.lavoro-overlay span { color: var(--white); font-size: 1.6rem; opacity: 0; transition: opacity 0.3s; }
.lavoro-item:hover .lavoro-overlay { background: rgba(26,46,26,0.4); }
.lavoro-item:hover .lavoro-overlay span { opacity: 1; }

/* LIGHTBOX */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.92); align-items: center; justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox-img { max-width: 90vw; max-height: 90vh; object-fit: contain; display: block; }
.lightbox-close { position: absolute; top: 1.5rem; right: 1.5rem; color: var(--cream); font-size: 2rem; cursor: pointer; background: none; border: none; line-height: 1; }
.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  color: var(--cream); font-size: 2rem; cursor: pointer;
  background: rgba(255,255,255,0.1); border: none; padding: 0.5rem 0.8rem;
  transition: background 0.2s;
}
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.25); }

/* ═══════════════════════════════════════════
   PAGINA BLOG (home.php)
═══════════════════════════════════════════ */
.blog-list { padding: 5rem 0; }
.blog-list-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-bottom: 3rem; }
.blog-pagination { text-align: center; margin-top: 2rem; }
.blog-pagination .page-numbers { display: inline-flex; gap: 0.5rem; }
.blog-pagination a, .blog-pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--beige); color: var(--text);
  font-size: 0.88rem; transition: all 0.2s;
}
.blog-pagination .current, .blog-pagination a:hover { background: var(--green); color: var(--white); border-color: var(--green); }

/* ═══════════════════════════════════════════
   ARTICOLO SINGOLO
═══════════════════════════════════════════ */
.single-hero { padding: 9rem 0 4rem; background: var(--dark); }
.single-hero .art-category { color: var(--earth-light); font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; margin-bottom: 1rem; }
.single-hero h1 { color: var(--white); max-width: 800px; }
.single-hero .art-meta { color: rgba(244,240,230,0.55); font-size: 0.85rem; margin-top: 1rem; }
.single-featured { width: 100%; overflow: hidden; background: var(--beige); }
.single-featured img { width: 100%; height: auto; display: block; object-fit: contain; }
.single-content { max-width: 780px; margin: 0 auto; padding: 4rem 2rem; }
.single-content h2, .single-content h3 { color: var(--dark); margin: 2rem 0 1rem; }
.single-content p { color: var(--text-light); line-height: 1.85; margin-bottom: 1.2rem; }
.single-content ul, .single-content ol { margin: 1rem 0 1.5rem 1.5rem; color: var(--text-light); }
.single-content ul { list-style: disc; }
.single-content ol { list-style: decimal; }
.single-content li { margin-bottom: 0.4rem; line-height: 1.7; }
.single-content img { width: 100%; margin: 2rem 0; }
.single-content blockquote {
  border-left: 3px solid var(--earth);
  padding: 1rem 1.5rem; margin: 2rem 0;
  background: var(--cream); font-style: italic; color: var(--text);
}
.single-back { padding: 2rem 0 4rem; text-align: center; }

/* ═══════════════════════════════════════════
   PAGINA CONTATTI
═══════════════════════════════════════════ */
.contatti-page .contact-section { padding: 5rem 0 6rem; }
.contatti-mappa { height: 400px; background: var(--beige); margin-top: 4rem; display: flex; align-items: center; justify-content: center; color: var(--text-light); font-size: 0.85rem; letter-spacing: 0.1em; }

/* ═══════════════════════════════════════════
   PAGINA GRAZIE
═══════════════════════════════════════════ */
.grazie-page { min-height: 80vh; display: flex; align-items: center; background: var(--cream); }
.grazie-content { text-align: center; max-width: 520px; margin: 0 auto; padding: 8rem 2rem; }
.grazie-icon { font-size: 3.5rem; margin-bottom: 1.5rem; }
.grazie-content h1 { color: var(--dark); margin-bottom: 1rem; }
.grazie-content p { color: var(--text-light); margin-bottom: 2rem; }

/* ═══════════════════════════════════════════
   TABLET (900–1100px)
═══════════════════════════════════════════ */
@media(min-width:900px) and (max-width:1100px) {
  .main-nav ul { gap: 1.1rem; }
  .main-nav a { font-size: 0.78rem; }
  .site-logo .logo-tagline { display: none; }
  .servizi-cards { grid-template-columns: repeat(2, 1fr); }
  .chi-siamo-grid { gap: 3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ═══════════════════════════════════════════
   MOBILE (< 900px)
═══════════════════════════════════════════ */
@media(max-width:900px) {
  .servizi-cards { grid-template-columns: 1fr !important; }
  .chi-siamo-grid { grid-template-columns: 1fr !important; gap: 3rem !important; }
  .chi-siamo-badge { bottom: 1rem; right: 1rem; }
  .contact-inner { grid-template-columns: 1fr !important; gap: 3rem !important; }
  .blog-grid { grid-template-columns: 1fr !important; }
  .blog-list-grid { grid-template-columns: 1fr !important; }
  .footer-grid { grid-template-columns: 1fr !important; gap: 2rem !important; }
  .gallery-item { min-width: 85vw !important; width: 85vw !important; height: 56vw !important; max-height: 280px !important; }
  .gallery-track { animation-duration: 20s !important; }
  .lavori-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .valori-grid { grid-template-columns: 1fr !important; }
  .servizio-full { grid-template-columns: 1fr !important; gap: 2rem !important; }
  .servizio-full:nth-child(even) .servizio-full-img { order: unset !important; }
  .servizio-full:nth-child(even) .servizio-full-text { order: unset !important; }
  .form-row { grid-template-columns: 1fr !important; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media(max-width:600px) {
  .lavori-grid { grid-template-columns: 1fr !important; }
  .hero h1 { font-size: clamp(1.4rem, 5vw, 2rem); }
  .page-hero { padding: 8rem 0 3rem; }
}

/* ═══════════════════════════════════════════
   ANIMAZIONI SCROLL-TRIGGERED
═══════════════════════════════════════════ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-28px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(28px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes lineGrow {
  from { width: 0; }
  to   { width: 28px; }
}

/* Stato iniziale: invisibile prima dell'animazione */
.anim { opacity: 0; }
.anim.anim-visible { animation-fill-mode: both; animation-duration: 0.65s; animation-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1); }
.anim-up.anim-visible   { animation-name: fadeInUp; }
.anim-left.anim-visible { animation-name: fadeInLeft; }
.anim-right.anim-visible{ animation-name: fadeInRight; }
.anim-scale.anim-visible{ animation-name: scaleIn; }

/* Ritardi staggered per card in griglia */
.anim-d1 { animation-delay: 0.08s; }
.anim-d2 { animation-delay: 0.18s; }
.anim-d3 { animation-delay: 0.28s; }
.anim-d4 { animation-delay: 0.38s; }
.anim-d5 { animation-delay: 0.48s; }
.anim-d6 { animation-delay: 0.58s; }

/* Linea section-label animata */
.anim-visible .section-label::before { animation: lineGrow 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) both; }

/* Rispetta preferenza "riduci movimento" */
@media (prefers-reduced-motion: reduce) {
  .anim { opacity: 1 !important; animation: none !important; }
}
