:root {
  /* Primary corporate color*/
  --primary: #f0592a;
  --primary-hover: #e14e1f;

  /* Backgrounds*/
  --background: #fbf8f4;
  --surface: #ffffff;

  /* Lighter orange*/
  --primary-light: #ff8a3d;

  /* Dark orange-brown for headings*/
  --secondary: #7a3d33;

  /* Text */
  --text: #2f2f2f;
  --text-light: #666666;

  /* Borders */
  --border: #e8ddd4;

  /* Radii*/
  --radius: 18px;
  --radius-lg: 28px;

  /* Shadows */
  --shadow: 0 15px 40px rgba(0, 0, 0, 0.08);

  --transition: 0.3s ease;
}

/* Buttons */
.btn-main {
  background: var(--primary);
}

/* Accent word */
.hero__title span {
  color: var(--primary);
}

/* Icons*/
.service-icon,
.stats-icon {
  color: var(--primary);
}

/* Hover */
a:hover {
  color: var(--primary);
}

body {
  font-family: "Inter", sans-serif;

  color: var(--text);

  background: var(--background);
}

h1,
h2,
h3,
h4 {
  font-family: "Playfair Display", serif;
}

section {
  padding: 90px 0;
}

/*=================================
HEADER STICKY
=================================*/

.header {
  position: relative;
  z-index: 9999;
  transition: 0.35s;
}

.header.sticky {
  position: fixed;

  top: 0;

  left: 0;

  width: 100%;

  padding: 2px 0;

  backdrop-filter: blur(14px);

  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.05);
}

.header.sticky .nav-link {
  color: #2f2f2f;
  text-shadow:
    0 0 2px #fff,
    0 0 4px #fff,
    0 0 8px rgba(255, 255, 255, 1);
}

.header.sticky .navbar {
  min-height: 56px;
  padding: 0;
  align-items: center;
}

.header.sticky img {
  height: 72px;
}

.navbar-brand {
  height: 50px;
}

.header.sticky .navbar-nav {
  align-items: center;
}

.header.sticky .navbar-collapse {
  align-items: center;
}

.header.sticky .navbar-brand {
  padding: 0;
}

.hero {
  background: url("../img/hero-bg.jpg");

  background-size: cover;
  background-position: center;
  padding: 70px 0;
}

.hero-content h1 {
  font-size: 40px;

  line-height: 1.1;

  font-weight: 700;

  color: var(--secondary);

  margin-bottom: 30px;

  opacity: 0;

  animation: heroAppear 0.8s ease forwards;
}

.hero-content h1 span {
  color: var(--primary);
}

.hero-content p {
  font-size: 16px;

  color: var(--gray);

  line-height: 1.8;

  margin-bottom: 40px;

  max-width: 500px;

  opacity: 0;

  animation: heroAppear 0.8s ease forwards;

  animation-delay: 0.25s;

  text-shadow:
    0 0 2px #fff,
    0 0 5px #fff,
    0 0 10px #fff,
    0 0 18px rgba(255, 255, 255, 1),
    0 0 25px rgba(255, 255, 255, 0.9);
}

.hero-buttons {
  display: flex;

  gap: 20px;

  flex-wrap: wrap;

  opacity: 0;

  animation: heroAppear 0.8s ease forwards;

  animation-delay: 0.5s;
}

@keyframes heroAppear {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.btn-primary {
  background: var(--primary);

  border: 2px solid var(--primary);

  border-radius: 50px;

  padding: 2px 30px;

  transition: 0.3s;
}

.btn-primary:hover {
  background: var(--primary-dark);

  color: var(--primary);
}

.btn-outline-primary {
  border: 2px solid var(--secondary);

  color: var(--secondary);

  border-radius: 50px;

  padding: 2px 30px;
}

.btn-outline-primary:hover {
  background: var(--primary);

  color: #fff;
}

.hero-image {
  text-align: right;
}

.hero-image img {
  width: 100%;

  border-radius: 25px;

  box-shadow: var(--shadow);
}

.navbar-brand img {
  height: 72px;
}

.nav-link {
  font-weight: 500;
  font-size: 15px;
  margin-left: 18px;
  color: var(--primary-dark);
}

.nav-link:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;

  color: #ffd9ba;
}

.stats {
  padding: 45px 0;
}

.stat-card {
  background: #fff;
  padding: 25px 20px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  height: 100%;
}

.row {
  row-gap: 20px;
}

.stat-card__header {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.stat-icon {
  /* width: clamp(30px, 4vw, 56px);
    height: clamp(30px, 4vw, 56px); */
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;

  background: #fff3eb;
  color: var(--primary);

  border-radius: 50%;

  font-size: clamp(14px, 2.5vw, 24px);

  flex-shrink: 0;
}

.stat-card__content {
  flex: 1;
}

.stat-card__number {
  /* font-size: clamp(18px, 2.5vw, 42px); */
  font-size: 38px;
  font-weight: 700;
  line-height: 1;
  color: var(--secondary);

  margin-bottom: 10px;
}

.stat-card__title {
  margin: 0 0 8px;
  margin-bottom: 5px;
  font-size: clamp(12px, 2.5vw, 22px);
}

.stat-card__text {
  font-size: clamp(12px, 2.5vw, 16px);
  margin: 0;
  margin-bottom: 0;
  color: var(--text-light);
}

.stat-card__link {
  display: inline-block;

  margin-top: 8px;

  color: var(--primary);

  font-size: 14px;

  font-weight: 600;

  text-decoration: none;

  transition: var(--transition);
}

.stat-card__link:hover {
  color: var(--primary-dark);
}

.services {
  padding: 10px 0;

  background: #fff;
}

.section-heading {
  max-width: 700px;

  margin: 0 auto 60px;
}

.section-subtitle {
  display: inline-block;

  color: var(--primary);

  font-weight: 600;

  text-transform: uppercase;

  letter-spacing: 0.08em;

  margin-bottom: 15px;
}

.section-title {
  margin-bottom: 20px;
}

h1,
h2,
h3,
.section-title {
  color: var(--secondary);
}

.section-content h2 {
  font-family: Georgia, serif;

  font-size: 34px;

  color: #7b2830;

  margin-bottom: 20px;

  position: relative;
}

.section-content h2:after {
  content: "";

  display: block;

  width: 45px;

  height: 2px;

  background: var(--primary);

  margin-top: 12px;

  margin: 12px auto 0;
}

.section-description {
  color: var(--text-light);
}

.service-card {
  position: relative;

  overflow: visible;

  background: #fff;

  border-radius: 24px;

  box-shadow: var(--shadow);

  transition: 0.35s;

  z-index: 2;

  display: flex;

  flex-direction: column;

  width: 200px;

  height: 480px;

  min-width: 0;
}

.service-card::before {
  content: "";

  position: absolute;

  left: 0;
  top: 0;

  width: 100%;

  height: 40%;

  border-radius: 24px 24px 0 0;
}

.service-card__icon {
  position: absolute;

  left: -15px;

  top: calc(0% - 28px);

  width: 56px;

  height: 56px;

  background: #fff;

  border-radius: 50%;

  display: flex;

  align-items: center;

  justify-content: center;

  color: var(--primary);

  font-size: 24px;

  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);

  z-index: 5;
}

.service-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;

  min-height: 150px;
}

.service-card__image {
  height: 200px;
  overflow: hidden;
  border-radius: 24px 24px 0 0;
}

