/*
Theme Name: DLRistrutturazioni
Theme URI: https://dlristrutturazioni.it
Author: De Luca – I Sarti dell'Edilizia
Author URI: https://dlristrutturazioni.it
Description: Tema personalizzato per D.L. Ristrutturazioni, moderno, responsive e ottimizzato per presentare servizi, lavori e contatti.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dlristrutturazioni
*/

/* -----------------------------
   Variabili CSS & base
------------------------------ */
:root {
  --dl-primary: #c59b5c; /* oro caldo ispirato al brand */
  --dl-primary-soft: rgba(197, 155, 92, 0.1);
  --dl-secondary: #111827; /* grigio antracite per testi */
  --dl-bg: #f5f5f5; /* sfondo chiaro */
  --dl-surface: #ffffff;
  --dl-light: #111827;
  --dl-muted: #6b7280;
  --dl-border: #e5e7eb;
  --dl-radius: 10px;
  --dl-radius-lg: 18px;
  --dl-shadow-soft: 0 16px 40px rgba(15, 23, 42, 0.08);
  --dl-shadow-subtle: 0 10px 26px rgba(15, 23, 42, 0.06);
  --dl-font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--dl-font-sans);
  color: var(--dl-light);
  background: var(--dl-bg);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--dl-primary);
}

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

p {
  margin: 0 0 1rem;
}

/* -----------------------------
   Layout generale
------------------------------ */
.dl-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.dl-section {
  padding: 4.5rem 0;
}

.dl-section--muted {
  background: #f9fafb;
}

.dl-section-title {
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin-bottom: 1.25rem;
  letter-spacing: 0.03em;
  text-transform: none;
  color: var(--dl-light);
}

.dl-section-subtitle {
  max-width: 620px;
  color: var(--dl-muted);
  font-size: 0.98rem;
}

/* -----------------------------
   Header & Navigazione
------------------------------ */
.dl-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: linear-gradient(
    to bottom,
    rgba(249, 250, 251, 0.92),
    rgba(249, 250, 251, 0.85)
  );
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
}

.dl-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

.dl-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.dl-logo-image .custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.dl-logo-image img.custom-logo {
  height: 44px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
}

.dl-logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
}

.dl-logo-mark span {
  font-weight: 800;
  font-size: 0.9rem;
  color: #f9fafb;
}

.dl-logo-text {
  display: flex;
  flex-direction: column;
}

.dl-logo-text-primary {
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.dl-logo-text-secondary {
  font-size: 0.7rem;
  color: var(--dl-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.dl-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.dl-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.dl-nav li {
  position: relative;
}

.dl-nav a {
  font-size: 0.88rem;
  color: #4b5563;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
}

.dl-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.4rem;
  width: 0;
  height: 2px;
  background: var(--dl-primary);
  transition: width 0.22s ease-out;
}

.dl-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  margin-top: 0.75rem;
  padding: 0.6rem 0.4rem;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(229, 231, 235, 1);
  display: none;
  flex-direction: column;
  gap: 0.15rem;
  z-index: 40;
}

.dl-nav .sub-menu li {
  width: 100%;
}

.dl-nav .sub-menu a {
  display: block;
  padding: 0.35rem 0.8rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: #6b7280;
}

.dl-nav .sub-menu a::after {
  display: none;
}

.dl-nav li:hover > .sub-menu {
  display: flex;
}

.dl-nav .menu-item-has-children > a {
  padding-right: 0.9rem;
}

.dl-nav .menu-item-has-children > a::before {
  content: "▾";
  position: absolute;
  right: -0.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.6rem;
  color: #9ca3af;
}

.dl-nav a:hover::after,
.dl-nav .current-menu-item > a::after {
  width: 100%;
}

.dl-header-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dl-header-phone {
  display: none;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--dl-muted);
}

.dl-header-phone span {
  font-weight: 600;
  color: #111827;
}

.dl-btn,
.dl-btn-outline {
  border-radius: 999px;
  padding: 0.55rem 1.4rem;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  cursor: pointer;
  transition: all 0.2s ease-out;
}

.dl-btn {
  background: var(--dl-primary);
  color: #111827;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
}

.dl-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.16);
}

.dl-btn-outline {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.7);
  color: #111827;
}

.dl-btn-outline:hover {
  border-color: var(--dl-primary);
  background: var(--dl-primary-soft);
}

