:root {
  --color-cream: #fffdf8;
  --color-beige: #f5efe6;
  --color-sand: #e6d8c8;
  --color-brown: #7a4e2d;
  --color-terracotta: #b66a3c;
  --color-dark: #2b2118;
  --color-muted: #6f6257;
  --shadow-soft: 0 18px 45px rgba(43, 33, 24, 0.10);
  --shadow-card: 0 12px 30px rgba(43, 33, 24, 0.08);
  --radius-lg: 28px;
  --radius-md: 18px;
  --container: 1180px;
  --header-height: 82px;
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  font-family: "Lato", "Montserrat", "Open Sans", Arial, sans-serif;
  background: var(--color-cream);
  color: var(--color-dark);
  line-height: 1.65;
}

body.admin-bar .site-header {
  top: 32px;
}

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

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

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed !important;
  top: 12px;
  left: 12px;
  z-index: 9999;
  width: auto;
  height: auto;
  padding: 12px 16px;
  clip: auto;
  background: var(--color-dark);
  color: white;
  border-radius: 8px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(230, 216, 200, 0.85);
  transition: box-shadow 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 12px 30px rgba(43, 33, 24, 0.08);
  background: rgba(255, 253, 248, 0.97);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--color-brown), var(--color-terracotta));
  font-family: Georgia, "Times New Roman", serif;
}

.brand-text {
  font-size: 20px;
}

.custom-logo {
  max-height: 58px;
  width: auto;
}

.site-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 26px;
  margin: 0;
  padding: 0;
}

.site-menu a {
  position: relative;
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-dark);
}

.site-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--color-terracotta);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s ease;
}

.site-menu a:hover::after,
.site-menu a:focus::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-sand);
  border-radius: 12px;
  background: var(--color-cream);
  cursor: pointer;
}

.menu-toggle span:not(.screen-reader-text) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--color-dark);
}

.hero-section {
  position: relative;
  min-height: calc(88vh - var(--header-height));
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--color-dark);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1s ease, transform 6s ease;
  background-size: cover;
  background-position: center;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-slide-1 {
  background-image:
    linear-gradient(135deg, rgba(43, 33, 24, 0.35), rgba(122, 78, 45, 0.15)),
    radial-gradient(circle at 20% 30%, rgba(245, 239, 230, 0.25) 0 10%, transparent 11%),
    repeating-linear-gradient(45deg, #7a4e2d 0 18px, #8d5833 18px 36px, #b66a3c 36px 48px, #e6d8c8 48px 52px);
}

.hero-slide-2 {
  background-image:
    linear-gradient(135deg, rgba(43, 33, 24, 0.35), rgba(43, 33, 24, 0.05)),
    repeating-radial-gradient(circle at 45% 50%, #2b2118 0 4px, #7a4e2d 5px 9px, #b66a3c 10px 14px, #e6d8c8 15px 18px);
}

.hero-slide-3 {
  background-image:
    linear-gradient(135deg, rgba(43, 33, 24, 0.25), rgba(122, 78, 45, 0.20)),
    linear-gradient(90deg, #2b2118 0 14%, #7a4e2d 14% 30%, #b66a3c 30% 48%, #e6d8c8 48% 51%, #7a4e2d 51% 70%, #2b2118 70% 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(43, 33, 24, 0.76), rgba(43, 33, 24, 0.40), rgba(43, 33, 24, 0.18));
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  padding: 110px 0;
  max-width: var(--container);
}

.eyebrow {
  margin: 0 0 12px;
  color: #f0c19a;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--color-terracotta);
}

.hero-content h1,
.section h2,
.cta-strip h2,
.default-page h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.hero-content h1 {
  max-width: 760px;
  font-size: clamp(42px, 6vw, 76px);
}

.hero-text {
  max-width: 680px;
  margin: 24px 0 0;
  font-size: clamp(18px, 2vw, 22px);
  color: rgba(255, 255, 255, 0.88);
}

.hero-actions,
.cta-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-actions {
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1.2;
  transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease, color 0.22s ease;
}

.btn:hover,
.btn:focus {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--color-terracotta);
  color: white;
  box-shadow: 0 14px 28px rgba(182, 106, 60, 0.26);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--color-brown);
  color: white;
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.56);
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: rgba(255, 255, 255, 0.16);
}

.btn-light {
  background: white;
  color: var(--color-dark);
}

.slider-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.dot.is-active {
  background: white;
}

.section {
  padding: 96px 0;
}

.about-section,
.gallery-section {
  background: var(--color-beige);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 64px;
}

.image-card {
  min-height: 560px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.about-image {
  background-image:
    linear-gradient(160deg, rgba(43, 33, 24, 0.05), rgba(43, 33, 24, 0.45)),
    radial-gradient(circle at 26% 24%, rgba(255, 253, 248, 0.60) 0 8%, transparent 9%),
    repeating-linear-gradient(115deg, #e6d8c8 0 12px, #b66a3c 12px 26px, #7a4e2d 26px 42px, #2b2118 42px 46px);
  background-size: cover;
}

.section-copy h2,
.section-heading h2 {
  font-size: clamp(34px, 4vw, 52px);
}

.section-copy p,
.section-heading p,
.service-card p,
.footer-grid p,
.contact-list,
.check-list {
  color: var(--color-muted);
}

.section-copy > p:not(.eyebrow) {
  font-size: 18px;
  margin: 18px 0 0;
}

.check-list,
.contact-list,
.footer-list {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
}

.check-list li,
.contact-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
}

.check-list li::before,
.contact-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-terracotta);
  font-weight: 900;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 48px;
}

.section-heading.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-heading p:not(.eyebrow) {
  margin: 16px auto 0;
  font-size: 18px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.service-card {
  min-height: 250px;
  background: var(--color-cream);
  border: 1px solid var(--color-sand);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-card);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(43, 33, 24, 0.14);
}

.service-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(182, 106, 60, 0.12);
  color: var(--color-terracotta);
  font-size: 26px;
  font-weight: 900;
}

.service-card h3 {
  margin: 22px 0 10px;
  font-size: 22px;
}

.service-card p {
  margin: 0;
}

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

.gallery-item {
  position: relative;
  min-height: 300px;
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background-size: cover;
  background-position: center;
}

.gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(43, 33, 24, 0.70));
}

.gallery-item figcaption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  z-index: 1;
  color: white;
  font-weight: 800;
  font-size: 20px;
}

