/* ============================================================
   ROBERTO IL FABBRO — custom.css
   Fabbro d'Arte · Sculture Utili
   ============================================================ */

/* ---- GOOGLE FONTS (caricati via <link> in HTML) ---------- */

/* ---- VARIABILI ------------------------------------------- */
:root {
  --primary-color:    #1C1C1E;   /* ferro / carbone */
  --secondary-color:  #B5451B;   /* ruggine / forgia */
  --accent-color:     #8C7A6B;   /* grigio metallico caldo */
  --primary-dark:     #0D0D0E;
  --text-dark:        #333333;
  --text-light:       #F5F0EB;
  --text-muted:       #6c757d;
  --bg-light:         #F5F0EB;   /* avorio caldo */
  --bg-dark:          #111111;
  --gold-accent:      #C9A96E;   /* bronzo caldo */
}

/* ---- RESET BASE ------------------------------------------ */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  color: var(--text-dark);
  background-color: #fff;
  line-height: 1.75;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
}

a {
  text-decoration: none;
  transition: color .25s ease;
}

img {
  max-width: 100%;
  height: auto;
}

/* ---- UTILITY --------------------------------------------- */
.text-rust   { color: var(--secondary-color) !important; }
.text-accent { color: var(--accent-color) !important; }
.bg-forge    { background-color: var(--primary-color) !important; }
.bg-rust     { background-color: var(--secondary-color) !important; }
.bg-warm     { background-color: var(--bg-light) !important; }

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.2;
}
.section-title-light { color: var(--text-light); }
.section-title-dark  { color: var(--primary-color); }

.section-divider {
  width: 60px;
  height: 3px;
  background: var(--secondary-color);
  border: none;
  margin: 0.5rem auto 1.5rem;
  display: block;
}
.section-divider-left {
  margin-left: 0;
}

.lead-custom {
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--text-dark);
}

/* ---- NAVBAR ---------------------------------------------- */
#navbar {
  background: transparent;
  transition: background .35s ease, padding .35s ease, box-shadow .35s ease;
  padding-top: 1.2rem;
  padding-bottom: 1.2rem;
  z-index: 1030;
}

#navbar.scrolled {
  background: rgba(12, 12, 14, 0.97) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding-top: .6rem;
  padding-bottom: .6rem;
  box-shadow: 0 2px 20px rgba(0,0,0,.4);
}

.navbar-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: .03em;
}

.navbar-brand span.brand-accent {
  color: var(--secondary-color);
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(245, 240, 235, 0.85);
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .4rem 1rem;
  position: relative;
  transition: color .25s;
}

.navbar-dark .navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  width: 0; height: 2px;
  background: var(--secondary-color);
  transform: translateX(-50%);
  transition: width .25s ease;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: #fff;
}
.navbar-dark .navbar-nav .nav-link:hover::after,
.navbar-dark .navbar-nav .nav-link.active::after {
  width: 60%;
}

.navbar-toggler {
  border: 1px solid rgba(245,240,235,.3);
}

/* ---- HERO ------------------------------------------------- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--primary-dark);
  overflow: hidden;
}

/* Hero background image */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(13,13,14,0.8) 0%, rgba(13,13,14,0.8) 100%),
    url('../img/content/hero-roberto-magni.jpg') center/cover no-repeat;
  z-index: 0;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to top, rgba(13,13,14,1) 0%, transparent 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--secondary-color);
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 40px; height: 2px;
  background: var(--secondary-color);
}

.hero-title {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--text-light);
  line-height: 1.08;
  margin-bottom: .5rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 300;
  color: var(--accent-color);
  letter-spacing: .1em;
  margin-bottom: 1.5rem;
  font-style: italic;
  font-family: 'Playfair Display', serif;
}