.dl-burger {
  display: none;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.dl-burger span {
  width: 14px;
  height: 1.6px;
  border-radius: 999px;
  background: #111827;
  box-shadow: 0 4px 0 #111827, 0 -4px 0 #111827;
}

/* -----------------------------
   Hero
------------------------------ */
.dl-hero {
  padding: 4.5rem 0 3.5rem;
}

.dl-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 3.2rem;
  align-items: center;
}

.dl-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 1);
  color: #6b7280;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.dl-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--dl-primary);
  box-shadow: 0 0 0 4px var(--dl-primary-soft);
}

.dl-hero-title {
  font-size: clamp(2.6rem, 4vw, 3.4rem);
  letter-spacing: 0.01em;
  text-transform: none;
  margin: 0 0 1rem;
}

.dl-hero-title span {
  color: var(--dl-primary);
}

.dl-hero-text {
  max-width: 520px;
  color: var(--dl-muted);
}

.dl-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.75rem;
  margin-top: 1.8rem;
}

.dl-hero-stats {
  display: flex;
  gap: 1.2rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--dl-muted);
}

.dl-hero-stat strong {
  display: block;
  color: #f9fafb;
  font-size: 1rem;
}

.dl-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.8rem;
  background: #ffffff;
  border-radius: 999px;
  border: 1px solid rgba(209, 213, 219, 1);
  color: #6b7280;
  font-size: 0.72rem;
}

.dl-hero-badge span {
  color: #111827;
  font-weight: 500;
}

.dl-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin-top: 2.2rem;
}

.dl-hero-right {
  position: relative;
}

.dl-hero-card {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  background: var(--dl-surface);
  box-shadow: var(--dl-shadow-soft);
}

.dl-hero-card::before {
  content: none;
}

.dl-hero-card-inner {
  position: relative;
  padding: 1.8rem 1.8rem 1.5rem;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 280px;
}

.dl-hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.dl-hero-card-title {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #6b7280;
}

.dl-hero-card-tag {
  font-size: 0.7rem;
  color: #111827;
}

.dl-hero-badge-vertical {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
  font-size: 0.7rem;
  color: #6b7280;
}

.dl-hero-badge-vertical strong {
  font-size: 0.82rem;
  color: #111827;
}

.dl-hero-card-body {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.25rem;
  align-items: center;
}

.dl-hero-rooms {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: #4b5563;
}

.dl-hero-rooms strong {
  font-size: 0.86rem;
  color: #111827;
}

.dl-hero-photo {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 1);
  box-shadow: var(--dl-shadow-subtle);
}

.dl-hero-photo img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.dl-hero-photo-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 0.7rem 0.9rem;
  background: linear-gradient(
    to top,
    rgba(17, 24, 39, 0.85),
    rgba(17, 24, 39, 0)
  );
  font-size: 0.72rem;
  color: #f9fafb;
}

.dl-hero-card-footer {
  margin-top: 1.1rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(229, 231, 235, 1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.7rem;
  color: #6b7280;
}

.dl-hero-card-footer strong {
  color: #111827;
}

.dl-hero-floating {
  position: absolute;
  right: -1.1rem;
  bottom: -1rem;
  width: 150px;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(229, 231, 235, 1);
  font-size: 0.7rem;
  color: var(--dl-muted);
}

.dl-hero-floating strong {
  display: block;
  color: #111827;
  margin-bottom: 0.1rem;
}

/* -----------------------------
   Sezioni servizi & valori
------------------------------ */
.dl-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.8rem;
  margin-top: 2.5rem;
}

.dl-grid-card {
  padding: 1.6rem 1.5rem 1.5rem;
  border-radius: var(--dl-radius-lg);
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 1);
  box-shadow: var(--dl-shadow-subtle);
}

.dl-grid-card-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--dl-muted);
  margin-bottom: 0.5rem;
}

.dl-grid-card-title {
  font-size: 1.1rem;
  margin-bottom: 0.45rem;
}

.dl-grid-card-text {
  font-size: 0.9rem;
  color: var(--dl-muted);
}

.dl-badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: #f9fafb;
  color: #6b7280;
  margin-top: 0.7rem;
}

.dl-badge-chip strong {
  color: #111827;
}

/* -----------------------------
   Portfolio / Lavori
------------------------------ */
.dl-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
  margin-top: 2.4rem;
}

.dl-portfolio-card {
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 1);
  box-shadow: var(--dl-shadow-subtle);
  display: flex;
  flex-direction: column;
}

.dl-portfolio-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.dl-portfolio-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.3s ease-out;
}

.dl-portfolio-card:hover .dl-portfolio-media img {
  transform: scale(1.05);
}