.service-card:hover {
  transform: translateY(-8px);

  box-shadow: var(--shadow);
}

.service-card__icon {
  width: 70px;

  height: 70px;

  border-radius: 50%;

  background: #fff3eb;

  display: flex;

  align-items: center;

  justify-content: center;

  color: var(--primary);

  font-size: 28px;

  margin-bottom: 25px;
}

.service-card__title {
  margin-top: 10px;

  margin-bottom: 18px;

  flex-grow: 1;

  overflow-wrap: break-word;
  word-wrap: break-word;

  font-size: 24px;
  text-align: center;
}

.service-card__text {
  color: var(--text-light);

  margin-bottom: 25px;
  margin-left: 8px;

  flex-grow: 1;

  overflow-wrap: break-word;
  word-wrap: break-word;
}

.service-card__link {
  margin-top: auto;
  align-self: center;

  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.service-card__link:hover {
  color: var(--primary-hover);
}

.services-grid {
  grid-template-columns: repeat(5, 1fr);

  gap: 20px;

  align-items: stretch;

  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.service-col {
  display: flex;
}

@media (max-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   LE NOSTRE STRUTTURE
========================= */

.structures {
  padding: 90px 0;

  background: #faf7f2;
}

.structures-grid {
  display: grid;

  grid-template-columns: 500px 1fr;

  gap: 60px;

  align-items: center;
}

/* LEFT */

.structures-content h2 {
  font-family: Georgia, serif;

  font-size: 34px;

  color: #7b2830;

  margin-bottom: 20px;

  position: relative;
}

.structures-content h2:after {
  content: "";

  display: block;

  width: 45px;

  height: 2px;

  background: var(--primary);

  margin-top: 12px;
}

.structures-content p {
  font-size: 16px;

  line-height: 1.5;

  color: #444;

  margin-bottom: 25px;
}

.structures-list {
  list-style: none;

  padding: 0;

  margin: 30px 0;

  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 14px 30px;
}

.structures-list li {
  margin: 0;
}

.structures-list a {
  display: flex;

  align-items: center;

  gap: 8px;

  text-decoration: none;

  color: var(--text);

  font-size: 14px;

  transition: 0.25s;
}

.structures-list i {
  color: var(--primary);

  font-size: 13px;

  width: 16px;

  text-align: center;

  flex-shrink: 0;
}

.structures-list a:hover {
  color: var(--primary);

  transform: translateX(4px);
}

@media (max-width: 768px) {
  .structures-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .structures-list {
    grid-template-columns: 1fr;
  }
}

/* =========================
   STRUCTURES PAGE
========================= */

.page-template-page-strutture .page-content {
  padding: 60px 0;
}

.page-template-page-strutture section {
  padding: 0;
}

/* =========================
   STRUCTURE GROUPS
========================= */

.structures-group {
  margin-bottom: 30px;
  height: auto;
}

.structures-group h2 {
  font-family: "Playfair Display", serif;

  color: var(--secondary);

  font-size: 32px;

  text-align: center;

  margin-top: 15px;

  margin-bottom: 20px;
}

.structures-group h2:after {
  content: "";

  display: block;

  width: 45px;

  height: 2px;

  background: var(--primary);

  margin: 12px auto 0;
}

.structures-grid {
  display: grid;

  grid-template-columns: repeat(400px, 1fr);

  gap: 22px;

  align-items: stretch;
}

.structures-card-grid {
  align-items: stretch;

  display: flex;

  flex-wrap: wrap;

  justify-content: center;

  gap: 22px;
}

/* =========================
   STRUCTURE CARDS
========================= */

.structure-card:hover {
  transform: translateY(-6px);
}

.structure-card__image {
  height: 180px;

  overflow: hidden;

  display: flex;

  justify-content: center;

  align-items: center;
}

.structure-card__image img {
  width: 50%;

  height: 80%;

  object-fit: cover;

  min-height: 100px;
}

.structure-card {
  position: relative;

  background: #fff;

  border-radius: 24px;

  overflow: hidden;

  box-shadow: var(--shadow);

  transition: 0.35s;

  width: 260px;

  text-align: center;
}

.structure-card__territory {
  margin-top: 8px;
  margin-bottom: 4px;

  font-size: 0.9rem;
  font-weight: 600;

  color: var(--secondary);

  text-align: center;

  line-height: 1;
}

.structure-card__link {
  display: flex;

  flex-direction: column;

  height: 100%;

  align-items: center;
  text-decoration: none;
}

.structure-card__content {
  padding: 8px;

  display: flex;

  flex-direction: column;

  min-height: 200px;

  height: auto;

  overflow: visible;
}

.structures-group .structure-card__content h3 {
  color: var(--secondary);
}

.service-structures .structure-card__content h3 {
  color: var(--secondary);
}

.structures-group .structure-card__content p {
  color: var(--text-light);
}

.service-structures .structure-card__content p {
  color: var(--text-light);
}

.structure-card h3 {
  font-size: 20px;

  margin-bottom: 8px;
}

.structure-card p {
  font-size: 14px;

  line-height: 1.45;

  margin-bottom: 10px;

  display: -webkit-box;

  -webkit-line-clamp: 2;

  line-clamp: 2;

  -webkit-box-orient: vertical;

  overflow: hidden;
}

.structure-card__more {
  margin-top: auto;

  font-size: 14px;

  font-weight: 600;
  color: var(--primary);
}

@media (max-width: 992px) {
  .structures-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .structures-card-grid {
    grid-template-columns: 1fr;
  }
}

.structures-group {
  margin-bottom: 30px;
}

.structures-group h2 {
  margin-top: 15px;

  margin-bottom: 20px;
}

/* MAP */

.structures-map {
  position: relative;

  height: 320px;

  overflow: hidden;

  border-radius: 20px;
}

.structures-map:after {
  content: "";

  position: absolute;

  inset: 0;

  pointer-events: none;

  z-index: 500;

  background: linear-gradient(
    90deg,
    rgba(199, 177, 132, 0.45) 10%,
    rgba(199, 177, 132, 0.2) 65%,
    rgba(199, 177, 132, 0) 90%
  );
}

.structures-map img {
  width: 100%;

  height: 100%;

  object-fit: cover;
}

.structures-map,
.structures-content {
  flex: 1;

  min-width: 0;
}

#structures-map {
  width: 100%;

  height: 450px;
}

/* =========================
   STRUCTURES SUBMENU
========================= */

.structures-submenu {
  position: sticky;

  top: 80px;

  z-index: 900;

  background: #fff;

  border-bottom: 1px solid #eee;
}

.structures-submenu__inner {
  min-height: 55px;

  display: flex;

  align-items: center;

  gap: 25px;
}

.structures-submenu__title {
  font-weight: 600;

  color: var(--secondary);

  white-space: nowrap;
}

.structures-submenu__nav {
  display: flex;

  gap: 25px;
}

.structure-dropdown {
  position: relative;
}

.structure-dropdown > a {
  text-decoration: none;

  color: var(--text);

  font-size: 14px;

  white-space: nowrap;
}

.structure-dropdown i {
  font-size: 11px;

  margin-left: 5px;
}

/* dropdown */

.structure-dropdown ul {
  position: absolute;

  top: 100%;

  left: 0;

  min-width: 230px;

  background: #fff;

  padding: 10px 0;

  margin: 10px 0 0;

  list-style: none;

  box-shadow: var(--shadow);

  border-radius: 12px;

  opacity: 0;

  visibility: hidden;

  transform: translateY(10px);

  transition: 0.25s;
}

.structure-dropdown:hover ul {
  opacity: 1;

  visibility: visible;

  transform: translateY(0);
}

.structure-dropdown li a {
  display: block;

  padding: 8px 16px;

  text-decoration: none;

  color: var(--text);
}

.structure-dropdown li a:hover {
  background: #faf7f2;
}

.structure-dropdown li.active a {
  color: var(--primary);

  font-weight: 600;
}

/* =========================
   STRUCTURES NAVIGATION
========================= */

.structures-navigation {
  padding: 0;

  position: sticky;

  top: 50px;

  z-index: 900;

  background: #fff;

  border-bottom: 1px solid #eee;

}

.structures-navigation > .container {
  width: 100%;
}

.structures-menu {
  display: flex;

  align-items: center;

  gap: 25px;

  min-height: 45px;

  justify-content: center;

 
}

.structures-navigation__title {
  font-size: 14px;

  font-weight: 600;

  color: var(--secondary);

  line-height: 1;

  white-space: nowrap;
}

.structure-menu-group {
  position: relative;

  height: 45px;

  display: flex;

  align-items: center;
}

.structure-menu-toggle {
  background: none;

  border: 0;

  font-size: 14px;

  cursor: pointer;

  color: var(--text);

  padding: 8px 0;

  line-height: 1;
}

.structure-menu-toggle i {
  margin-left: 5px;

  font-size: 11px;
}

.structure-menu-dropdown {
  position: absolute;

  top: 35px;

  left: 0;

  min-width: 240px;

  background: #fff;

  padding: 10px 0;

  margin: 0;

  list-style: none;

  border-radius: 14px;

  box-shadow: var(--shadow);

  opacity: 0;

  visibility: hidden;

  transform: translateY(10px);

  transition: 0.25s;
}

.structure-menu-group:hover .structure-menu-dropdown {
  opacity: 1;

  visibility: visible;

  transform: translateY(0);
}

.structure-menu-dropdown a {
  display: block;

  padding: 8px 16px;

  color: var(--text);

  text-decoration: none;

  font-size: 14px;
}

.structure-menu-dropdown a:hover {
  background: #faf7f2;
}

.structure-menu-dropdown .active a {
  color: var(--primary);

  font-weight: 600;
}

/* INFO BLOCK */

.map-box {
  position: absolute;

  left: 0;

  bottom: 0;

  z-index: 1000;

  background: #7b2830;

  color: white;

  width: clamp(200px, 22vw, 310px);

  padding: clamp(8px, 2vw, 28px);

  display: flex;

  gap: clamp(12px, 1.5vw, 20px);

  align-items: center;

  clip-path: polygon(0 0, 85% 0, 100% 50%, 85% 100%, 0 100%);
}

.map-box i {
  font-size: clamp(20px, 1.1vw, 34px);
}

.map-box strong {
  font-size: clamp(11px, 1.1vw, 15px);

  line-height: 1.3;
}

.map-box p {
  font-size: clamp(10px, 1vw, 13px);

  line-height: 1.4;

  margin: 10px 0 0;

  color: white;
}

.sicomoro-marker {
  background: none !important;

  border: none !important;

  z-index: 800;
}

.sicomoro-marker i.fa-location-dot {
  color: var(--primary) !important;

  font-size: 24px;

  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.25));
}