.gallery-1 {
  background-image: repeating-linear-gradient(45deg, #e6d8c8 0 14px, #b66a3c 14px 32px, #7a4e2d 32px 44px);
}

.gallery-2 {
  background-image: radial-gradient(circle at 50% 50%, #e6d8c8 0 9%, #b66a3c 10% 18%, #7a4e2d 19% 30%, #2b2118 31% 35%, #e6d8c8 36% 44%, #7a4e2d 45% 60%);
}

.gallery-3 {
  background-image: repeating-radial-gradient(circle, #2b2118 0 5px, #7a4e2d 6px 13px, #b66a3c 14px 22px, #e6d8c8 23px 28px);
}

.gallery-4 {
  background-image: linear-gradient(90deg, #2b2118 0 15%, #7a4e2d 15% 36%, #b66a3c 36% 57%, #e6d8c8 57% 61%, #7a4e2d 61% 82%, #2b2118 82% 100%);
}

.gallery-5 {
  background-image: repeating-linear-gradient(115deg, #e6d8c8 0 16px, #f5efe6 16px 30px, #b66a3c 30px 42px, #7a4e2d 42px 54px);
}

.gallery-6 {
  background-image: radial-gradient(circle at 25% 30%, #f5efe6 0 4%, transparent 5%), repeating-linear-gradient(0deg, #7a4e2d 0 6px, #b66a3c 6px 12px, #e6d8c8 12px 16px);
}

.gallery-note {
  margin: 24px auto 0;
  max-width: 760px;
  text-align: center;
  color: var(--color-muted);
  font-size: 14px;
}

.map-grid {
  align-items: stretch;
}

.map-embed {
  min-height: 470px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-sand);
  background: var(--color-beige);
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  min-height: 470px;
  border: 0;
  display: block;
}

.cta-strip {
  padding: 56px 0;
  background: linear-gradient(135deg, var(--color-brown), var(--color-terracotta));
  color: white;
}

.cta-inner {
  justify-content: space-between;
}

.cta-strip .eyebrow {
  color: rgba(255, 255, 255, 0.74);
}

.cta-strip h2 {
  font-size: clamp(30px, 4vw, 46px);
  max-width: 760px;
}

.site-footer {
  background: var(--color-dark);
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 42px;
  padding: 64px 0;
}

.footer-grid h3,
.footer-grid h4 {
  margin: 0 0 16px;
}

.footer-grid h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
}

.footer-grid p,
.footer-list {
  color: rgba(255, 255, 255, 0.72);
}

.footer-list li {
  margin-bottom: 10px;
}

.footer-list a:hover,
.footer-list a:focus {
  color: #f0c19a;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding: 20px 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
}

.footer-bottom p {
  margin: 0;
}

.default-page {
  padding: 80px 0;
}

.default-page h1 {
  font-size: clamp(34px, 4vw, 56px);
  margin-bottom: 24px;
}

.elementor-full-width-template {
  width: 100%;
}



/* Micro-transizioni e reveal on scroll */
.hero-content > * {
  opacity: 0;
  transform: translateY(20px);
  animation: tappetiFadeUp 0.9s var(--ease-soft) forwards;
}

.hero-content > *:nth-child(1) { animation-delay: 0.10s; }
.hero-content > *:nth-child(2) { animation-delay: 0.22s; }
.hero-content > *:nth-child(3) { animation-delay: 0.34s; }
.hero-content > *:nth-child(4) { animation-delay: 0.46s; }

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 0.75s var(--ease-soft),
    transform 0.75s var(--ease-soft),
    box-shadow 0.28s ease,
    background 0.28s ease,
    color 0.28s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.image-card,
.map-embed,
.gallery-item {
  transition: transform 0.45s var(--ease-soft), box-shadow 0.35s ease, filter 0.35s ease;
}

.image-card:hover,
.map-embed:hover {
  transform: translateY(-4px) scale(1.01);
}

.gallery-item::before,
.gallery-item figcaption {
  transition: transform 0.35s var(--ease-soft), opacity 0.35s ease, background 0.35s ease;
}

.gallery-item:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 20px 46px rgba(43, 33, 24, 0.16);
}

.gallery-item:hover::before {
  background: linear-gradient(180deg, rgba(43, 33, 24, 0.04), rgba(43, 33, 24, 0.82));
}

.gallery-item:hover figcaption {
  transform: translateY(-4px);
}

.service-card:hover .service-icon {
  transform: rotate(-4deg) scale(1.08);
  background: rgba(168, 95, 56, 0.18);
}

.service-icon {
  transition: transform 0.3s var(--ease-soft), background 0.3s ease;
}

@keyframes tappetiFadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal-on-scroll,
  .hero-content > * {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1024px) {
  .services-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .two-column {
    gap: 42px;
  }
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

@media (max-width: 767px) {
  :root {
    --header-height: 74px;
  }

  .container {
    width: min(100% - 28px, var(--container));
  }

  .menu-toggle {
    display: block;
  }

  .main-navigation {
    position: absolute;
    top: var(--header-height);
    left: 14px;
    right: 14px;
    padding: 18px;
    background: var(--color-cream);
    border: 1px solid var(--color-sand);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .main-navigation.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-menu {
    display: grid;
    gap: 14px;
  }

  .site-menu a {
    display: block;
    padding: 8px 0;
  }

  .hero-section {
    min-height: calc(80vh - var(--header-height));
  }

  .hero-overlay {
    background: rgba(43, 33, 24, 0.68);
  }

  .hero-content {
    padding: 76px 0 96px;
  }

  .hero-actions,
  .cta-inner {
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .section {
    padding: 72px 0;
  }

  .two-column,
  .footer-grid,
  .services-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .image-card,
  .gallery-item,
  .map-embed,
  .map-embed iframe {
    min-height: 340px;
  }

  .service-card {
    min-height: auto;
    padding: 26px;
  }

  .section-heading.centered {
    text-align: left;
  }

  .cta-inner {
    display: grid;
    gap: 24px;
  }

  .footer-grid {
    gap: 26px;
    padding: 52px 0;
  }
}

/* Elementor editable onepage template - v1.3 */
.elementor-full-width-template {
  overflow: hidden;
}

.tappeti-section {
  position: relative;
  padding-top: 96px !important;
  padding-bottom: 96px !important;
}

.tappeti-about,
.tappeti-gallery {
  background: var(--color-beige) !important;
}

.tappeti-services,
.tappeti-map {
  background: var(--color-cream) !important;
}

/* Hero slider Elementor: the Image Carousel becomes a full-width hero background. */
.tappeti-elementor-home {
  min-height: calc(88vh - var(--header-height));
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  background: var(--color-dark) !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.tappeti-elementor-home::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(43, 33, 24, 0.78), rgba(43, 33, 24, 0.44), rgba(43, 33, 24, 0.20));
}

.tappeti-elementor-home::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(43, 33, 24, 0.38), transparent);
}

.tappeti-elementor-home > .elementor-container {
  position: relative;
  z-index: 2;
  width: min(var(--container), calc(100% - 40px)) !important;
  min-height: calc(88vh - var(--header-height));
  display: flex;
  align-items: center;
  margin-inline: auto;
}

.tappeti-elementor-home .tappeti-hero-content-layer {
  width: 100% !important;
  max-width: 790px;
  position: relative;
  z-index: 3;
}

.tappeti-elementor-home .tappeti-hero-content-layer > .elementor-widget-wrap {
  align-content: center;
  padding: 110px 0 !important;
}

.tappeti-elementor-home .tappeti-hero-slider-layer {
  position: absolute !important;
  z-index: 0;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw !important;
  max-width: none !important;
  transform: translateX(-50%);
  pointer-events: none;
}

.tappeti-elementor-home .tappeti-hero-slider-layer > .elementor-widget-wrap,
.tappeti-elementor-home .tappeti-hero-carousel,
.tappeti-elementor-home .tappeti-hero-carousel > .elementor-widget-container,
.tappeti-elementor-home .tappeti-hero-carousel .elementor-image-carousel-wrapper,
.tappeti-elementor-home .tappeti-hero-carousel .swiper,
.tappeti-elementor-home .tappeti-hero-carousel .swiper-wrapper,
.tappeti-elementor-home .tappeti-hero-carousel .swiper-slide {
  height: 100%;
}

.tappeti-hero-carousel {
  position: absolute !important;
  inset: 0;
  margin: 0 !important;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  transform: none;
}

.tappeti-hero-carousel img,
.tappeti-hero-carousel .swiper-slide-image {
  width: 100%;
  height: 100% !important;
  min-height: calc(88vh - var(--header-height));
  object-fit: cover;
  object-position: center;
  display: block;
  filter: saturate(1.02) contrast(1.02);
}

.tappeti-hero-carousel .elementor-swiper-button,
.tappeti-hero-carousel .swiper-pagination {
  pointer-events: auto;
  z-index: 4;
}

.tappeti-hero-carousel .swiper-pagination {
  bottom: 28px !important;
}

.tappeti-hero-carousel .swiper-pagination-bullet {
  width: 11px;
  height: 11px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  background: transparent;
  opacity: 1;
}

.tappeti-hero-carousel .swiper-pagination-bullet-active {
  background: #fff;
}

.tappeti-eyebrow .elementor-heading-title {
  margin: 0;
  color: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.tappeti-elementor-home .tappeti-eyebrow .elementor-heading-title {
  color: #f0c19a;
}

.tappeti-about .tappeti-eyebrow .elementor-heading-title,
.tappeti-services .tappeti-eyebrow .elementor-heading-title,
.tappeti-gallery .tappeti-eyebrow .elementor-heading-title,
.tappeti-map .tappeti-eyebrow .elementor-heading-title {
  color: var(--color-terracotta);
}

.tappeti-hero-title .elementor-heading-title,
.tappeti-section-title .elementor-heading-title,
.tappeti-cta-title .elementor-heading-title {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.tappeti-hero-title .elementor-heading-title {
  max-width: 760px;
  color: #fff;
  font-size: clamp(42px, 6vw, 76px);
  text-shadow: 0 18px 45px rgba(0,0,0,.18);
}

.tappeti-section-title .elementor-heading-title {
  color: var(--color-dark);
  font-size: clamp(34px, 4vw, 52px);
}

.tappeti-cta-title .elementor-heading-title {
  color: #fff;
  font-size: clamp(30px, 4vw, 46px);
}

.tappeti-hero-text,
.tappeti-body-text,
.tappeti-section-subtitle {
  font-size: 18px;
  line-height: 1.75;
  color: var(--color-muted);
}

.tappeti-hero-text {
  max-width: 680px;
  margin-top: 8px;
  font-size: clamp(18px, 2vw, 22px);
  color: rgba(255, 255, 255, 0.88) !important;
}

.tappeti-body-text {
  color: var(--color-muted);
}

.tappeti-section-subtitle {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  color: var(--color-muted);
}

.tappeti-buttons-row .elementor-container,
.tappeti-services-row .elementor-container,
.tappeti-gallery-row .elementor-container {
  gap: 24px;
}

.tappeti-btn-primary .elementor-button,
.tappeti-btn-secondary .elementor-button,
.tappeti-btn-light .elementor-button {
  border-radius: 999px;
  padding: 15px 28px;
  font-weight: 800;
  transition: transform 0.3s var(--ease-soft), box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.tappeti-btn-primary .elementor-button {
  background: var(--color-terracotta);
  color: #fff;
  box-shadow: 0 14px 30px rgba(182, 106, 60, 0.25);
}

.tappeti-btn-primary .elementor-button:hover,
.tappeti-btn-primary .elementor-button:focus {
  background: var(--color-brown);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(122, 78, 45, 0.28);
}

.tappeti-btn-secondary .elementor-button {
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.56);
}

.tappeti-btn-secondary .elementor-button:hover,
.tappeti-btn-secondary .elementor-button:focus {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  transform: translateY(-3px);
}

.tappeti-btn-light .elementor-button {
  background: #fff;
  color: var(--color-dark);
}

.tappeti-btn-light .elementor-button:hover,
.tappeti-btn-light .elementor-button:focus {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(43, 33, 24, 0.18);
}

/* Chi siamo: stesso look premium della prima versione. */
.tappeti-image-rounded img {
  width: 100%;
  min-height: 560px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: transform 0.45s var(--ease-soft), box-shadow 0.35s ease, filter 0.35s ease;
}

.tappeti-image-rounded:hover img {
  transform: translateY(-4px) scale(1.01);
}

.tappeti-check-list .elementor-icon-list-item,
.tappeti-contact-list .elementor-icon-list-item {
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--color-muted);
  font-weight: 700;
}

.tappeti-check-list .elementor-icon-list-icon i,
.tappeti-contact-list .elementor-icon-list-icon i {
  color: var(--color-terracotta);
}

/* Servizi: card chiare con bordo beige, come la prima versione. */
.tappeti-service-box .elementor-icon-box-wrapper {
  height: 100%;
  min-height: 250px;
  padding: 32px;
  background: var(--color-cream);
  border: 1px solid var(--color-sand);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: transform 0.35s var(--ease-soft), box-shadow 0.35s ease, border-color 0.35s ease;
}

.tappeti-service-box .elementor-icon {
  color: var(--color-terracotta);
  background: rgba(182, 106, 60, 0.12);
  padding: 16px;
  border-radius: 16px;
  transition: transform 0.35s var(--ease-soft), background 0.35s ease;
}

.tappeti-service-box .elementor-icon-box-title {
  margin-top: 18px;
  color: var(--color-dark);
  font-size: 22px;
}

.tappeti-service-box .elementor-icon-box-description {
  color: var(--color-muted);
}

.tappeti-service-box:hover .elementor-icon-box-wrapper {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(43, 33, 24, 0.14);
}

.tappeti-service-box:hover .elementor-icon {
  transform: rotate(-4deg) scale(1.08);
  background: rgba(168, 95, 56, 0.18);
}

/* Gallery: torna al look iniziale, immagini piene con overlay e titolo in basso. */
.tappeti-gallery-box .elementor-image-box-wrapper {
  position: relative;
  min-height: 300px;
  height: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.35s var(--ease-soft), box-shadow 0.35s ease;
}

.tappeti-gallery-box .elementor-image-box-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent, rgba(43, 33, 24, 0.70));
  transition: background 0.35s ease;
}

.tappeti-gallery-box .elementor-image-box-img {
  width: 100% !important;
  margin: 0 !important;
}

.tappeti-gallery-box img {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
  transition: transform 0.5s var(--ease-soft), filter 0.35s ease;
}

.tappeti-gallery-box .elementor-image-box-content {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 18px;
  z-index: 2;
  text-align: left;
}

.tappeti-gallery-box .elementor-image-box-title {
  margin: 0;
  color: #fff;
  font-weight: 800;
  font-size: 20px;
}

.tappeti-gallery-box .elementor-image-box-description {
  display: none;
}

.tappeti-gallery-box:hover .elementor-image-box-wrapper {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 20px 46px rgba(43, 33, 24, 0.16);
}

.tappeti-gallery-box:hover .elementor-image-box-wrapper::before {
  background: linear-gradient(180deg, rgba(43, 33, 24, 0.04), rgba(43, 33, 24, 0.82));
}

.tappeti-gallery-box:hover img {
  transform: scale(1.045);
  filter: saturate(1.08) contrast(1.03);
}

.tappeti-map-widget,
.tappeti-map-widget iframe {
  min-height: 470px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-sand);
}

.tappeti-cta {
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, var(--color-brown), var(--color-terracotta)) !important;
  padding-top: 56px !important;
  padding-bottom: 56px !important;
}