.hero-desc {
  font-size: 1.05rem;
  color: rgba(245,240,235,0.75);
  max-width: 560px;
  line-height: 1.85;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.hero-since {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  text-align: right;
}

.hero-since-number {
  font-family: 'Playfair Display', serif;
  font-size: clamp(5rem, 12vw, 10rem);
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(181,69,27,0.3);
  letter-spacing: -0.02em;
}

.hero-since-label {
  font-size: .75rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(181,69,27,0.5);
  display: block;
  text-align: right;
}

.btn-forge {
  background: var(--secondary-color);
  color: #fff;
  border: 2px solid var(--secondary-color);
  padding: .75rem 2rem;
  border-radius: 0;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: background .25s, color .25s, transform .2s;
}
.btn-forge:hover {
  background: transparent;
  color: var(--secondary-color);
  transform: translateY(-2px);
}

.btn-outline-forge {
  background: transparent;
  color: var(--text-light);
  border: 2px solid rgba(245,240,235,0.4);
  padding: .75rem 2rem;
  border-radius: 0;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: border-color .25s, color .25s, transform .2s;
}
.btn-outline-forge:hover {
  border-color: var(--secondary-color);
  color: var(--secondary-color);
  transform: translateY(-2px);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  cursor: pointer;
}

.scroll-indicator span {
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(245,240,235,0.4);
}

.scroll-arrow {
  width: 20px; height: 20px;
  border-right: 2px solid rgba(181,69,27,0.6);
  border-bottom: 2px solid rgba(181,69,27,0.6);
  transform: rotate(45deg);
  animation: bounce-arrow 1.6s ease infinite;
}
@keyframes bounce-arrow {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50%       { transform: rotate(45deg) translateY(6px); }
}

/* ---- CHI SONO -------------------------------------------- */
.chi-sono-section {
  background: var(--bg-light);
  padding: 6rem 0;
}

.bio-card {
  background: var(--primary-color);
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
}
.bio-card::before {
  content: '"';
  position: absolute;
  top: -1rem; left: 1.5rem;
  font-size: 10rem;
  font-family: 'Playfair Display', serif;
  color: rgba(181,69,27,0.12);
  line-height: 1;
}

.bio-card-year {
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  font-weight: 700;
  color: var(--secondary-color);
  line-height: 1;
  display: block;
}

.bio-card-label {
  font-size: .8rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--accent-color);
  display: block;
  margin-bottom: 1.5rem;
}

.bio-card-stat {
  padding: 1rem 0;
  border-top: 1px solid rgba(140,122,107,0.2);
}
.bio-card-stat:last-child {
  border-bottom: 1px solid rgba(140,122,107,0.2);
}

.bio-card-stat .stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary-color);
  display: block;
  line-height: 1;
}
.bio-card-stat .stat-label {
  font-size: .8rem;
  color: var(--accent-color);
  letter-spacing: .1em;
}

/* Timeline */
.timeline {
  position: relative;
  padding: 0;
  list-style: none;
  margin-top: 3rem;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 8px; left: 0; bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--secondary-color), transparent);
}

.timeline-item {
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 2rem;
}
.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -5px; top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--secondary-color);
  border: 2px solid var(--bg-light);
  box-shadow: 0 0 0 2px var(--secondary-color);
}

.timeline-year {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--secondary-color);
  display: block;
  line-height: 1;
  margin-bottom: .25rem;
}

.timeline-text {
  font-size: .9rem;
  color: var(--text-dark);
  line-height: 1.6;
}

/* ---- PERCORSO ARTISTICO ---------------------------------- */
.percorso-section {
  background: var(--primary-color);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.percorso-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,0.01) 0px,
    rgba(255,255,255,0.01) 1px,
    transparent 1px,
    transparent 20px
  );
}

.concept-block {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(140,122,107,0.15);
  padding: 2.5rem;
  position: relative;
  transition: border-color .3s, transform .3s;
}
.concept-block:hover {
  border-color: rgba(181,69,27,0.4);
  transform: translateY(-4px);
}

.concept-icon {
  width: 56px; height: 56px;
  background: rgba(181,69,27,0.15);
  border: 1px solid rgba(181,69,27,0.3);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: var(--secondary-color);
}

.concept-block h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--text-light);
  margin-bottom: .75rem;
}
.concept-block p {
  font-size: .92rem;
  color: rgba(245,240,235,0.65);
  line-height: 1.75;
  margin-bottom: 0;
}