.dl-portfolio-body {
  padding: 1rem 1.1rem 1.05rem;
}

.dl-portfolio-meta {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--dl-muted);
  margin-bottom: 0.35rem;
}

.dl-portfolio-title {
  font-size: 0.98rem;
  color: #111827;
  margin-bottom: 0.4rem;
}

.dl-portfolio-info {
  font-size: 0.8rem;
  color: var(--dl-muted);
}

/* -----------------------------
   Galleria
------------------------------ */
.dl-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.6rem;
  margin-top: 2.2rem;
}

.dl-gallery-item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
}

.dl-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 0.25s ease-out, filter 0.25s ease-out;
}

.dl-gallery-item a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 80% 20%,
    rgba(15, 23, 42, 0),
    rgba(15, 23, 42, 0.25)
  );
  opacity: 0;
  transition: opacity 0.2s ease-out;
}

.dl-gallery-item:hover img {
  transform: scale(1.06);
  filter: brightness(1.03);
}

.dl-gallery-item:hover a::after {
  opacity: 1;
}

.dl-gallery-caption {
  position: absolute;
  inset: auto 0 0;
  padding: 0.45rem 0.7rem;
  font-size: 0.78rem;
  color: #f9fafb;
  background: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.9),
    rgba(15, 23, 42, 0)
  );
}

/* -----------------------------
   Blog
------------------------------ */
.dl-blog-header {
  margin-bottom: 2.4rem;
}

.dl-blog-grid {
  column-count: 3;
  column-gap: 1.8rem;
}

.dl-blog-card {
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 1);
  box-shadow: var(--dl-shadow-subtle);
  display: inline-flex;
  flex-direction: column;
  width: 100%;
  margin-bottom: 1.8rem;
  transform: translateY(0);
  transition: transform 0.22s ease-out, box-shadow 0.22s ease-out,
    border-color 0.22s ease-out;
}

.dl-blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.14);
  border-color: rgba(209, 213, 219, 1);
}

.dl-blog-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.dl-blog-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f3f4f6;
}

.dl-blog-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.25s ease-out, filter 0.25s ease-out;
}

.dl-blog-card:hover .dl-blog-media img {
  transform: scale(1.06);
  filter: brightness(1.03);
}

.dl-blog-body {
  padding: 1.1rem 1.2rem 1.25rem;
}

.dl-blog-meta {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--dl-muted);
  margin-bottom: 0.4rem;
}

.dl-blog-title {
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
  color: #111827;
  transition: color 0.2s ease-out;
}

.dl-blog-excerpt {
  font-size: 0.9rem;
  color: var(--dl-muted);
}

.dl-blog-card:hover .dl-blog-title {
  color: var(--dl-primary);
}

.dl-blog-pagination {
  margin-top: 2.6rem;
}

.dl-blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  margin-right: 0.25rem;
  padding: 0 0.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.8rem;
  color: #6b7280;
}

.dl-blog-pagination .page-numbers.current {
  background: var(--dl-primary);
  color: #111827;
}

.dl-blog-pagination .page-numbers:not(.current):hover {
  border-color: rgba(209, 213, 219, 1);
}

.dl-single {
  max-width: 780px;
}

.dl-single-header {
  margin-bottom: 1.6rem;
}

.dl-single-kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--dl-muted);
  margin-bottom: 0.4rem;
}

.dl-single-title {
  font-size: clamp(2rem, 3vw, 2.4rem);
  margin: 0 0 0.6rem;
}

.dl-single-meta {
  font-size: 0.8rem;
  color: var(--dl-muted);
}

.dl-single-media {
  margin: 1.6rem 0;
  border-radius: 18px;
  overflow: hidden;
}

.dl-single-media img {
  width: 100%;
  height: auto;
  display: block;
}

.dl-single-content {
  font-size: 1rem;
  color: #374151;
}

.dl-single-content p {
  margin-bottom: 1.1rem;
}

.dl-single-content h2,
.dl-single-content h3 {
  margin-top: 1.6rem;
  margin-bottom: 0.7rem;
}

.dl-single-nav {
  margin-top: 2.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(229, 231, 235, 1);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.86rem;
}

.dl-single-prev,
.dl-single-next {
  flex: 1;
}

.dl-single-prev a,
.dl-single-next a {
  color: #4b5563;
}

.dl-single-prev a:hover,
.dl-single-next a:hover {
  color: var(--dl-primary);
}

/* -----------------------------
   Chi siamo (pagina dedicata)
------------------------------ */
.dl-chi-siamo-content {
  /* Larghezza come le altre pagine: usa tutto lo spazio del .dl-container */
}