.tappeti-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 30%, rgba(255, 255, 255, 0.18), transparent 28%), radial-gradient(circle at 85% 70%, rgba(255, 255, 255, 0.12), transparent 30%);
  pointer-events: none;
}

.tappeti-reveal,
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s var(--ease-soft), transform 0.75s var(--ease-soft);
  transition-delay: var(--reveal-delay, 0ms);
}

.tappeti-reveal.is-visible,
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.tappeti-fallback-home {
  padding: 120px 0;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(43, 33, 24, 0.86), rgba(43, 33, 24, 0.52)),
    url("../images/hero-1.jpg") center/cover no-repeat;
}

.tappeti-fallback-home h1 {
  max-width: 780px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

@media (max-width: 1024px) {
  .tappeti-buttons-row .elementor-container,
  .tappeti-services-row .elementor-container,
  .tappeti-gallery-row .elementor-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 782px) {
  body.admin-bar .tappeti-elementor-home .tappeti-hero-slider-layer {
    top: 0;
  }
}

@media (max-width: 767px) {
  .tappeti-section {
    padding-top: 72px !important;
    padding-bottom: 72px !important;
  }

  .tappeti-elementor-home,
  .tappeti-elementor-home > .elementor-container,
  .tappeti-hero-carousel img,
  .tappeti-hero-carousel .swiper-slide-image {
    min-height: calc(80vh - var(--header-height));
  }

  .tappeti-elementor-home::before {
    background: rgba(43, 33, 24, 0.70);
  }

  .tappeti-elementor-home .tappeti-hero-content-layer > .elementor-widget-wrap {
    padding: 76px 0 96px !important;
  }

  .tappeti-buttons-row .elementor-container,
  .tappeti-services-row .elementor-container,
  .tappeti-gallery-row .elementor-container {
    display: block;
  }

  .tappeti-image-rounded img,
  .tappeti-gallery-box img,
  .tappeti-gallery-box .elementor-image-box-wrapper,
  .tappeti-map-widget,
  .tappeti-map-widget iframe {
    height: 340px;
    min-height: 340px;
  }

  .tappeti-service-box .elementor-icon-box-wrapper {
    min-height: auto;
    padding: 26px;
  }

  .tappeti-section-subtitle {
    text-align: left;
  }

  .tappeti-btn-primary .elementor-button,
  .tappeti-btn-secondary .elementor-button,
  .tappeti-btn-light .elementor-button {
    width: 100%;
  }
}

/* Elementor parity fixes - v1.4/v1.5
   These rules deliberately target both the front-end preview and the Elementor editor iframe. */
body .elementor .tappeti-section.elementor-section {
  position: relative !important;
  overflow: hidden;
}

body .elementor .tappeti-section.elementor-section:not(.tappeti-elementor-home) > .elementor-container {
  width: min(var(--container), calc(100% - 40px)) !important;
  max-width: var(--container) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Clean hero: full image slider + one editable text widget above it. */
body .elementor .tappeti-elementor-home.elementor-section,
body .tappeti-elementor-home.elementor-section {
  min-height: calc(88vh - var(--header-height)) !important;
  height: auto !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  background: var(--color-dark) !important;
  display: flex !important;
  align-items: center !important;
  overflow: hidden !important;
  isolation: isolate;
}

body .elementor .tappeti-elementor-home.elementor-section::before,
body .tappeti-elementor-home.elementor-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(43, 33, 24, 0.78), rgba(43, 33, 24, 0.42), rgba(43, 33, 24, 0.22));
}