/* Quote sculture utili */
.sculture-quote {
  border-left: 4px solid var(--secondary-color);
  padding: 1.5rem 2rem;
  background: rgba(181,69,27,0.08);
  margin: 3rem 0 0;
}
.sculture-quote blockquote {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text-light);
  margin: 0;
  line-height: 1.7;
}
.sculture-quote cite {
  display: block;
  margin-top: .75rem;
  font-size: .82rem;
  color: var(--accent-color);
  letter-spacing: .1em;
  font-style: normal;
}

/* ---- SCULTURE PUBBLICHE ---------------------------------- */
.sculture-section {
  background: #fff;
  padding: 6rem 0;
}

.opera-card {
  border: none;
  border-radius: 0;
  border-bottom: 3px solid transparent;
  transition: border-color .3s, transform .3s, box-shadow .3s;
  background: var(--bg-light);
  height: 100%;
}
.opera-card:hover {
  border-bottom-color: var(--secondary-color);
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.1);
}

.opera-icon {
  width: 64px; height: 64px;
  background: var(--primary-color);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.6rem;
  color: var(--secondary-color);
  transition: background .3s;
}
.opera-card:hover .opera-icon {
  background: var(--secondary-color);
  color: #fff;
}

.opera-card .card-body {
  padding: 2rem;
  text-align: center;
}
.opera-card .card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--primary-color);
  margin-bottom: .5rem;
}
.opera-card .card-text {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ---- SERVIZI --------------------------------------------- */
.servizi-section {
  background: var(--primary-dark);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.servizi-section::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right, transparent, var(--secondary-color), transparent);
}

.servizio-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(140,122,107,0.12);
  padding: 2.5rem 2rem;
  height: 100%;
  position: relative;
  transition: background .3s, border-color .3s, transform .3s;
}
.servizio-card:hover {
  background: rgba(181,69,27,0.07);
  border-color: rgba(181,69,27,0.35);
  transform: translateY(-6px);
}

.servizio-num {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  font-weight: 700;
  color: rgba(181,69,27,0.1);
  line-height: 1;
  position: absolute;
  top: 1rem; right: 1.5rem;
}

.servizio-icon {
  font-size: 2rem;
  color: var(--secondary-color);
  margin-bottom: 1.25rem;
  display: block;
}

.servizio-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  color: var(--text-light);
  margin-bottom: .75rem;
}
.servizio-card p {
  font-size: .9rem;
  color: rgba(245,240,235,0.6);
  line-height: 1.75;
  margin-bottom: 0;
}

.servizio-features {
  list-style: none;
  padding: 0;
  margin-top: 1.25rem;
  border-top: 1px solid rgba(140,122,107,0.15);
  padding-top: 1.25rem;
}
.servizio-features li {
  font-size: .85rem;
  color: rgba(245,240,235,0.5);
  padding: .25rem 0;
  padding-left: 1.2rem;
  position: relative;
}
.servizio-features li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: 700;
}

/* ---- VIDEO SECTION --------------------------------------- */
.video-section {
  background: #0a0a0c;
  padding: 6rem 0;
  text-align: center;
}

.video-wrapper {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  background: #000;
  box-shadow: 0 24px 80px rgba(0,0,0,0.7);
  border: 1px solid rgba(140,122,107,0.15);
}

.video-wrapper video {
  display: block;
  width: 100%;
  max-height: 500px;
  object-fit: cover;
}