.dl-chi-siamo-lead {
  font-size: 1.08rem;
  line-height: 1.75;
  color: #374151;
  margin-bottom: 2.5rem;
}

.dl-chi-siamo-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

.dl-chi-siamo-block--image-right {
  direction: rtl;
}

.dl-chi-siamo-block--image-right .dl-chi-siamo-text,
.dl-chi-siamo-block--image-right .dl-chi-siamo-media {
  direction: ltr;
}

.dl-chi-siamo-media {
  border-radius: var(--dl-radius-lg);
  overflow: hidden;
  box-shadow: var(--dl-shadow-subtle);
}

.dl-chi-siamo-media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.dl-chi-siamo-text p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: #374151;
}

.dl-chi-siamo-quote {
  margin: 2.5rem 0;
  padding: 1.5rem 1.8rem;
  border-left: 4px solid var(--dl-primary);
  background: var(--dl-primary-soft);
  border-radius: 0 var(--dl-radius) var(--dl-radius) 0;
  font-size: 1.05rem;
  font-style: italic;
  color: #111827;
}

.dl-chi-siamo-quote p {
  margin: 0;
}

.dl-chi-siamo-fullimg {
  margin: 2.5rem 0;
  border-radius: var(--dl-radius-lg);
  overflow: hidden;
  box-shadow: var(--dl-shadow-soft);
}

.dl-chi-siamo-fullimg img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.dl-chi-siamo-closing {
  font-size: 1rem;
  line-height: 1.75;
  color: #374151;
  margin-bottom: 1.25rem;
}

.dl-chi-siamo-closing--last {
  margin-bottom: 0;
}

@media (max-width: 780px) {
  .dl-chi-siamo-block {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 1.25rem;
  }

  .dl-chi-siamo-block--image-right {
    direction: ltr;
  }

  .dl-chi-siamo-block--image-right .dl-chi-siamo-media {
    order: -1;
  }
}

/* -----------------------------
   Testimonianze
------------------------------ */
.dl-testimonials {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.25fr);
  gap: 2.5rem;
  align-items: center;
}

.dl-testimonial-card {
  padding: 1.5rem 1.6rem;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 1);
  box-shadow: var(--dl-shadow-subtle);
  margin-bottom: 1.1rem;
}

.dl-testimonial-quote {
  font-size: 0.94rem;
  color: #111827;
  margin-bottom: 0.85rem;
}

.dl-testimonial-author {
  font-size: 0.82rem;
  color: var(--dl-muted);
}

.dl-testimonial-author strong {
  color: #111827;
}

/* -----------------------------
   Sezione contatti
------------------------------ */
.dl-contact {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 2.4rem;
  align-items: flex-start;
}

.dl-contact-card {
  padding: 1.9rem 1.8rem;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 1);
  box-shadow: var(--dl-shadow-soft);
}

.dl-contact-list {
  list-style: none;
  padding: 0;
  margin: 1.1rem 0 0;
  display: grid;
  gap: 0.7rem;
  font-size: 0.9rem;
  color: var(--dl-muted);
}

.dl-contact-list strong {
  color: #111827;
}

.dl-contact-form {
  display: grid;
  gap: 0.85rem;
}

.dl-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.dl-field label {
  font-size: 0.8rem;
  color: var(--dl-muted);
}

.dl-input,
.dl-textarea {
  border-radius: 999px;
  border: 1px solid rgba(209, 213, 219, 1);
  background: #ffffff;
  color: #111827;
  padding: 0.55rem 0.9rem;
  font-size: 0.86rem;
  outline: none;
  transition: border-color 0.2s ease-out, box-shadow 0.2s ease-out,
    background 0.2s ease-out;
}

.dl-textarea {
  border-radius: 16px;
  min-height: 120px;
  resize: vertical;
  padding-top: 0.7rem;
}

.dl-input:focus,
.dl-textarea:focus {
  border-color: var(--dl-primary);
  box-shadow: 0 0 0 1px var(--dl-primary-soft);
  background: #ffffff;
}

/* -----------------------------
   Pagina Contatti (template)
------------------------------ */
.dl-contatti-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 2.4rem;
  align-items: start;
  margin-top: 1rem;
}

.dl-contatti-info-title {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
  color: #111827;
}

.dl-contatti-form {
  min-height: 200px;
}