body .elementor .tappeti-elementor-home.elementor-section::after,
body .tappeti-elementor-home.elementor-section::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 34%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(43, 33, 24, 0.42), rgba(43, 33, 24, 0));
}

body .elementor .tappeti-elementor-home.elementor-section > .elementor-container,
body .tappeti-elementor-home.elementor-section > .elementor-container {
  position: relative !important;
  z-index: 2 !important;
  width: min(var(--container), calc(100% - 40px)) !important;
  max-width: var(--container) !important;
  min-height: calc(88vh - var(--header-height)) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  display: flex !important;
  align-items: center !important;
}

body .elementor .tappeti-elementor-home .tappeti-hero-single-column,
body .tappeti-elementor-home .tappeti-hero-single-column {
  width: 100% !important;
  min-height: calc(88vh - var(--header-height)) !important;
  position: static !important;
}

body .elementor .tappeti-elementor-home .tappeti-hero-single-column > .elementor-widget-wrap,
body .tappeti-elementor-home .tappeti-hero-single-column > .elementor-widget-wrap {
  position: static !important;
  min-height: calc(88vh - var(--header-height)) !important;
  align-content: center !important;
  align-items: center !important;
  padding: 110px 0 !important;
}

body .elementor .tappeti-elementor-home .tappeti-hero-slider-widget,
body .tappeti-elementor-home .tappeti-hero-slider-widget {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  width: 100vw !important;
  max-width: none !important;
  height: 100% !important;
  margin: 0 !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  pointer-events: none;
}

body .elementor .tappeti-elementor-home .tappeti-hero-slider-widget,
body .elementor .tappeti-elementor-home .tappeti-hero-slider-widget > .elementor-widget-container,
body .elementor .tappeti-elementor-home .tappeti-hero-slider-widget .elementor-image-carousel-wrapper,
body .elementor .tappeti-elementor-home .tappeti-hero-slider-widget .swiper,
body .elementor .tappeti-elementor-home .tappeti-hero-slider-widget .swiper-container,
body .elementor .tappeti-elementor-home .tappeti-hero-slider-widget .swiper-wrapper,
body .elementor .tappeti-elementor-home .tappeti-hero-slider-widget .swiper-slide,
body .tappeti-elementor-home .tappeti-hero-slider-widget,
body .tappeti-elementor-home .tappeti-hero-slider-widget > .elementor-widget-container,
body .tappeti-elementor-home .tappeti-hero-slider-widget .elementor-image-carousel-wrapper,
body .tappeti-elementor-home .tappeti-hero-slider-widget .swiper,
body .tappeti-elementor-home .tappeti-hero-slider-widget .swiper-container,
body .tappeti-elementor-home .tappeti-hero-slider-widget .swiper-wrapper,
body .tappeti-elementor-home .tappeti-hero-slider-widget .swiper-slide {
  height: 100% !important;
  min-height: calc(88vh - var(--header-height)) !important;
}