.sicomoro-marker i:hover {
  transform: scale(1.15);
}

.testimonials {
  padding: 10px 0;
  background: #faf7f2;
}

.testimonial-card {
  background: #fff;

  border-radius: 18px;

  padding: 20px 25px;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);

  text-align: center;

  height: 100%;

  display: flex;

  flex-direction: column;
}

.testimonial-stars {
  color: #f4b400;

  font-size: 16px;

  letter-spacing: 2px;

  margin-bottom: 5px;
}

.testimonial-text {
  font-size: 15px;

  line-height: 1.5;

  font-style: italic;

  color: var(--text);

  margin-bottom: 15px;

  display: -webkit-box;

  -webkit-box-orient: vertical;

  -webkit-line-clamp: 4;

  line-clamp: 4;

  overflow: hidden;
}

.testimonial-author h4 {
  margin: 0;
  font-size: 16px;
  color: var(--primary);
}

.testimonial-author span {
  font-size: 13px;
  color: #777;
}

.testimonials-slider .swiper-wrapper {
  align-items: stretch;
}

.testimonials-slider .swiper-slide {
  height: auto;
  display: flex;
}

/* TESTIMONIANZE - swiper dots */

.testimonials-slider .swiper-pagination-bullet {
  background: var(--primary-light);

  opacity: 0.5;
}

.testimonials-slider .swiper-pagination-bullet-active {
  background: var(--primary);

  opacity: 1;
}
.testimonials-slider .swiper-pagination {
    transform: translateY(8px);
}

/* ==============================
   HOME SOSTIENI
============================== */

.home-sostieni {
  padding: 80px 0;
}

.home-sostieni__inner {
  display: flex;

  align-items: center;

  gap: 60px;
}

.home-sostieni__image,
.home-sostieni__content {
  flex: 1;

  min-width: 0;
}

.home-sostieni__image {
  flex: 1;

  overflow: hidden;

  border-radius: 24px;
}

.home-sostieni__image img {
  width: 100%;

  height: 100%;

  display: block;

  object-fit: cover;

  /* 	height:360px; */

  object-position: center top;
}

.home-sostieni__content {
  flex: 1;
}

.home-sostieni__content h2 {
  margin-bottom: 20px;
}

.home-sostieni__content p {
  margin-bottom: 30px;

  line-height: 1.7;
}

/* Mobile */

@media (max-width: 768px) {
  .home-sostieni__inner {
    flex-direction: column;

    gap: 35px;
  }

  .home-sostieni__image,
  .home-sostieni__content {
    width: 100%;
  }
}

/* ==============================
   SOSTIENI - PAGINE INTERNE
============================== */

.page-sostieni-child {
  background: var(--background);
}

.sostieni-child-content {
  max-width: 850px;

  margin: 0 auto;
}

/* ritorno alla pagina principale */

.sostieni-back {
  display: inline-block;

  margin-bottom: 30px;

  color: var(--primary);

  text-decoration: none;

  font-weight: 600;

  transition: 0.3s;
}

.sostieni-back:hover {
  color: var(--primary-hover);
}

/* titoli */

.sostieni-child-content h1 {
  margin-bottom: 35px;
}

.sostieni-child-content h2 {
  margin-top: 45px;

  margin-bottom: 20px;

  color: var(--primary);
}

/* paragrafi */

.sostieni-child-content p {
  line-height: 1.7;

  margin-bottom: 20px;
}

/* liste */

.sostieni-child-content ul {
  margin-bottom: 30px;

  padding-left: 25px;
}

.sostieni-child-content li {
  margin-bottom: 12px;

  line-height: 1.6;
}

/* codice fiscale */

.sostieni-child-content .wp-block-group {
  background: #fff;

  border-radius: 20px;

  padding: 30px;

  margin: 30px 0;

  text-align: center;

  box-shadow: var(--shadow);
}

.sostieni-child-content .wp-block-group p:first-child {
  font-size: 18px;

  font-weight: 600;

  margin-bottom: 10px;
}