/* Form inseriti nella pagina (es. Contact Form 7) */
.dl-contatti-form .wpcf7-form-control:not([type="submit"]):not([type="file"]),
.dl-contatti-form input[type="text"],
.dl-contatti-form input[type="email"],
.dl-contatti-form input[type="tel"],
.dl-contatti-form textarea {
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(209, 213, 219, 1);
  background: #ffffff;
  color: #111827;
  padding: 0.55rem 0.9rem;
  font-size: 0.86rem;
  outline: none;
}

.dl-contatti-form textarea,
.dl-contatti-form .wpcf7-form-control.wpcf7-textarea {
  border-radius: 8px;
  min-height: 120px;
  resize: vertical;
}

.dl-contatti-form input[type="submit"],
.dl-contatti-form .wpcf7-submit {
  border-radius: 8px;
  padding: 0.55rem 1.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--dl-primary);
  color: #111827;
  border: none;
  cursor: pointer;
}

@media (max-width: 960px) {
  .dl-contatti-grid {
    grid-template-columns: 1fr;
  }
}

.dl-contatti-mapa {
  width: 100%;
  margin: 0;
  padding: 0;
}

.dl-contatti-mapa-wrap {
  width: 100%;
  height: 520px;
  overflow: hidden;
  filter: grayscale(100%) contrast(1.05) brightness(1.02);
}

#dl-mapa.leaflet-container {
  width: 100%;
  height: 100%;
  font-family: inherit;
}

#dl-mapa .leaflet-control-zoom {
  border: none !important;
}

#dl-mapa .leaflet-control-zoom a {
  background: #fff !important;
  color: #111 !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  border-radius: 6px !important;
}

#dl-mapa .leaflet-control-attribution {
  font-size: 10px;
  background: rgba(255, 255, 255, 0.8) !important;
  color: #666 !important;
}

/* -----------------------------
   Footer
------------------------------ */
.dl-footer {
  border-top: 1px solid rgba(229, 231, 235, 1);
  background: #ffffff;
  padding: 2.2rem 0 1.6rem;
  font-size: 0.78rem;
  color: var(--dl-muted);
}

.dl-footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.8rem;
  margin-bottom: 1.4rem;
}

.dl-footer-nav {
  display: flex;
  gap: 1.2rem;
}

.dl-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.dl-footer-brand {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(148, 163, 184, 0.9);
}

.dl-footer-brand span {
  color: #111827;
}

/* -----------------------------
   WordPress core styles
------------------------------ */
.wp-block {
  max-width: 700px;
}

.wp-block-image img {
  border-radius: 16px;
}

.alignwide {
  max-width: 1100px;
}

.alignfull {
  max-width: none;
}

/* -----------------------------
   Responsive
------------------------------ */
@media (max-width: 960px) {
  .dl-nav {
    display: none;
    position: absolute;
    inset: 100% 0 auto;
    background: #ffffff;
    border-bottom: 1px solid rgba(229, 231, 235, 1);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  }

  .dl-nav.is-open {
    display: flex;
    flex-direction: column;
    padding: 0.75rem 1.25rem 1.1rem;
    gap: 1rem;
  }

  .dl-nav ul {
    flex-direction: column;
    gap: 0.6rem;
  }

  .dl-nav .sub-menu {
    position: static;
    margin: 0.2rem 0 0;
    padding: 0.3rem 0 0.1rem 0.9rem;
    box-shadow: none;
    border-radius: 0;
    border: 0;
    display: none;
  }

  .dl-nav .menu-item-has-children.open > .sub-menu {
    display: flex;
  }

  .dl-nav .menu-item-has-children > a::before {
    right: 0;
  }

  .dl-burger {
    display: inline-flex;
  }

  .dl-header-phone {
    display: none;
  }

  .dl-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .dl-hero-right {
    order: -1;
  }

  .dl-testimonials,
  .dl-contact {
    grid-template-columns: minmax(0, 1fr);
  }

  .dl-blog-grid {
    column-count: 2;
  }
}

@media (max-width: 780px) {
  .dl-section {
    padding: 3.5rem 0;
  }

  .dl-grid-3,
  .dl-portfolio-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .dl-blog-grid {
    column-count: 1;
  }

  .dl-footer-top {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .dl-header-inner {
    padding: 0.75rem 0;
  }

  .dl-hero {
    padding-top: 3.2rem;
  }

  .dl-hero-card {
    border-radius: 20px;
  }

  .dl-hero-card-inner {
    padding: 1.5rem 1.3rem;
  }

  .dl-hero-card-body {
    grid-template-columns: minmax(0, 1fr);
  }
}