body .elementor .tappeti-elementor-home .tappeti-hero-slider-widget img,
body .elementor .tappeti-elementor-home .tappeti-hero-slider-widget .swiper-slide-image,
body .tappeti-elementor-home .tappeti-hero-slider-widget img,
body .tappeti-elementor-home .tappeti-hero-slider-widget .swiper-slide-image {
  display: block !important;
  width: 100vw !important;
  max-width: none !important;
  height: 100% !important;
  min-height: calc(88vh - var(--header-height)) !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  filter: saturate(1.04) contrast(1.03);
}

body .elementor .tappeti-elementor-home .tappeti-hero-title,
body .tappeti-elementor-home .tappeti-hero-title {
  position: relative !important;
  z-index: 3 !important;
  width: 100% !important;
  max-width: 790px !important;
  margin: 0 !important;
}

body .elementor .tappeti-elementor-home .tappeti-hero-title .elementor-heading-title,
body .tappeti-elementor-home .tappeti-hero-title .elementor-heading-title {
  color: #fff !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(42px, 6vw, 76px) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.035em !important;
  text-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
}

body .elementor .tappeti-elementor-home .tappeti-eyebrow,
body .elementor .tappeti-elementor-home .tappeti-hero-text,
body .elementor .tappeti-elementor-home .tappeti-buttons-row,
body .tappeti-elementor-home .tappeti-eyebrow,
body .tappeti-elementor-home .tappeti-hero-text,
body .tappeti-elementor-home .tappeti-buttons-row {
  display: none !important;
}

/* Fix editor/front-end inconsistencies for section rhythm and card grids. */
body .elementor .tappeti-about.elementor-section,
body .elementor .tappeti-gallery.elementor-section {
  background: var(--color-beige) !important;
}

body .elementor .tappeti-services.elementor-section,
body .elementor .tappeti-map.elementor-section {
  background: var(--color-cream) !important;
}

body .elementor .tappeti-services-row > .elementor-container,
body .elementor .tappeti-gallery-row > .elementor-container,
body .tappeti-services-row > .elementor-container,
body .tappeti-gallery-row > .elementor-container {
  width: 100% !important;
  max-width: none !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 24px !important;
}

body .elementor .tappeti-services-row .elementor-column,
body .elementor .tappeti-gallery-row .elementor-column,
body .tappeti-services-row .elementor-column,
body .tappeti-gallery-row .elementor-column {
  width: 100% !important;
}

body .elementor .tappeti-service-box,
body .elementor .tappeti-gallery-box,
body .tappeti-service-box,
body .tappeti-gallery-box {
  height: 100%;
}

body .elementor .tappeti-service-box > .elementor-widget-container,
body .tappeti-service-box > .elementor-widget-container {
  height: 100%;
}

body .elementor .tappeti-gallery-box .elementor-image-box-wrapper,
body .tappeti-gallery-box .elementor-image-box-wrapper {
  height: 300px !important;
}

body .elementor .tappeti-map-widget .elementor-widget-container,
body .tappeti-map-widget .elementor-widget-container {
  height: 470px !important;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-sand);
}

body .elementor .tappeti-map-widget iframe,
body .tappeti-map-widget iframe {
  display: block !important;
  width: 100% !important;
  height: 470px !important;
  min-height: 470px !important;
}

/* In the Elementor editor, keep reveal elements visible while editing. */
body.elementor-editor-active .tappeti-reveal,
body.elementor-editor-active .reveal-on-scroll,
.elementor-editor-active .tappeti-reveal,
.elementor-editor-active .reveal-on-scroll {
  opacity: 1 !important;
  transform: none !important;
}