.sostieni-child-content .wp-block-group p:last-child {
  font-size: 34px;

  font-weight: 700;

  color: var(--primary);

  letter-spacing: 2px;
}

/* mobile */

@media (max-width: 768px) {
  .sostieni-child-content {
    max-width: 100%;
  }

  .sostieni-child-content .wp-block-group p:last-child {
    font-size: 26px;
  }
}

.sostieni-child-content h2:after {
  content: "";

  display: block;

  width: 45px;

  height: 2px;

  background: var(--primary);

  margin-top: 12px;

  margin-left: 0;

  margin-right: auto;
}

.sostieni-child-content h2 {
  text-align: left;
}

/* ==============================
   SOSTIENI - BUTTONS
============================== */

.sostieni-child-content .wp-block-button__link {
  background: var(--primary);

  color: #fff;

  border-radius: 50px;

  padding: 16px 32px;

  font-weight: 600;

  text-decoration: none;

  transition: 0.3s;
}

.sostieni-child-content .wp-block-button__link:hover {
  background: var(--primary-hover);

  color: #fff;
}

.sostieni-child-content .wp-block-button {
  margin: 30px 0;
}

/* ==============================
   CODICE FISCALE BOX
============================== */

.codice-fiscale-box {
  display: inline-block;

  padding: 15px 30px;

  background: var(--background);

  border-radius: 18px;

  font-size: 24px;

  font-weight: 700;

  letter-spacing: 2px;

  color: var(--primary);

  margin: 15px 0 30px;
}

/* ==============================
   BONIFICO DONAZIONE
============================== */

.bonifico-donazione-box {
  background: #fff;

  border-radius: 24px;

  padding: 30px;

  margin: 30px 0;

  box-shadow: var(--shadow);
}

.bonifico-donazione-box h3 {
  color: var(--primary);

  margin-bottom: 20px;
}

.bonifico-donazione-box p {
  margin-bottom: 15px;
}

/* =========================
   NEWS PROJECTS
========================= */

.news-projects {
  padding: 40px 0;
  background: var(--background);
}

.news-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 30px;

  align-items: stretch;

  min-height: 335px;
}

.news-projects-grid {
  display: grid;

  grid-template-columns: 3fr 2fr;

  gap: 40px;

  align-items: start;
}

.news-column .news-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 20px;
}

.news-card {
  background: #fff;

  border-radius: 24px;

  overflow: hidden;

  box-shadow: var(--shadow);

  display: flex;

  flex-direction: column;

  min-height: 100%;
}

.news-card__image {
  aspect-ratio: 16 / 9;

  overflow: hidden;
}

.news-card__image img {
  width: 100%;

  height: 100%;

  object-fit: cover;

  transition: 0.35s;

  display: block;

  object-position: center top;
}

.news-card:hover img {
  transform: scale(1.05);
}

.news-card__content {
  padding: 16px 12px;

  display: flex;

  flex-direction: column;

  flex-grow: 1;
}

.news-card__date {
  font-size: 14px;

  color: var(--primary);

  margin-bottom: 12px;
}

.news-card h3 {
  font-size: 18px;
  margin: 0 0 12px;
}

.news-card h3 a {
  color: var(--secondary);

  text-decoration: none;
}

.news-card p {
  color: var(--text-light);

  line-height: 1.5;

  display: -webkit-box;

  -webkit-line-clamp: 2;

  line-clamp: 2;

  -webkit-box-orient: vertical;

  overflow: hidden;

  margin-bottom: 20px;
  font-size: 14px;
}

.news-card__link {
  margin-top: auto;
  align-self: flex-end;

  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.news-card__link:hover {
  color: var(--primary-hover);
}

.news-more {
  text-align: center;

  margin-top: 40px;
}

.news-more a {
  display: inline-block;

  padding: 12px 30px;

  border-radius: 50px;

  background: var(--primary);

  color: #fff;

  text-decoration: none;

  font-weight: 600;
}

.news-more a:hover {
  background: var(--primary-hover);
}

.news-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 30px;
  align-items: baseline;
}

.news-header h2 {
  margin: 0;
  margin-bottom: 0;
  position: relative;
  padding-bottom: 15px;
  line-height: 1;
}

.news-header h2:after {
  content: "";
  display: block;
  width: 45px;
  height: 2px;
  background: var(--primary);
  position: absolute;
  left: 0;
  bottom: 0;
}

.news-header-link {
  display: inline-flex;
  align-items: center;

  border-radius: 50px;

  text-decoration: none;

  font-weight: 600;

  white-space: nowrap;

  margin: 0;
  transform: translateY(2px);

  border: 2px solid var(--secondary);

  color: var(--secondary);

  padding: 2px 22px;
}

.news-header-link:hover {
  background: var(--primary);

  color: #fff;
}