.video-caption {
  margin-top: 1.5rem;
  font-size: .85rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent-color);
}
.video-caption a {
  color: var(--secondary-color);
  transition: color .25s;
}
.video-caption a:hover { color: #d4621f; }

/* ---- GALLERIA -------------------------------------------- */
.galleria-section {
  background: var(--bg-light);
  padding: 6rem 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  background: var(--primary-color);
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
  display: block;
}
.gallery-item:hover img { transform: scale(1.06); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13,13,14,0.6);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity .3s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i {
  font-size: 1.8rem;
  color: #fff;
}

/* Placeholder galleria (se non ci sono foto) */
.gallery-placeholder {
  aspect-ratio: 1;
  background: var(--primary-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  opacity: .4;
}
.gallery-placeholder i {
  font-size: 2rem;
  color: var(--accent-color);
}
.gallery-placeholder span {
  font-size: .7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent-color);
}

.gallery-note {
  margin-top: 2rem;
  text-align: center;
  font-size: .85rem;
  color: var(--accent-color);
  letter-spacing: .08em;
  font-style: italic;
}

/* ---- CONTATTI -------------------------------------------- */
.contatti-section {
  background: var(--primary-color);
  padding: 6rem 0;
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(140,122,107,0.12);
  margin-bottom: 1rem;
  transition: border-color .3s;
}
.contact-info-card:hover {
  border-color: rgba(181,69,27,0.35);
}

.contact-info-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  background: rgba(181,69,27,0.15);
  border: 1px solid rgba(181,69,27,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: var(--secondary-color);
}

.contact-info-label {
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent-color);
  display: block;
  margin-bottom: .2rem;
}
.contact-info-value {
  color: var(--text-light);
  font-size: .95rem;
  font-weight: 400;
  margin: 0;
}
.contact-info-value a {
  color: var(--text-light);
  transition: color .25s;
}
.contact-info-value a:hover { color: var(--secondary-color); }

/* Form contatti */
.contact-form-wrapper {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(140,122,107,0.12);
  padding: 2.5rem;
}

.contact-form-wrapper .form-label {
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-color);
  margin-bottom: .4rem;
}

.contact-form-wrapper .form-control,
.contact-form-wrapper .form-select {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(140,122,107,0.2);
  border-radius: 0;
  color: var(--text-light);
  padding: .75rem 1rem;
  transition: border-color .25s;
}
.contact-form-wrapper .form-control:focus,
.contact-form-wrapper .form-select:focus {
  background: rgba(255,255,255,0.08);
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 .2rem rgba(181,69,27,0.15);
  color: var(--text-light);
}
.contact-form-wrapper .form-control::placeholder {
  color: rgba(140,122,107,0.5);
}
.contact-form-wrapper textarea.form-control {
  resize: vertical;
  min-height: 140px;
}
.contact-form-wrapper select.form-select option {
  background: var(--primary-color);
  color: var(--text-light);
}

/* ---- FOOTER ---------------------------------------------- */
#footer {
  background: var(--primary-dark);
  color: rgba(245,240,235,0.65);
  padding-top: 4rem;
}

.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-light);
  display: block;
  margin-bottom: .5rem;
}

.footer-tagline {
  font-size: .8rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--secondary-color);
  display: block;
  margin-bottom: 1rem;
}

.footer-desc {
  font-size: .87rem;
  line-height: 1.7;
  color: rgba(245,240,235,0.5);
}

.footer-heading {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--secondary-color);
  margin-bottom: 1.25rem;
  font-family: 'Lato', sans-serif;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li { margin-bottom: .5rem; }
.footer-links a {
  color: rgba(245,240,235,0.55);
  font-size: .87rem;
  transition: color .25s;
}
.footer-links a:hover { color: var(--secondary-color); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: .75rem;
}
.footer-contact-item i {
  color: var(--secondary-color);
  font-size: .9rem;
  margin-top: .15rem;
  flex-shrink: 0;
}
.footer-contact-item a,
.footer-contact-item span {
  color: rgba(245,240,235,0.55);
  font-size: .87rem;
}
.footer-contact-item a:hover { color: var(--secondary-color); }

.footer-legal {
  font-size: .75rem;
  color: rgba(245,240,235,0.3);
  margin-top: .5rem;
}

.footer-divider {
  border-color: rgba(140,122,107,0.15);
  margin: 2rem 0 0;
}

.footer-copyright {
  background: rgba(0,0,0,0.3);
  padding: 1rem 0;
  font-size: .82rem;
  color: rgba(245,240,235,0.35);
  text-align: center;
}
.footer-copyright a {
  color: rgba(245,240,235,0.5);
}
.footer-copyright a:hover { color: var(--secondary-color); }