@media (max-width: 1024px) {
  body .elementor .tappeti-services-row > .elementor-container,
  body .elementor .tappeti-gallery-row > .elementor-container,
  body .tappeti-services-row > .elementor-container,
  body .tappeti-gallery-row > .elementor-container {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 767px) {
  body .elementor .tappeti-elementor-home.elementor-section,
  body .elementor .tappeti-elementor-home.elementor-section > .elementor-container,
  body .elementor .tappeti-elementor-home .tappeti-hero-single-column,
  body .elementor .tappeti-elementor-home .tappeti-hero-single-column > .elementor-widget-wrap,
  body .elementor .tappeti-elementor-home .tappeti-hero-slider-widget,
  body .elementor .tappeti-elementor-home .tappeti-hero-slider-widget > .elementor-widget-container,
  body .elementor .tappeti-elementor-home .tappeti-hero-slider-widget .elementor-image-carousel-wrapper,
  body .elementor .tappeti-elementor-home .tappeti-hero-slider-widget .swiper,
  body .elementor .tappeti-elementor-home .tappeti-hero-slider-widget .swiper-container,
  body .elementor .tappeti-elementor-home .tappeti-hero-slider-widget .swiper-wrapper,
  body .elementor .tappeti-elementor-home .tappeti-hero-slider-widget .swiper-slide,
  body .elementor .tappeti-elementor-home .tappeti-hero-slider-widget img,
  body .elementor .tappeti-elementor-home .tappeti-hero-slider-widget .swiper-slide-image,
  body .tappeti-elementor-home.elementor-section,
  body .tappeti-elementor-home.elementor-section > .elementor-container,
  body .tappeti-elementor-home .tappeti-hero-single-column,
  body .tappeti-elementor-home .tappeti-hero-single-column > .elementor-widget-wrap,
  body .tappeti-elementor-home .tappeti-hero-slider-widget,
  body .tappeti-elementor-home .tappeti-hero-slider-widget > .elementor-widget-container,
  body .tappeti-elementor-home .tappeti-hero-slider-widget .elementor-image-carousel-wrapper,
  body .tappeti-elementor-home .tappeti-hero-slider-widget .swiper,
  body .tappeti-elementor-home .tappeti-hero-slider-widget .swiper-container,
  body .tappeti-elementor-home .tappeti-hero-slider-widget .swiper-wrapper,
  body .tappeti-elementor-home .tappeti-hero-slider-widget .swiper-slide,
  body .tappeti-elementor-home .tappeti-hero-slider-widget img,
  body .tappeti-elementor-home .tappeti-hero-slider-widget .swiper-slide-image {
    min-height: calc(80vh - var(--header-height)) !important;
  }

  body .elementor .tappeti-elementor-home .tappeti-hero-single-column > .elementor-widget-wrap,
  body .tappeti-elementor-home .tappeti-hero-single-column > .elementor-widget-wrap {
    padding: 76px 0 96px !important;
  }

  body .elementor .tappeti-elementor-home.elementor-section::before,
  body .tappeti-elementor-home.elementor-section::before {
    background: rgba(43, 33, 24, 0.70);
  }

  body .elementor .tappeti-elementor-home .tappeti-hero-title .elementor-heading-title,
  body .tappeti-elementor-home .tappeti-hero-title .elementor-heading-title {
    font-size: clamp(36px, 11vw, 50px) !important;
  }

  body .elementor .tappeti-services-row > .elementor-container,
  body .elementor .tappeti-gallery-row > .elementor-container,
  body .tappeti-services-row > .elementor-container,
  body .tappeti-gallery-row > .elementor-container {
    grid-template-columns: 1fr !important;
  }
}

/* Tappeti Onepage v1.8 — palette tessile + font showroom + hero slider reale + gallery filtrabile */
:root {
  --font-heading: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", "Segoe UI", Arial, sans-serif;
  --color-cream: #fffaf1;
  --color-beige: #f3eadc;
  --color-sand: #dfcdb5;
  --color-walnut: #3a271b;
  --color-brown: #5d3924;
  --color-terracotta: #a85f38;
  --color-gold: #b68a4a;
  --color-dark: #241810;
  --color-heading: #342216;
  --color-muted: #6e5c4e;
  --shadow-soft: 0 22px 58px rgba(36, 24, 16, 0.13);
  --shadow-card: 0 14px 34px rgba(36, 24, 16, 0.09);
}

body,
.elementor,
.elementor-widget-text-editor,
.elementor-widget-icon-list,
.elementor-widget-icon-box,
.elementor-widget-image-box {
  font-family: var(--font-body);
}

.brand-mark,
.hero-content h1,
.section h2,
.cta-strip h2,
.default-page h1,
.footer-grid h3,
.tappeti-hero-heading,
.tappeti-section-title .elementor-heading-title,
.tappeti-cta-title .elementor-heading-title,
.tappeti-service-box .elementor-icon-box-title,
.tappeti-gallery-box .elementor-image-box-title {
  font-family: var(--font-heading) !important;
}

.site-brand,
.site-menu a,
.btn,
.elementor-button,
.tappeti-eyebrow .elementor-heading-title,
.eyebrow {
  font-family: var(--font-body) !important;
}

.site-header {
  background: rgba(255, 250, 241, 0.93);
  border-bottom-color: rgba(223, 205, 181, 0.88);
}

.site-header.is-scrolled {
  background: rgba(255, 250, 241, 0.98);
}

.brand-mark,
.btn-primary,
.tappeti-btn-primary .elementor-button {
  background: linear-gradient(135deg, var(--color-walnut), var(--color-terracotta));
}

.site-menu a,
.brand-text,
.tappeti-section-title .elementor-heading-title,
.tappeti-service-box .elementor-icon-box-title,
.section-copy h2,
.section-heading h2 {
  color: var(--color-heading) !important;
}

.tappeti-eyebrow .elementor-heading-title,
.eyebrow.dark,
.tappeti-about .tappeti-eyebrow .elementor-heading-title,
.tappeti-services .tappeti-eyebrow .elementor-heading-title,
.tappeti-gallery .tappeti-eyebrow .elementor-heading-title,
.tappeti-map .tappeti-eyebrow .elementor-heading-title {
  color: var(--color-gold) !important;
}

.section-copy p,
.section-heading p,
.service-card p,
.footer-grid p,
.contact-list,
.check-list,
.tappeti-body-text,
.tappeti-section-subtitle,
.tappeti-service-box .elementor-icon-box-description {
  color: var(--color-muted) !important;
}

.tappeti-section-title .elementor-heading-title,
.section-copy h2,
.section-heading h2 {
  font-weight: 600 !important;
  letter-spacing: -0.018em !important;
  line-height: 1.05 !important;
}

.tappeti-service-box .elementor-icon,
.service-icon {
  color: var(--color-terracotta) !important;
  background: rgba(168, 95, 56, 0.12) !important;
}

.tappeti-check-list .elementor-icon-list-icon i,
.tappeti-contact-list .elementor-icon-list-icon i,
.check-list li::before,
.contact-list li::before {
  color: var(--color-gold) !important;
}

/* La nuova hero non usa più Image Carousel: è un widget custom con markup identico in editor e anteprima. */
.tappeti-hero-section.elementor-section,
body .elementor .tappeti-hero-section.elementor-section,
body .tappeti-hero-section.elementor-section {
  position: relative !important;
  padding: 0 !important;
  margin: 0 !important;
  background: var(--color-dark) !important;
  overflow: hidden !important;
}

.tappeti-hero-section.elementor-section > .elementor-container,
body .elementor .tappeti-hero-section.elementor-section > .elementor-container,
body .tappeti-hero-section.elementor-section > .elementor-container {
  width: 100% !important;
  max-width: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.tappeti-hero-section .elementor-column,
.tappeti-hero-section .elementor-widget-wrap,
.tappeti-hero-section .elementor-widget,
.tappeti-hero-section .elementor-widget-container {
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.tappeti-hero-widget {
  position: relative;
  width: 100%;
  min-height: calc(88vh - var(--header-height));
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  background: var(--color-dark);
}

.tappeti-hero-media,
.tappeti-hero-item,
.tappeti-hero-shade {
  position: absolute;
  inset: 0;
}

.tappeti-hero-media {
  z-index: 0;
  background: var(--color-dark);
}

.tappeti-hero-item {
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.055);
  transition: opacity 1.1s ease, transform 7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.tappeti-hero-item.is-active {
  opacity: 1;
  transform: scale(1);
}

.tappeti-hero-shade {
  z-index: 1;
  pointer-events: none;
  opacity: 0.56;
  background:
    linear-gradient(90deg, rgba(36, 24, 16, 0.96) 0%, rgba(36, 24, 16, 0.72) 42%, rgba(36, 24, 16, 0.32) 100%),
    linear-gradient(0deg, rgba(36, 24, 16, 0.62) 0%, rgba(36, 24, 16, 0) 34%);
}

.tappeti-hero-inner {
  position: relative;
  z-index: 2;
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
  padding: 118px 0;
}

.tappeti-hero-heading {
  max-width: 820px;
  margin: 0;
  color: #fffaf1;
  font-size: clamp(48px, 6.7vw, 88px);
  line-height: 0.98;
  font-weight: 600;
  letter-spacing: -0.028em;
  text-shadow: 0 22px 56px rgba(0, 0, 0, 0.34);
  opacity: 0;
  transform: translateY(22px);
  animation: tappetiHeroTextIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}

@keyframes tappetiHeroTextIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.elementor-editor-active .tappeti-hero-heading,
.elementor-editor-active .tappeti-hero-heading {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

/* Disattiva le vecchie forzature della hero-carousel quando non è più usata. */
.tappeti-hero-section .tappeti-hero-slider-widget.tappeti-hero-carousel,
.tappeti-hero-section .elementor-image-carousel-wrapper,
.tappeti-hero-section .swiper,
.tappeti-hero-section .swiper-wrapper,
.tappeti-hero-section .swiper-slide {
  height: auto !important;
  min-height: 0 !important;
}

.tappeti-gallery-box .elementor-image-box-title {
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
}

.tappeti-service-box .elementor-icon-box-title {
  font-size: 25px !important;
  font-weight: 600 !important;
  letter-spacing: -0.012em !important;
}

.tappeti-cta {
  background: linear-gradient(135deg, var(--color-walnut), var(--color-terracotta)) !important;
}

.site-footer {
  background: var(--color-dark) !important;
}

@media (max-width: 767px) {
  .tappeti-hero-widget {
    min-height: calc(82vh - var(--header-height));
  }

  .tappeti-hero-inner {
    width: min(100% - 28px, var(--container));
    padding: 88px 0 104px;
  }

  .tappeti-hero-heading {
    font-size: clamp(42px, 13vw, 62px);
    line-height: 1.02;
  }

  .tappeti-hero-shade {
    background: rgba(36, 24, 16, 0.62);
  }
}

/* Filterable Elementor gallery widget. */
.tappeti-filter-gallery {
  margin-top: 46px;
}

.tappeti-filter-gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 0 34px;
}

.tappeti-filter-button {
  appearance: none;
  border: 1px solid rgba(122, 78, 45, 0.22);
  background: rgba(255, 253, 248, 0.72);
  color: var(--color-walnut);
  border-radius: 999px;
  padding: 11px 18px;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.24s ease, background 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease, transform 0.24s ease;
}

.tappeti-filter-button:hover,
.tappeti-filter-button:focus-visible {
  color: #fffaf1;
  background: var(--color-terracotta);
  border-color: var(--color-terracotta);
  box-shadow: 0 12px 26px rgba(156, 84, 45, 0.22);
  transform: translateY(-2px);
  outline: none;
}

.tappeti-filter-button.is-active {
  color: #fffaf1;
  background: linear-gradient(135deg, var(--color-walnut), var(--color-terracotta));
  border-color: transparent;
  box-shadow: 0 14px 32px rgba(84, 52, 30, 0.22);
}

.tappeti-filter-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.tappeti-filter-gallery-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  margin: 0;
  border-radius: 26px;
  background: var(--color-dark);
  box-shadow: 0 18px 48px rgba(43, 33, 24, 0.12);
  isolation: isolate;
  transform: translateY(0);
  transition: transform 0.32s ease, box-shadow 0.32s ease, opacity 0.24s ease;
}

.tappeti-filter-gallery-card.is-filtered-out {
  display: none;
}

.tappeti-filter-gallery-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 26px 62px rgba(43, 33, 24, 0.20);
}

.tappeti-filter-gallery-image {
  display: block;
  width: 100%;
  padding-bottom: 72%;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.01);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s ease;
}