.news-more-top {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.news-more-top:hover {
  color: var(--primary-hover);
}

/*--------------------------------------------------------------
# News pagination
--------------------------------------------------------------*/

.pagination {
  display: flex;

  justify-content: center;

  align-items: center;

  gap: 10px;

  margin-top: 50px;
}

.pagination a,
.pagination span {
  width: 42px;

  height: 42px;

  display: flex;

  align-items: center;

  justify-content: center;

  border-radius: 50%;

  background: #fff;

  color: var(--text);

  text-decoration: none;

  box-shadow: var(--shadow);

  transition: 0.3s;
}

.pagination a:hover {
  background: var(--primary);

  color: #fff;
}

.pagination .current {
  background: var(--primary);

  color: #fff;
}

/* ===============================
   SINGLE NEWS
================================ */

.single-news {
  padding: 80px 0;

  background: var(--background);
}

.single-news__header {
  max-width: 900px;

  margin: 0 auto 40px;

  text-align: center;
}

.single-news__header h1 {
  font-size: 42px;

  line-height: 1.2;

  color: var(--secondary);

  margin-bottom: 15px;
}

.single-news__date {
  color: var(--gray);

  font-size: 15px;
}

.single-news__card {
  max-width: 1000px;

  margin: 0 auto;

  position: relative;

  background: #fff;

  border-radius: 28px;

  overflow: hidden;

  box-shadow: var(--shadow);
}

.single-news__thumb {
  width: 100%;

  height: 420px;
}

.single-news__thumb img {
  width: 100%;

  height: 100%;

  object-fit: cover;

  display: block;
}

/* CONTENT */

.single-news__content {
  position: relative;

  margin-top: -120px;

  margin-left: 40px;

  margin-right: 40px;

  background: #fff;

  border-radius: 24px;

  padding: 35px;

  font-size: 18px;

  line-height: 1.7;

  box-shadow: var(--shadow);
}

.single-news__content p {
  margin-bottom: 20px;
}

.single-news__content h2,
.single-news__content h3 {
  color: var(--secondary);

  margin-top: 35px;
}

.single-news__card.has-image .single-news__thumb {
  width: 100%;

  height: 420px;
}

.single-news__card.has-image .single-news__thumb img {
  width: 100%;

  height: 100%;

  object-fit: cover;

  display: block;

  object-position: center top;
}

.single-news__card.has-image .single-news__content {
  position: relative;

  margin: -120px 40px 40px;

  background: #fff;

  border-radius: 24px;

  padding: 35px;

  box-shadow: var(--shadow);
}

.single-news__card.no-image .single-news__content {
  padding: 45px;

  margin: 0;

  background: #fff;

  border-radius: 28px;
}

.news-back-link {
  display: block;

  max-width: 900px;

  margin: 30px auto 0;

  color: var(--primary);

  text-decoration: none;
}

/* ===== PROJECTS ===== */

.projects-promo {
  background: #fff;

  box-shadow: var(--shadow);

  border-radius: 32px;

  padding: 25px;

  overflow: hidden;

  display: flex;

  flex-direction: column;

  height: 100%;
}

.projects-promo__top {
  background: #fbf8f4;

  border-radius: 24px;

  padding: 51px 45px;

  display: flex;

  gap: 18px;
}

.projects-icon {
  width: 54px;

  height: 54px;

  flex-shrink: 0;

  display: flex;

  align-items: center;

  justify-content: center;

  color: var(--primary);

  font-size: 48px;
}

.projects-promo h3 {
  margin: 0 0 10px;

  color: var(--secondary);

  font-size: 22px;
}

.projects-promo p {
  margin: 0;

  color: var(--text-light);

  line-height: 1.5;

  font-size: 14px;
}

.projects-link {
  align-self: flex-start;

  margin: 0 24px 24px;

  border-radius: 50px;

  text-decoration: none;

  font-weight: 600;

  transition: 0.3s;

  border: 2px solid var(--secondary);

  color: var(--secondary);

  padding: 2px 22px;
}

.projects-link:hover {
  background: var(--primary);

  color: #fff;
}

.projects-link i {
  margin-left: 8px;
}

/* ==========================
   PARTNER LOGOS
========================== */

.projects-logos {
  position: relative;

  overflow: hidden;

  width: 100%;

  margin-top: 30px;

  min-width: 0;
}

/* smooth disappearance*/

.projects-logos:before,
.projects-logos:after {
  content: "";

  position: absolute;

  top: 0;

  width: 70px;

  height: 100%;

  z-index: 2;

  pointer-events: none;
}

.projects-logos:before {
  left: 0;

  background: linear-gradient(to right, #fff, transparent);
}

.projects-logos:after {
  right: 0;

  background: linear-gradient(to left, #fff, transparent);
}

/* the tape itself */

.projects-logos__track {
  animation: partners-marquee 50s linear infinite;

  transition: transform 0.3s ease;

  display: flex;

  flex-direction: row;

  flex-shrink: 0;

  align-items: center;

  width: max-content;
}

.projects-logos__group {
  display: flex;

  flex-direction: row;

  align-items: center;

  flex-shrink: 0;

  width: max-content;
}

/* pause */

.projects-logos:hover .projects-logos__track {
  animation-play-state: paused;
}

.projects-pagination {
  display: flex;

  justify-content: center;

  align-items: center;

  gap: 10px;

  margin-top: 50px;
}

.projects-pagination a,
.projects-pagination span {
  width: 42px;

  height: 42px;

  display: flex;

  justify-content: center;

  align-items: center;

  border-radius: 50%;

  background: #fff;

  color: var(--text);

  text-decoration: none;

  box-shadow: var(--shadow);

  transition: 0.3s;
}

.projects-pagination a:hover {
  background: var(--primary);

  color: #fff;
}

.projects-pagination .current {
  background: var(--primary);

  color: #fff;
}

@keyframes partners-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* logo card*/

.partner-logo {
  flex: 0 0 auto;

  display: flex;

  justify-content: center;

  align-items: center;

  padding: 0 25px;
}

/* image */

.partner-logo img {
  display: block;

  max-height: 55px;

  width: auto;

  filter: none;

  opacity: 0.75;

  transition: 0.3s ease;

  height: auto;

  object-fit: contain;
}

.partner-logo:hover img {
  filter: none;

  opacity: 1;
}

.partner-logo a {
  display: flex;

  align-items: center;

  justify-content: center;
}

@media (max-width: 768px) {
  .partner-logo img {
    max-height: 90px;
  }

  .partner-logo {
    padding: 0 25px;
  }
}

/* movement*/

@keyframes partners-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.projects-column {
  padding: 25px;

  min-width: 0;
}

.projects-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 30px;

  align-items: start;
}

.project-card {
  background: #fff;

  border-radius: 24px;

  overflow: hidden;

  box-shadow: var(--shadow);

  display: flex;

  flex-direction: column;

  height: 100%;
}

.project-card__image {
  position: relative;

  flex: 1;

  min-height: 220px;

  overflow: hidden;
}

.project-card__image img {
  width: 100%;

  height: 100%;

  object-fit: cover;

  object-position: center center;

  display: block;
}

.project-card__status {
  position: absolute;

  top: 15px;

  right: 15px;

  background: rgba(0, 0, 0, 0.75);

  color: #fff;

  padding: 6px 12px;

  border-radius: 20px;

  font-size: 13px;

  font-weight: 600;
}

.project-card__button {
  display: inline-block;

  width: auto;

  align-self: flex-end;

  background: var(--primary);

  color: #fff;

  border-radius: 50px;

  text-decoration: none;

  transition: 0.3s;

  border: 2px solid var(--primary);

  padding: 2px 30px;
  margin-top: auto;
  margin-bottom: 15px;
  margin-right: 5px;
}

.project-card__button:hover {
  background: var(--background);

  color: var(--primary);
}

.project-card__button-image {
  position: absolute;

  right: 20px;

  bottom: 20px;
}

.project-card__content {
  padding: 20px;

  display: flex;

  flex-direction: column;
}

.project-card__content h3 {
  margin-bottom: 15px;
}

.project-card__content p {
  margin-bottom: 0;
}

.project-card__button--text {
  display: inline-block;

  margin: 25px;
}

.project-card__text {
  display: -webkit-box;

  -webkit-box-orient: vertical;

  overflow: hidden;
}

.project-card__footer {
  margin-top: auto;

  padding: 20px;
}

/* ===============================
   SINGLE PROJECT
================================ */

.single-project {
  padding: 80px 0;

  background: var(--background);
}

.single-project__header {
  text-align: center;

  margin-bottom: 40px;
}

.single-project__header h1 {
  font-size: 42px;

  color: var(--secondary);
}

.single-project__card {
  max-width: 1000px;

  margin: 0 auto;

  background: #fff;

  border-radius: 28px;

  overflow: hidden;

  box-shadow: var(--shadow);
}

.single-project__image {
  width: 100%;

  height: 420px;

  overflow: hidden;
}

.single-project__image img {
  display: block;

  width: 100%;

  height: 100%;

  object-fit: cover;

  object-position: center top;

  margin: 0;
}

.single-project__content {
  padding: 40px;
}

.single-project__description {
  font-size: 20px;

  line-height: 1.6;

  color: var(--secondary);

  margin-bottom: 30px;
}

.single-project__text {
  font-size: 17px;

  line-height: 1.8;

  color: var(--text);
}

.single-project__text h2,
.single-project__text h3 {
  color: var(--secondary);

  margin-top: 35px;
}

.project-back {
  display: block;

  max-width: 1000px;

  margin: 30px auto 0;

  color: var(--primary);

  font-weight: 600;

  text-decoration: none;
}

.project-back:hover {
  color: var(--primary-hover);
}

/* =========================
   FOOTER
========================= */

.footer {
  background: #fff;

  padding: 40px 0 0;

  border-top: 1px solid var(--border);
  border-bottom: 2px solid var(--primary);
}

.footer .row {
  align-items: center;
  align-items: stretch;
}

/* LOGO */

.footer-logo img {
  max-width: 180px;

  height: auto;

  margin-bottom: 20px;
}

.footer-description {
  color: var(--text-light);

  font-size: 15px;

  line-height: 1.7;

  max-width: 300px;
}

/* TITLES */

.footer h5 {
  font-family: "Playfair Display", serif;

  color: var(--secondary);

  font-size: 20px;

  margin-bottom: 15px;

  position: relative;
}

.footer h5:after {
  content: "";

  display: block;

  width: 35px;

  height: 2px;

  background: var(--primary);

  margin-top: 8px;
}

/* TEXT */

.footer p {
  color: var(--text-light);

  font-size: 14px;

  line-height: 1.7;

  margin-bottom: 10px;
}

.footer p i {
  color: var(--primary);

  width: 20px;

  flex: 0 0 20px;
}

/* MENU */

.footer ul {
  list-style: none;
}

.footer li {
  margin-bottom: 10px;
}

.footer p {
  display: flex;

  align-items: flex-start;
}

.footer a {
  color: var(--text);

  text-decoration: none;

  transition: 0.3s;
}

.footer p a,
.footer p {
  min-width: 0;
}

.footer-email {
  display: flex;

  align-items: flex-start;

  /*  gap:8px; */
}

.footer-email a {
  flex: 0 1 auto;

  min-width: 0;

  overflow-wrap: normal;

  word-break: normal;
}

.footer a:hover {
  color: var(--primary);
}

/* CONTACT BUTTON */

.footer-contact-btn {
  display: inline-block;

  margin-top: 15px;

  padding: 8px 22px;

  border: 2px solid var(--primary);

  border-radius: 50px;

  color: var(--primary) !important;

  font-weight: 600;
}

.footer-contact-btn:hover {
  background: var(--primary);

  color: #fff !important;
}

/* BOTTOM */

.footer-bottom {
  margin-top: 5px;

  padding: 5px 0;

  background: #fbf8f4;

  border-top: 1px solid var(--border);

  font-size: 14px;

  color: var(--text-light);
}

.footer-bottom a {
  color: var(--secondary);

  margin-left: 10px;
}

.footer-social {
  margin-top: 25px;
}

.footer-social a {
  display: inline-flex;

  width: 35px;

  height: 35px;

  border-radius: 50%;

  background: var(--background);

  align-items: center;

  justify-content: center;

  margin-right: 8px;

  color: var(--primary);
}

.footer-social a:hover {
  background: var(--primary);

  color: white;
}

.footer-menu {
  list-style: none;

  padding: 0;

  margin: 0;
}

.footer-menu li {
  margin-bottom: 10px;
}

.footer-menu a {
  display: block;

  color: var(--text);

  text-decoration: none;

  font-size: 14px;

  transition: 0.3s;
}

.footer-menu a:hover {
  color: var(--primary);
}

/* TRANSPARENCY LINKS */

.footer-links {
  list-style: none;

  padding: 0;

  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-light);

  font-size: 14px;

  text-decoration: none;

  transition: 0.3s;

  margin-top: 18px;
}

.footer-links a:hover {
  color: var(--primary);
}

/* =========================
   STATIC PAGES
========================= */

.page-content {
  padding: 80px 0;
}

.page-wrapper {
  max-width: 900px;

  margin: 0 auto;
}

.page-title {
  font-family: "Playfair Display", serif;

  color: var(--secondary);

  font-size: 42px;

  text-align: center;

  margin-bottom: 40px;
}

.page-title:after {
  content: "";

  display: block;

  width: 45px;

  height: 2px;

  background: var(--primary);

  margin: 15px auto 0;
}

.page-body {
  font-size: 17px;

  line-height: 1.8;

  color: var(--text);
}

.page-body h2 {
  font-family: "Playfair Display", serif;

  color: var(--secondary);

  margin-top: 40px;

  margin-bottom: 20px;
}

.page-body p {
  margin-bottom: 20px;
}

.page-body ul {
  margin-bottom: 25px;
}

.page-body a {
  color: var(--primary);
}

.page-body img {
  max-width: 100%;

  height: auto;
}

.page-body blockquote {
  border-left: 4px solid var(--primary);

  padding-left: 20px;

  font-style: italic;
}

.page-body ol,
.page-body ul {
  padding-left: 25px;
}

/* =========================
   LEGAL PAGES
========================= */

body.privacy-policy .page-body p {
  text-align: justify;
}

.page-id-145 .page-body p {
  text-align: justify;
}

.contacts-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-intro,
.contact-info,
.company-info {
  text-align: center;

  margin-bottom: 50px;

  background: #fff;
  padding: 35px;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.contact-intro img.contact-logo {
  display: block;

  width: auto;

  max-width: 220px;

  max-height: 120px;

  object-fit: contain;

  margin: 0 auto 25px;
}

.contact-map {
  margin-top: 50px;
}

.contact-map h3 {
  font-family: "Playfair Display", serif;

  color: var(--secondary);

  margin-bottom: 25px;
}

.map-wrapper {
  overflow: hidden;

  border-radius: 20px;

  box-shadow: var(--shadow);
}

.map-wrapper iframe {
  width: 100%;

  height: 400px;

  border: 0;

  display: block;
}

.google-map-container {
  position: relative;
}

.map-preview {
  position: relative;

  overflow: hidden;

  border-radius: 20px;

  width: 100%;

  text-align: center;
}

.map-preview img {
  width: 100%;

  height: auto;

  display: block;

  margin: 0 auto;
}

.map-preview-message {
  position: absolute;

  left: 50%;

  bottom: 25px;

  transform: translateX(-50%);

  background: rgba(255, 255, 255, 0.9);

  padding: 12px 25px;

  border-radius: 50px;

  font-weight: 600;
}

.contact-structures {
  margin-top: 60px;
}

.contact-structures h2 {
  font-family: "Playfair Display", serif;

  color: var(--secondary);

  margin-bottom: 30px;
}

.contact-structures h3 {
  color: var(--secondary);

  margin-top: 35px;

  margin-bottom: 15px;
}

.contact-structures h4 {
  color: var(--secondary);

  margin-top: 40px;

  margin-bottom: 20px;
}

.contact-structures p {
  margin-bottom: 15px;
}

.stat-card__number {
  transition: transform 0.3s ease;
}

.counter {
  transform: scale(1);
}

.counter.active {
  transform: scale(1.05);
}

/* =========================
   SERVIZI OVERVIEW
========================= */

.services-overview {
  display: flex;

  flex-direction: column;

  gap: 0;

  max-width: 900px;

  margin: 40px auto 0;
}

.service-overview-item {
  display: flex;

  align-items: flex-start;

  gap: 25px;

  padding: 30px 0;

  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.service-overview-icon {
  flex: 0 0 70px;

  height: 70px;

  display: flex;

  align-items: center;

  justify-content: center;

  background: var(--primary);

  color: #fff;

  border-radius: 50%;

  font-size: 28px;
}

.service-overview-content h3 {
  margin-bottom: 10px;

  font-family: "Playfair Display", serif;

  color: var(--secondary);
}

.service-overview-content p {
  margin-bottom: 12px;

  line-height: 1.6;
}

.service-overview-content a {
  color: var(--primary);

  font-weight: 600;

  text-decoration: none;
}

.service-overview-content a:hover {
  color: var(--primary-hover);
}

@media (max-width: 576px) {
  .service-overview-item {
    flex-direction: column;
  }
}

/* =========================
   SERVICE STRUCTURES CARDS
========================= */
/* =========================
   SERVIZIO - STRUTTURE
========================= */

.service-structures {
  margin-top: 60px;
}

.service-structures h2 {
  font-family: "Playfair Display", serif;

  color: var(--secondary);

  font-size: 32px;

  text-align: center;

  margin-bottom: 30px;

  position: relative;
}

.service-structures h2:after {
  content: "";

  display: block;

  width: 45px;

  height: 2px;

  background: var(--primary);

  margin: 12px auto 0;
}

.service-structures-grid {
  display: flex;

  flex-wrap: wrap;

  justify-content: center;

  gap: 30px;
}

.service-structures-grid .structure-card {
  width: 320px;
}

.service-structures-grid .structure-card__image {
  height: 180px;

  overflow: hidden;

  display: flex;

  justify-content: center;

  align-items: center;
}

.service-structures-grid .structure-card__image img {
  width: 50%;

  height: 80%;

  object-fit: cover;

  min-height: 150px;
}

.service-structures-grid .structure-card__content {
  height: 130px;
}

.service-structures-grid .structure-card h3 {
  text-align: center;

  font-size: 21px;
}

.service-structures-grid .structure-card a {
  color: var(--primary);

  text-decoration: none;

  font-weight: 600;
}

.service-structures-grid .structure-card__content a {
  margin-top: auto;
}

@media (max-width: 768px) {
  .service-structures-grid .structure-card {
    width: 100%;

    max-width: 360px;
  }
}

/* =========================
   SERVICE ADDITIONAL CONTENT
========================= */

.service-additional {
  margin-top: 60px;

  padding-top: 40px;

  border-top: 1px solid var(--border);
}

.service-additional__content {
  font-size: 17px;

  line-height: 1.8;
}

.service-additional__content h2,
.service-additional__content h3 {
  color: var(--secondary);
}

.page-sostieni {
  background: var(--background);
}

.sostieni-hero {
  padding: 80px 0 40px;
}

.sostieni-hero .section-title {
  text-align: center;
  max-width: 750px;
  margin: auto;
}

.sostieni-hero h1 {
  margin-bottom: 20px;
}

.sostieni-cards {
  padding: 40px 0 80px;
}

.sostieni-grid {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 30px;
}

.sostieni-card {
  background: #fff;

  border-radius: 24px;

  padding: 35px 25px;

  text-align: center;

  box-shadow: var(--shadow);

  display: flex;

  flex-direction: column;

  height: 100%;
}

.sostieni-card__icon {
  width: 70px;

  height: 70px;

  border-radius: 50%;

  display: flex;

  align-items: center;

  justify-content: center;

  background: var(--primary-light);

  margin: 0 auto 20px;
}

.sostieni-card__icon i {
  font-size: 30px;

  color: #fff;
}

.sostieni-card__content {
  display: flex;

  flex-direction: column;

  flex: 1;
}

.sostieni-card h3 {
  font-size: 22px;

  margin-bottom: 15px;
}

.sostieni-card p {
  flex: 1;

  margin-bottom: 25px;
}

.sostieni-card a {
  color: var(--primary);

  text-decoration: none;

  font-weight: 600;
}

.sostieni-card a:hover {
  color: var(--primary-hover);
}

/* Responsive */

@media (max-width: 992px) {
  .sostieni-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .sostieni-grid {
    grid-template-columns: 1fr;
  }
}

/*--------------------------------------------------------------
# Standard pages
--------------------------------------------------------------*/

.page-wrapper {
  max-width: 900px;

  margin: 0 auto;
}

.page-title {
  margin-bottom: 40px;

  text-align: center;
}

.page-body {
  font-size: 17px;

  line-height: 1.8;
}

.page-body p {
  margin-bottom: 20px;

  text-align: justify;
}

.page-body h2 {
  margin-top: 45px;

  margin-bottom: 20px;

  color: var(--secondary);
}

.page-body h3 {
  margin-top: 35px;

  margin-bottom: 18px;

  color: var(--secondary);
}

.page-body ul,
.page-body ol {
  margin: 20px 0;

  padding-left: 28px;
}

.page-body li {
  margin-bottom: 10px;
}

.page-body a {
  color: var(--primary);
}

.page-body img {
  max-width: 100%;

  height: auto;
}

.page-body iframe {
  max-width: 100%;
}

.page-body .wp-block-button {
  margin-top: 35px;
}

.page-body .wp-block-file {
  margin-top: 35px;
}

.page-content {
  padding: 70px 0 90px;
}

/*--------------------------------------------------------------
# Contact Forms
--------------------------------------------------------------*/

.sicomoro-form-wrapper {
  max-width: 800px;

  margin: 40px auto 0;

  padding: 40px;

  background: #fff;

  border-radius: 24px;

  box-shadow: var(--shadow);
}

.sicomoro-form p {
  margin-bottom: 22px;
}

.sicomoro-form label {
  display: block;

  margin-bottom: 8px;

  font-weight: 600;
}

.sicomoro-form input[type="text"],
.sicomoro-form input[type="email"],
.sicomoro-form textarea {
  width: 100%;

  padding: 14px 16px;

  border: 1px solid #ddd;

  border-radius: 14px;

  font-size: 16px;

  transition: 0.3s;
}

.sicomoro-form textarea {
  resize: vertical;
}

.sicomoro-form input:focus,
.sicomoro-form textarea:focus {
  outline: none;

  border-color: var(--primary);

  box-shadow: 0 0 0 3px rgba(240, 89, 42, 0.15);
}

.sicomoro-form input[type="checkbox"] {
  margin-right: 8px;
}

.sicomoro-form button {
  margin-top: 15px;
}

.page-body > .sicomoro-form-wrapper:before {
  content: "";

  display: block;

  width: 50px;

  height: 3px;

  background: var(--primary);

  margin-bottom: 25px;
}

.factorial-box {
  background: var(--surface);

  border-radius: var(--radius-lg);

  padding: 20px;

  box-shadow: var(--shadow);

  overflow: hidden;
}

/* =========================================
   LAVORA CON NOI
========================================= */

.work-page {
  padding: 50px 0;
}

.work-page h2 {
  margin-bottom: 20px;
}

.work-page p {
  margin-bottom: 15px;
}

.work-page .section-header {
  text-align: center;

  margin-bottom: 30px;
}

.work-page section {
  padding: 25px 0;
}

.work-page .section-header {
  margin-bottom: 25px;
}

.work-intro {
  max-width: 900px;

  margin: 0 auto 70px;

  margin-bottom: 5px;

  text-align: center;
}

.work-intro h2 {
  font-family: "Playfair Display", serif;

  color: var(--secondary);

  margin-bottom: 25px;
}

.work-intro p {
  color: var(--text-light);

  font-size: 18px;

  line-height: 1.8;
}

/* BENEFITS */

.work-benefits {
  margin-bottom: 35px;
}

.work-benefits h2,
.work-jobs h2,
.work-contact h2 {
  text-align: center;

  font-family: "Playfair Display", serif;

  color: var(--secondary);

  margin-bottom: 35px;
}

.benefits-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 30px;
}

.benefit-card {
  background: var(--surface);

  padding: 25px 20px;

  border-radius: var(--radius-lg);

  box-shadow: var(--shadow);

  text-align: center;
}

.benefit-card h3 {
  color: var(--primary);

  margin-bottom: 15px;
}

.benefit-card p {
  color: var(--text-light);

  line-height: 1.7;
}

.benefit-icon {
  width: 64px;
  height: 64px;

  margin: 0 auto 20px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: rgba(240, 89, 42, 0.12);

  color: var(--primary);

  font-size: 28px;
}

/* FACTORIAL */

.work-jobs {
  margin-bottom: 35px;
}

.work-jobs > p {
  text-align: center;

  margin-bottom: 35px;

  color: var(--text-light);
}

.factorial-wrapper {
  background: var(--surface);

  border-radius: var(--radius-lg);

  padding: 15px;

  box-shadow: var(--shadow);

  overflow: hidden;
}

.factorial-wrapper iframe {
  display: block;

  border: 0;

  width: 100%;

  height: 100%;
}

/* CANDIDATURA */

.work-contact {
  text-align: center;

  padding: 35px;

  background: var(--surface);

  border-radius: var(--radius-lg);

  box-shadow: var(--shadow);
}

.work-contact p {
  color: var(--text-light);

  margin-bottom: 30px;
}

.btn-site a {
  display: inline-block;

  background: var(--primary);

  color: #ffffff;

  padding: 12px 28px;

  border-radius: 30px;

  font-weight: 600;

  text-decoration: none;

  transition: var(--transition);
}

.btn-site a:hover {
  background: var(--primary-hover);

  color: #ffffff;
}

.btn-site .wp-block-button__link {
  background: var(--primary);

  color: #fff;

  padding: 12px 28px;

  border-radius: 30px;

  font-weight: 600;

  text-decoration: none;

  transition: var(--transition);
}

.btn-site .wp-block-button__link:hover {
  background: var(--primary-hover);

  color: #fff;
}

.career-contact {
  max-width: 650px;

  margin-top: 45px;
}

.career-contact p:first-child {
  font-size: 20px;

  font-weight: 600;

  color: var(--secondary);
  margin-bottom: 0px;
}

.career-contact .wp-block-button {
  margin-top: 0px;

  margin-bottom: 0;
}

.file-upload {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  padding: 12px 22px;

  background: var(--background);

  border: 2px dashed var(--border);

  border-radius: 12px;

  cursor: pointer;

  transition: 0.3s;
}

.file-upload:hover {
  border-color: var(--primary);

  background: #fff;
}

.file-upload input {
  display: none;
}

.file-upload-name {
    margin-top: 8px;

    font-size: 14px;
    color: var(--text);

    display: none;
}

.selected-file {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.remove-file {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 22px;
    height: 22px;

    padding: 0;

    border: 0;
    background: transparent;

    color: var(--gray);

    font-size: 20px;
    line-height: 1;

    cursor: pointer;

    transform: translateY(-9px);
}

.remove-file:hover {
    color: var(--primary);
}

.files-total {
    margin-top: 8px;

    font-size: 13px;
    color: var(--gray);
}

.files-error {
    margin-top: 6px;

    font-size: 13px;
    font-weight: 600;

    color: var(--primary);
}

.sicomoro-form button[type="submit"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


.file-upload-name.has-file {
    display: block;
}

.honeypot {
  display: none;
}


/* ===================================================
   TESTIMONIAL MODAL
=================================================== */

.testimonial-card {
    cursor: pointer;
}

.testimonial-card:focus {
    outline: none;
}

.testimonial-read-more {
    display: inline-block;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

.testimonial-full-text {
    display: none;
}


/* Modal */

.testimonial-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.testimonial-modal.is-open {
    opacity: 1;
    visibility: visible;
}


.testimonial-modal__overlay {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.55);
}


.testimonial-modal__content {
    position: relative;
    z-index: 1;

    width: 100%;
    max-width: 700px;
    max-height: 85vh;

    overflow-y: auto;

    padding: 40px;

    background: #fff;
    border-radius: var(--radius);

    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}


.testimonial-modal__close {
    position: absolute;
    top: 15px;
    right: 18px;

    width: 36px;
    height: 36px;

    border: 0;
    background: transparent;

    font-size: 30px;
    line-height: 1;

    cursor: pointer;
}


.testimonial-modal__stars {
    margin-bottom: 15px;

    color: var(--primary);
    font-size: 20px;
    letter-spacing: 2px;
}


.testimonial-modal__title {
    margin-bottom: 5px;
}


.testimonial-modal__role {
    margin-bottom: 25px;

    color: var(--gray);
    font-size: 14px;
}


.testimonial-modal__text {
    color: var(--text);
    line-height: 1.7;
}


body.testimonial-modal-open {
    overflow: hidden;
}



/* MOBILE */

@media (max-width: 768px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .work-page {
    padding: 50px 0;
  }

  .work-contact {
    padding: 30px 20px;
  }
}
/* /////////// */

@media (max-width: 576px) {
  .footer {
    padding-top: 40px;
  }

  .footer-bottom {
    text-align: center;
  }

  .structures-list {
    grid-template-columns: 1fr;
  }

  .service-overview-icon {
    flex: 0 0 70px;
    height: 70px;
    width: 70px;
    font-size: 28px;
  }
}

@media (max-width: 450px) {
  .stat-icon {
    width: 35px;
    height: 35px;
    justify-content: center;
    font-size: clamp(12px, 2.5vw, 24px);
  }
}

@media (max-width: 991px) {
  .footer .row > div {
    margin-bottom: 35px;
  }
  .structures-navigation {
    display: none;
  }
}

@media (max-width: 1300px) {
  .structures-grid {
    grid-template-columns: 1fr;
  }

  .projects-promo__top {
    padding: 30px 45px;
  }
}

@media (max-width: 1200px) {
  .structures-grid {
    grid-template-columns: 1fr;
  }

  .projects-promo__top {
    padding: 10px 45px;
  }
}

@media (max-width: 992px) {
  .service-card {
    width: 280px;

    height: 400px;
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-projects-grid {
    grid-template-columns: 1fr;
  }

  .news-column .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-column,
  .projects-column {
    width: 100%;
    padding: 0px;
  }

  .structures-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .stat-card__number.counter {
    font-size: 24px;

    margin-bottom: 10px;
  }

  .service-card {
    width: 380px;

    height: 100%;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-column .news-grid {
    grid-template-columns: 1fr;
  }

  .projects-promo__top {
    padding: 30px;
  }

  .projects-logos {
    flex-wrap: wrap;
  }

  .projects-logos img {
    max-width: 40%;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .single-news {
    padding: 50px 0;
  }

  .single-news__header h1 {
    font-size: 30px;
  }

  .single-news__content {
    margin: -60px 15px 0;

    padding: 25px;

    font-size: 16px;
  }

  .single-news__card {
    flex-direction: column;

    padding: 25px;
  }

  .single-news__thumb {
    width: 100%;
  }

  .single-news__thumb img {
    height: auto;
  }

  .single-news__card.has-image .single-news__content {
    margin: -50px 15px 25px;

    padding: 25px;
  }

  .single-news__card.no-image .single-news__content {
    padding: 25px;
  }

  body.privacy-policy .page-body p,
  body.page-cookie-policy .page-body p {
    text-align: left;
  }

  .structures-map {
    flex-direction: column;

    gap: 30px;

    height: 180px;
  }

  .structures-map img {
    height: 180px;
  }
}