/* ---- ANIMAZIONI ------------------------------------------ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .65s ease, transform .65s ease;
}
.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}
.animate-delay-1 { transition-delay: .1s; }
.animate-delay-2 { transition-delay: .2s; }
.animate-delay-3 { transition-delay: .3s; }
.animate-delay-4 { transition-delay: .4s; }

/* ---- RESPONSIVE ------------------------------------------ */
@media (max-width: 991.98px) {
  .hero-since {
    display: none;
  }
  .hero-desc {
    max-width: 100%;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .percorso-section .concept-block {
    margin-bottom: 1rem;
  }
}

@media (max-width: 767.98px) {
  .chi-sono-section,
  .percorso-section,
  .sculture-section,
  .servizi-section,
  .video-section,
  .galleria-section,
  .contatti-section {
    padding: 4rem 0;
  }
  .bio-card {
    padding: 2rem 1.5rem;
    margin-top: 2rem;
  }
  .contact-form-wrapper {
    padding: 1.5rem;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
  }
  .timeline::before {
    left: 0;
  }
  .btn-forge, .btn-outline-forge {
    padding: .65rem 1.4rem;
    font-size: .8rem;
  }
}

@media (max-width: 575.98px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-title {
    font-size: 2.4rem;
  }
  .contact-info-card {
    padding: 1rem;
  }
}

/* ---- 404 PAGE -------------------------------------------- */
.error-section {
  min-height: 70vh;
  display: flex;
  align-items: center;
  background: var(--bg-light);
}
.error-number {
  font-family: 'Playfair Display', serif;
  font-size: clamp(6rem, 20vw, 12rem);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 2px var(--secondary-color);
  line-height: 1;
}

/* ---- SECTION PADDING UTILITY ----------------------------- */
.py-section { padding: 5rem 0; }

/* ---- WHATSAPP FAB ---------------------------------------- */
.wa-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(37,211,102,0.4);
  z-index: 1000;
  transition: transform 0.2s, box-shadow 0.2s;
}
.wa-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 28px rgba(37,211,102,0.55);
  color: #fff;
}
@media (max-width: 480px) {
  .wa-fab { bottom: 16px; right: 16px; width: 52px; height: 52px; font-size: 26px; }
}

/* ===== FORM CHANNEL TOGGLE (Messaggio | WhatsApp) ===== */
.form-channel-toggle {
  display: inline-flex;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 1.25rem;
  gap: 2px;
}
.form-channel-toggle .channel-btn {
  border: none;
  background: transparent;
  color: rgba(245,240,235,0.55);
  padding: 8px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
}
.form-channel-toggle .channel-btn:hover { color: var(--text-light, #f5f0eb); }
.form-channel-toggle .channel-btn.active {
  background: var(--text-light, #f5f0eb);
  color: var(--bg-dark, #1a1612);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.form-channel-toggle .channel-btn[data-channel="whatsapp"].active {
  background: #25D366;
  color: #fff;
  box-shadow: 0 2px 8px rgba(37,211,102,0.35);
}
form#contactForm[data-channel="whatsapp"] .btn-forge,
form#contactForm[data-channel="whatsapp"] #submitBtn {
  background: #25D366 !important;
  border-color: #25D366 !important;
  color: #fff !important;
}
form#contactForm[data-channel="whatsapp"] .btn-forge:hover,
form#contactForm[data-channel="whatsapp"] #submitBtn:hover {
  background: #1ebc59 !important;
  border-color: #1ebc59 !important;
}
@media (max-width: 480px) {
  .form-channel-toggle .channel-btn { padding: 7px 14px; font-size: 0.85rem; }
}
.form-control.is-invalid,
.form-select.is-invalid,
.form-check-input.is-invalid {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 0.15rem rgba(220,53,69,0.18);
}

/* Privacy checkbox styling — usa background-color (longhand) per NON sovrascrivere il check SVG di Bootstrap */
form#contactForm .form-check-input {
  background-color: rgba(255,255,255,0.08) !important;
  border: 1px solid rgba(140,122,107,0.4) !important;
}
form#contactForm .form-check-input:checked {
  background-color: var(--accent-color, #d97706) !important;
  border-color: var(--accent-color, #d97706) !important;
}