.tappeti-filter-gallery-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(36, 24, 16, 0.04) 22%, rgba(36, 24, 16, 0.88) 100%);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.tappeti-filter-gallery-card:hover .tappeti-filter-gallery-image {
  transform: scale(1.075);
  filter: saturate(1.07) contrast(1.03);
}

.tappeti-filter-gallery-caption {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  display: grid;
  gap: 8px;
  padding: 28px;
  color: #fffaf1;
}

.tappeti-filter-gallery-category {
  width: fit-content;
  border: 1px solid rgba(255, 250, 241, 0.30);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(255, 250, 241, 0.10);
  color: #f1d7ad;
  font-family: var(--font-body);
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.tappeti-filter-gallery-caption strong {
  color: inherit;
  font-family: var(--font-heading);
  font-size: clamp(27px, 3vw, 36px);
  line-height: 0.98;
  font-weight: 600;
  letter-spacing: -0.018em;
}

.tappeti-filter-gallery-caption span:last-child:not(.tappeti-filter-gallery-category) {
  max-width: 92%;
  color: rgba(255, 250, 241, 0.82);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  font-weight: 500;
}

.tappeti-filter-gallery-trigger {
  position: relative;
  display: block;
  color: inherit;
  text-decoration: none;
}

.tappeti-filter-gallery-trigger:focus-visible {
  outline: 2px solid rgba(241, 215, 173, 0.9);
  outline-offset: -6px;
}

html.tappeti-lightbox-open,
body.tappeti-lightbox-open {
  overflow: hidden;
}

.tappeti-minimal-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 30px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.tappeti-minimal-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.tappeti-minimal-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 12, 8, 0.82);
  backdrop-filter: blur(6px);
}

.tappeti-minimal-lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(96vw, 1180px);
  max-height: min(92vh, 980px);
  display: grid;
  gap: 14px;
}

.tappeti-minimal-lightbox__media-wrap {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
  background: rgba(255,255,255,0.02);
}

.tappeti-minimal-lightbox__image {
  display: block;
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  background: #130e0b;
}

.tappeti-minimal-lightbox__close {
  appearance: none;
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.94);
  color: var(--color-dark);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  transition: transform 0.2s ease, background 0.2s ease;
}

.tappeti-minimal-lightbox__close:hover,
.tappeti-minimal-lightbox__close:focus-visible {
  background: #ffffff;
  transform: scale(1.05);
  outline: none;
}


.tappeti-minimal-lightbox__nav {
  appearance: none;
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.92);
  color: var(--color-dark);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.20);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 40px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.tappeti-minimal-lightbox__nav--prev {
  left: -26px;
}

.tappeti-minimal-lightbox__nav--next {
  right: -26px;
}

.tappeti-minimal-lightbox__nav:hover,
.tappeti-minimal-lightbox__nav:focus-visible {
  background: #ffffff;
  transform: translateY(-50%) scale(1.05);
  outline: none;
}

.tappeti-minimal-lightbox__nav:disabled,
.tappeti-minimal-lightbox__nav[hidden] {
  display: none;
}

.tappeti-minimal-lightbox__meta {
  display: grid;
  gap: 4px;
  justify-items: center;
  text-align: center;
  color: #fffaf1;
}

.tappeti-minimal-lightbox__title {
  font-family: var(--font-heading);
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.05;
  font-weight: 600;
}

.tappeti-minimal-lightbox__description {
  max-width: 760px;
  color: rgba(255, 250, 241, 0.76);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
}

body.elementor-editor-active .tappeti-filter-gallery-card,
.elementor-editor-active .tappeti-filter-gallery-card {
  opacity: 1 !important;
  transform: none !important;
}

@media (max-width: 1024px) {
  .tappeti-filter-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .tappeti-filter-gallery {
    margin-top: 34px;
  }

  .tappeti-filter-gallery-filters {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 8px;
    margin-left: -2px;
    margin-right: -2px;
    padding: 0 2px 10px;
    scrollbar-width: thin;
  }

  .tappeti-filter-button {
    flex: 0 0 auto;
    padding: 10px 15px;
    font-size: 12px;
  }

  .tappeti-filter-gallery-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .tappeti-filter-gallery-caption {
    padding: 23px;
  }

  .tappeti-filter-gallery-caption strong {
    font-size: 30px;
  }
}


@media (max-width: 767px) {
  .tappeti-minimal-lightbox {
    padding: 18px;
  }

  .tappeti-minimal-lightbox__dialog {
    width: 100%;
    gap: 12px;
  }

  .tappeti-minimal-lightbox__close {
    top: -10px;
    right: -4px;
    width: 40px;
    height: 40px;
    font-size: 24px;
  }

  .tappeti-minimal-lightbox__image {
    max-height: 76vh;
  }

  .tappeti-minimal-lightbox__nav {
    width: 42px;
    height: 42px;
    font-size: 32px;
  }

  .tappeti-minimal-lightbox__nav--prev {
    left: 8px;
  }

  .tappeti-minimal-lightbox__nav--next {
    right: 8px;
  }
}




.footer-widget-grid {
  align-items: flex-start;
}

.footer-widget-area {
  min-width: 0;
}

.site-footer .widget,
.site-footer .wp-block-group,
.site-footer .wp-block-columns,
.site-footer .wp-block-column {
  margin: 0;
}

.site-footer .widget + .widget {
  margin-top: 24px;
}

.site-footer .widget-title,
.site-footer .wp-block-heading,
.site-footer h2,
.site-footer h3,
.site-footer h4 {
  margin: 0 0 16px;
  color: #fffaf1;
  font-family: var(--font-heading);
  line-height: 1.05;
  font-weight: 600;
}

.site-footer .widget-title,
.site-footer h4,
.site-footer .wp-block-heading {
  font-size: 24px;
}

.site-footer h3 {
  font-size: 31px;
}

.site-footer p,
.site-footer li,
.site-footer .textwidget,
.site-footer .wp-block-paragraph {
  color: rgba(255, 253, 248, 0.68);
  font-family: var(--font-body);
  line-height: 1.75;
}

.site-footer p {
  margin: 0 0 14px;
}

.site-footer p:last-child {
  margin-bottom: 0;
}

.site-footer ul,
.site-footer ol,
.site-footer .wp-block-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 9px;
}

.site-footer a {
  color: rgba(255, 253, 248, 0.78);
  text-decoration: none;
  transition: color 0.22s ease, opacity 0.22s ease;
}

.site-footer a:hover,
.site-footer a:focus {
  color: #f1d7ad;
}

.site-footer .wp-block-button__link {
  border-radius: 999px;
  background: var(--color-antique-gold);
  color: var(--color-dark);
  font-family: var(--font-body);
  font-weight: 800;
  padding: 12px 20px;
}

.footer-bottom-inner .widget,
.footer-bottom-inner p {
  margin: 0;
}

.footer-bottom-inner,
.footer-bottom-inner p,
.footer-bottom-inner li,
.footer-bottom-inner a {
  color: rgba(255, 253, 248, 0.68);
  font-size: 14px;
}

/* Elementor custom widget: Slider Servizi Tappeti */
.tappeti-services-slider-widget {
  --tappeti-services-slider-gap: 24px;
  --tappeti-services-slider-per-view: 4;
  --tappeti-services-slider-offset: 0px;
  --tappeti-services-slider-shadow-x: 20px;
  --tappeti-services-slider-shadow-top: 18px;
  --tappeti-services-slider-shadow-bottom: 34px;
  position: relative;
  width: 100%;
}

.tappeti-services-slider-viewport {
  box-sizing: border-box;
  width: 100%;
  overflow: hidden;
  padding: var(--tappeti-services-slider-shadow-top) var(--tappeti-services-slider-shadow-x) var(--tappeti-services-slider-shadow-bottom);
  margin: calc(var(--tappeti-services-slider-shadow-top) * -1) calc(var(--tappeti-services-slider-shadow-x) * -1) calc(var(--tappeti-services-slider-shadow-bottom) * -0.55);
}

.tappeti-services-slider-track {
  display: flex;
  align-items: stretch;
  gap: var(--tappeti-services-slider-gap);
  transform: translate3d(calc(var(--tappeti-services-slider-offset) * -1), 0, 0);
  transition: transform 0.36s var(--ease-soft, ease);
  will-change: transform;
}

.tappeti-services-slider-slide {
  box-sizing: border-box;
  min-width: calc((100% - (var(--tappeti-services-slider-gap) * (var(--tappeti-services-slider-per-view) - 1))) / var(--tappeti-services-slider-per-view));
  flex: 0 0 calc((100% - (var(--tappeti-services-slider-gap) * (var(--tappeti-services-slider-per-view) - 1))) / var(--tappeti-services-slider-per-view));
  height: auto;
}

.tappeti-services-slider-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  height: 100%;
  min-height: 250px;
  padding: 32px;
  color: inherit;
  text-align: center;
  text-decoration: none;
  background: var(--color-cream);
  border: 1px solid var(--color-sand);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 28px rgba(36, 24, 16, 0.08);
  transform: translateZ(0);
  backface-visibility: hidden;
  transition: transform 0.35s var(--ease-soft), box-shadow 0.35s ease, border-color 0.35s ease;
}

.tappeti-services-slider-card:hover,
.tappeti-services-slider-card:focus-visible {
  transform: translate3d(0, -6px, 0);
  box-shadow: 0 16px 34px rgba(36, 24, 16, 0.13);
  color: inherit;
  text-decoration: none;
}

.tappeti-services-slider-icon {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 0 0 18px;
  text-align: center;
}

.tappeti-services-slider-icon .elementor-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--e-global-color-primary, var(--color-terracotta));
  fill: var(--e-global-color-primary, var(--color-terracotta));
  background: rgba(168, 95, 56, 0.12);
  padding: 16px;
  border-radius: 16px;
  font-size: 30px;
  line-height: 1;
  transition: transform 0.35s var(--ease-soft), background 0.35s ease;
}

.tappeti-services-slider-icon .elementor-icon i,
.tappeti-services-slider-icon .elementor-icon svg {
  display: block;
  height: 1em;
  position: relative;
  width: 1em;
  color: currentColor;
  fill: currentColor;
}

.tappeti-services-slider-icon .elementor-icon svg,
.tappeti-services-slider-icon .elementor-icon svg path {
  fill: currentColor;
}

.tappeti-services-slider-card:hover .tappeti-services-slider-icon .elementor-icon,
.tappeti-services-slider-card:focus-visible .tappeti-services-slider-icon .elementor-icon {
  transform: rotate(-4deg) scale(1.08);
  background: rgba(168, 95, 56, 0.18);
}

.tappeti-services-slider-title {
  width: 100%;
  margin: 0;
  color: var(--color-heading, var(--color-dark));
  font-family: var(--font-heading);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.12;
  text-align: center;
}

.tappeti-services-slider-description {
  width: 100%;
  margin: 12px 0 0;
  color: var(--color-muted);
  font-size: 15px;
  line-height: 1.6;
  text-align: center;
}

.tappeti-services-slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
}

.tappeti-services-slider-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--color-sand);
  border-radius: 999px;
  background: #fff;
  color: var(--color-dark);
  box-shadow: 0 8px 20px rgba(43, 33, 24, 0.08);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.tappeti-services-slider-arrow:hover,
.tappeti-services-slider-arrow:focus-visible {
  transform: translateY(-2px);
  background: var(--color-cream);
}

.tappeti-services-slider-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

.tappeti-services-slider-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.tappeti-services-slider-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--color-dark);
  opacity: 0.28;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.tappeti-services-slider-dot.is-active {
  opacity: 1;
  transform: scale(1.22);
}

@media (max-width: 767px) {
  .tappeti-services-slider-widget {
    --tappeti-services-slider-gap: 16px;
    --tappeti-services-slider-shadow-x: 14px;
    --tappeti-services-slider-shadow-top: 16px;
    --tappeti-services-slider-shadow-bottom: 30px;
  }

  .tappeti-services-slider-controls {
    margin-top: 18px;
  }
}
