/*
Theme Name: DTT Project Child
Theme URI: https://www.dtt-project.it/
Description: Child theme per DTT Project
Template: dtt-project
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dtt-project-child
Domain Path: /languages
*/

/* ============================================
   PERSONALIZZAZIONE COLORI
   ============================================ */

:root {
  /* COLORE PRIMARIO */
  --bs-primary: #3d7bf6;
  --bs-primary-rgb: 61, 123, 246;

  /* COLORI SECONDARI */
  --bs-secondary: #1852bd;
  --bs-tertiary: #072e42;
  --bs-success: #008758;
  --bs-info: #0073e6;
  --bs-warning: #a66300;
  --bs-danger: #d9364f;

  --bs-bg-site: #ffffff;

  /* COLORI TESTO */
  --bs-body-color: #252525;
  --bs-heading-color: #252525;
  --bs-link-color: var(--bs-primary);
  --bs-link-hover-color: #e89445;
}

.t-primary {
  color: var(--bs-primary);
}

.close-icon {
  width: 50px;
  height: 50px;
  stroke: #000;
  fill: none;
}

.it-search-wrapper .search-icon {
  width: 24px;
  height: 24px;
  stroke: var(--bs-primary);
  fill: #fff !important;
}

/* Footer Bottom */
.footer-bottom {
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 2rem;
  gap: 1rem;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--bs-primary);
}

/* Footer Social Icons (Lucide) */
.it-footer .social .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.it-footer .social .social-link:hover .social-icon {
  fill: none;
  stroke: var(--bs-primary);
}

.it-footer .social .social-icon {
  width: 22px;
  height: 22px;
  stroke: #fff;
  fill: none;
}

/* Header Social Icons (Lucide) - stesso approccio del footer */
.it-header-center-wrapper .it-socials .icon,
.it-header-center-wrapper .it-socials svg.icon {
  width: 22px;
  height: 22px;
  stroke: #fff !important;
  fill: none !important;
}

.it-header-center-wrapper .it-socials a {
  color: #fff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.it-header-center-wrapper .it-socials a:hover .icon,
.it-header-center-wrapper .it-socials a:hover svg.icon {
  stroke: #ffffff !important;
  opacity: 0.9;
}

.cmp-breadcrumbs .breadcrumb-container .breadcrumb .breadcrumb-item a {
  color: var(--bs-primary);
}

.bg-line {
  background-image: url(../dtt-project-child/assets/images/bg-line.svg);
  height: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

/* Callout */

.callout {
  border-color: var(--bs-primary) !important;
}
.callout p {
  color: #000000;
  font-family: "Titillium Web", sans-serif;
  margin: 0;
}

.callout.note .callout-inner {
  border-color: var(--bs-primary);
}

.callout.note .callout-title span {
  border-color: var(--bs-primary);
}

.callout.note .callout-title {
  color: var(--bs-primary);
}

.callout.note .callout-title .icon {
  fill: var(--bs-primary);
}

.callout.note a {
  color: var(--bs-primary);
}

/* Header */
.it-header-center-wrapper,
.it-header-navbar-wrapper,
.navbar {
  background-color: var(--bs-primary) !important;
}

/* Header Social Icons (Lucide) - stesso approccio del footer */
.it-header-center-wrapper .it-socials .icon,
.it-header-center-wrapper .it-socials svg.icon {
  width: 22px;
  height: 22px;
  stroke: #fff !important;
  fill: none !important;
}

.it-header-center-wrapper .it-socials a {
  color: #fff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.it-header-center-wrapper .it-socials a:hover .icon,
.it-header-center-wrapper .it-socials a:hover svg.icon {
  stroke: #ffffff !important;
  opacity: 0.9;
}

/* Responsive styles moved to assets/css/responsive.css */

/* Sticky Navbar */
.it-header-navbar-wrapper.navbar-fixed {
  position: fixed !important;
  left: 0;
  right: 0;
  z-index: 9999; /* Below admin bar (z-index: 99999) but above content */
  width: 100%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease, top 0.3s ease, transform 0.3s ease;
  animation: slideDown 0.3s ease-out;
}

.it-header-navbar-wrapper.navbar-fixed .navbar {
  padding: 0;
}

/* Logo e burger menu nell'header fixed su mobile */
.navbar-fixed-header-content {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
}

.it-header-navbar-wrapper.navbar-fixed .navbar-fixed-header-content {
  display: flex;
}

.it-brand-wrapper-fixed .it-brand-text {
  gap: 0.75rem;
}

.it-brand-wrapper-fixed .it-brand-title {
  font-size: 1rem;
  color: #ffffff;
  margin: 0;
  font-weight: 600;
}

.it-brand-wrapper-fixed .it-brand-tagline {
  display: none;
}

.custom-navbar-toggler-fixed {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background-color: transparent;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.custom-navbar-toggler-fixed:hover,
.custom-navbar-toggler-fixed:focus {
  background-color: rgba(255, 255, 255, 0.1);
  outline: none;
}

.custom-navbar-toggler-fixed .icon {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}


.navbar-placeholder {
  display: none;
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background-color: var(--bs-primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background-color: var(--bs-tertiary);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.scroll-to-top:active {
  transform: translateY(-1px);
}

.scroll-to-top .icon {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
}


.it-header-slim-wrapper {
  background-color: var(--bs-secondary) !important;
}

/* Slim Header Menu */
.slim-header-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.5rem;
  align-items: center;
}

.slim-header-menu li {
  margin: 0;
}

.slim-header-menu a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s ease;
  font-weight: 500;
}

.slim-header-menu a:hover {
  color: var(--bs-primary);
}

.it-header-wrapper .dropdown-menu .link-list a:hover {
  color: var(--bs-link-hover-color) !important;
}
.link-list-wrapper ul li a:hover:not(.disabled) span {
  color: var(--bs-link-hover-color) !important;
}

/* Link menu */
.navbar-nav .nav-link {
  color: #ffffff !important;
  font-weight: 500;
}


.navbar-nav .nav-link:hover {
  color: #f0f0f0 !important;
}

/* Menu items with span instead of link (no URL) - same style as nav-link */
.navbar-nav .nav-item > span {
  color: #ffffff;
  font-weight: 600;
  padding: 12px 16px;
  display: flex;
  align-self: flex-end;
  align-items: center;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  text-decoration: none;
  position: relative;
}

.navbar-nav .nav-item:hover > span {
  text-decoration: underline;
}

/* Submenu management */
.navbar-nav .nav-item {
  position: relative;
}

/* Hide submenu by default */
.navbar-nav .sub-menu {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 0.5rem 0;
  margin: 0;
  list-style: none;
  z-index: 1000;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

/* Show submenu on hover with fade animation */
.navbar-nav .nav-item:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Submenu items styling */
.navbar-nav .sub-menu .nav-item {
  display: block;
  width: 100%;
}

.navbar-nav .sub-menu .nav-link,
.navbar-nav .sub-menu span {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--bs-body-color) !important;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  width: 100%;
}

.navbar-nav .sub-menu span {
  padding: 0;
}

.navbar-nav .sub-menu .nav-link:hover > span {
  color: #fff !important;
}

.navbar-nav .sub-menu .nav-link:hover {
  background-color: var(--bs-primary) !important;
  color: #fff !important;
}

.navbar-nav .sub-menu .active > .nav-link {
  background-color: rgba(var(--bs-primary-rgb), 0.1);
  color: var(--bs-primary) !important;
  font-weight: 600;
}

/* Indicator for items with submenu */
.navbar-nav .nav-item:has(.sub-menu) > a::after,
.navbar-nav .nav-item:has(.sub-menu) > span::after {
  content: '';
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 0.5rem;
  vertical-align: middle;
  margin-top: -0.2rem;
  transition: transform 0.3s ease;
}

/* Rotate icon when dropdown is open */
.navbar-nav .nav-item:hover > a::after,
.navbar-nav .nav-item:hover > span::after,
.navbar-nav .nav-item.mobile-open > a::after,
.navbar-nav .nav-item.mobile-open > span::after {
  transform: rotate(-135deg);
}

/* Nested submenu (third level) */
.navbar-nav .sub-menu .nav-item {
  position: relative;
}

.navbar-nav .sub-menu .nav-item:has(.sub-menu) > a::after,
.navbar-nav .sub-menu .nav-item:has(.sub-menu) > span::after {
  transform: rotate(-45deg);
  margin-left: auto;
  float: right;
  transition: transform 0.3s ease;
}

/* Rotate icon for nested submenu when open */
.navbar-nav .sub-menu .nav-item:hover > a::after,
.navbar-nav .sub-menu .nav-item:hover > span::after,
.navbar-nav .sub-menu .nav-item.mobile-open > a::after,
.navbar-nav .sub-menu .nav-item.mobile-open > span::after {
  transform: rotate(-225deg);
}

.navbar-nav .sub-menu .sub-menu {
  left: 100%;
  top: 0;
  margin-left: 0.25rem;
}



/* Bottoni */
.btn-primary {
  background-color: var(--bs-primary) !important;
  border-color: var(--bs-primary) !important;
  border-radius: 0 !important;
}

.btn-primary:hover {
  background-color: var(--bs-tertiary) !important;
  border-color: var(--bs-tertiary) !important;
}

.btn-outline-primary {
  box-shadow: inset 0 0 0 2px var(--bs-primary);
  color: var(--bs-primary) !important;
  border-radius: 0 !important;
}

.btn-outline-primary:hover {
  color: var(--bs-tertiary) !important;
     box-shadow: inset 0 0 0 2px var(--bs-tertiary);
}

.btn-white {
  border-radius: 0 !important;
}

.btn-white:hover {
  background-color: var(--bs-tertiary) !important;
  border-color: var(--bs-tertiary) !important;
  color: #fff !important;
}

/* Footer */
.it-footer {
  background-color: #252525 !important;
}

/* Link nel testo */
a {
  color: var(--bs-primary);
}

a:hover {
  color: var(--bs-link-hover-color);
}

/* Footer */
.it-footer-main,
.it-footer-small-prints {
  background-color: var(--bs-tertiary);
}

.it-hero-wrapper {
  background-color: transparent;
}

.link-list-wrapper ul li a span {
  color: var(--bs-link-color);
}

/* ============================================
   FINE PERSONALIZZAZIONE COLORI
   ============================================ */

/* HOMEPAGE */
.home {
  background-color: var(--bs-bg-site);
}
.home .hero-text {
  max-width: 100% !important;
}
.home .it-hero-wrapper p {
  color: white !important;
}

.hero-link .btn .icon {
  width: 15px;
  height: 15px;
  display: inline-block;
  vertical-align: middle;
  margin-bottom: 3px;
}

.hero-link .btn {
  padding: 0.9rem 2.6rem;
  font-size: 1.25rem;
  line-height: 1.2;
}

.home .home-section {
  background-color: var(--bs-tertiary);
  padding-top: 50px;
  padding-bottom: 50px;
}

.home .section-image {
  overflow: hidden;
}
.home .section-image img {
  display: block;
  width: 100%;
  height: auto;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.home .section-image.rotate-inf img {
  animation: dtt-spin 120s linear infinite;
  transform-origin: 50% 50%;
}

.home .section-text {
  padding-left: 13rem;
  padding-right: 8rem;
}
.home .section-text.odd {
  padding-left: 8rem;
  padding-right: 13rem;
}

.home .section-content p {
  font-size: 1.7rem;
  line-height: 1.3;
}

.home .btn-section {
  margin-top: 1rem;
  background-color: var(--bs-primary);
  color: #ffffff;
}
.home .btn-section:hover {
  background-color: #ffffff;
  color: var(--bs-primary);
}

/* Boxes grid */
.home-boxes {
  padding: 100px 0;
  /* background-color: var(--bs-primary); */
}

.home-boxes .boxes-title {
  padding-left: 8rem;
  padding-right: 3rem;
  font-size: 3rem;
  line-height: 1;
  position: sticky;
  top: 100px;
}

.boxes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  align-items: stretch;
}
.box-card {
  /* background: linear-gradient(180deg, var(--bs-secondary), var(--bs-bg-site)); */
  /* background: linear-gradient(180deg, var(--bs-bg-site), var(--bs-tertiary)); */
  background-color: var(--bs-tertiary);
  display: block;
  color: #fff;
  text-decoration: none;
  overflow: hidden;
}

.box-card-inner {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.boxes-grid .box-card,
.icons-grid-section .box-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.boxes-grid .box-card .box-card-inner,
.icons-grid-section .box-card .box-card-inner {
  flex: 1 1 auto;
}

.box-icon svg {
  display: block;
  width: 100px;
  height: 100px;
  opacity: 0.1;
}
.box-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 30px;
}
.box-title {
  margin: 0;
  color: #fff;
  transition: color 180ms ease;
}

.box-arrow svg {
  width: 35px;
  height: 35px;
  fill: #fff;
  transition: transform 180ms ease, fill 180ms ease;
}

.box-card:hover .box-title,
.box-card:hover .box-text,
.box-card:focus .box-title,
.box-card:focus-visible .box-title {
  color: var(--bs-primary);
}
.box-card:hover .box-arrow svg,
.box-card:focus .box-arrow svg,
.box-card:focus-visible .box-arrow svg {
  fill: var(--bs-primary);
  transform: translateX(6px);
}


/* PAGES style */
.banner-breadcrumb .separator {
  margin-bottom: 10px !important;
}
.it-hero-wrapper {
  padding: 150px 35px;
}
.home .it-hero-wrapper {
  padding: 0px 35px;
}

.text-image-section-wrapper {
  padding: 100px 0;
}

.text-image-section:not(:first-child) {
  margin-top: 100px;
}

.text-image-section .section-text ul {
  list-style: none;
  padding-left: 0;
  margin: 1.5rem 0;
}

.text-image-section .section-text ul li {
  position: relative;
  padding-left: 1.5rem;
}

.text-image-section .section-text ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  background-color: var(--bs-primary);
  border-radius: 50%;
}

.text-image-section .section-text ul li:last-child {
  margin-bottom: 0;
}

.text-image-section .section-text ul ul {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
}

.text-image-section .section-text ul ul li::before {
  width: 6px;
  height: 6px;
  background-color: var(--bs-secondary);
}

.text-image-section .section-text ol {
  padding-left: 2rem;
  margin: 1.5rem 0;
  counter-reset: item;
  list-style: none;
}

.text-image-section .section-text ol li {
  position: relative;
  padding-left: 0.5rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.6;
  counter-increment: item;
}

.text-image-section .section-text ol li::before {
  content: counter(item) ".";
  position: absolute;
  left: -2rem;
  color: var(--bs-primary);
  font-weight: 700;
  font-size: 1.1em;
}

.text-image-section .section-text ol li:last-child {
  margin-bottom: 0;
}

.text-image-section.has-decor {
  position: relative;
  overflow: hidden;
}
.text-image-section.has-decor::before,
.text-image-section.has-decor::after {
  content: "";
  position: absolute;
  background-image: url("assets/images/decor-circle.svg");
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.5;
  pointer-events: none;
  z-index: -1;
}
.text-image-section.has-decor::before {
  width: 500px;
  height: 500px;
  left: -250px;
  bottom: 0px;
}
.text-image-section.has-decor::after {
  width: 700px;
  height: 700px;
  right: -250px;
  top: 100px;
}

.text-image-top {
  position: relative;
  padding: 10rem 0;
}
.text-image-top h2 {
  margin: 0;
}
.text-image-top p {
  margin: 0;
  font-size: 30px;
  line-height: 1.3;
}

.text-image-top::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background-image: url("assets/images/top-content-decor.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}
.text-image-top .text-image-top-inner {
  position: relative;
  z-index: 1;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.text-image-section .section-text,
.text-image-section .section-image {
  position: relative;
  z-index: 1;
}

.page-template-pages .it-hero-wrapper p {
  color: #ffffff !important;
}
/* 
.page-template-pages .it-hero-wrapper .hero-title {
  color: #000000 !important;
}  */

/* .page-template-pages .text-image-section {
  padding-top: 50px;
  padding-bottom: 50px;
} */

.page-template-pages .section-image {
  overflow: hidden;
}
.page-template-pages .section-image img {
  display: block;
  width: 100%;
  height: auto;
}

.page-template-pages .section-text {
  padding-left: 5rem;
  padding-right: 3rem;
}
.page-template-pages .section-text.odd {
  padding-left: 3rem;
  padding-right: 5rem;
}

.page-template-pages .section-content p {
  font-size: 20px;
  line-height: 1.3;
}

.page-template-pages .btn-section {
  margin-top: 1rem;
  background-color: var(--bs-primary);
  color: #ffffff;
}
.page-template-pages .btn-section:hover {
  background-color: #ffffff;
  color: var(--bs-primary);
}

/* Icons grid */
.icons-grid-section {
  width: 100%;
  background-color: var(--bs-primary, #0d6efd);
  color: #fff;
  position: relative;
  /* padding: 50px 0; */
}

.icons-grid-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(../dtt-project-child/assets/images/bg-line.svg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}

.icons-grid-section .boxes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  align-items: stretch;
}

.icons-grid-section .boxes-title {
  padding-left: 8rem;
  position: sticky;
  top: 100px;
}
.icons-grid-section .boxes-title p {
  font-size: 20px;
}

.icons-grid-item .icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.icons-grid-item .icon-circle .icon {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: var(--bs-primary, #0d6efd);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Call to action */
.call-to-action-section {
  margin: 2rem 0;
}

.call-to-action-box {
  background-color: var(--bs-tertiary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.call-to-action-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.call-to-action-box .cta-content p:last-child {
  margin-bottom: 0;
}

/* Feature Blocks */
.feature-blocks-section {
  padding: 4rem 0;
  background-color: var(--bs-primary);
  color: #ffffff;
  margin-top: 100px;
  position: relative;
}

.feature-blocks-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(../dtt-project-child/assets/images/bg-line.svg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}

.feature-blocks-section > .container-fluid,
.icons-grid-section > .container-fluid {
  position: relative;
  z-index: 1;
}

.feature-section-title {
  padding-left: 5rem;
  padding-right: 3rem;
  position: sticky;
  top: 100px;
}

.feature-blocks-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.feature-block-item {
  display: flex;
  gap: 2rem;
  background: var(--bs-tertiary);
  padding: 3rem;
  transition: transform 0.3s ease;
}

.feature-block-item:hover {
  transform: translateY(-2px);
}

.feature-block-number {
  flex-shrink: 0;
}

.feature-block-number span {
  color: var(--bs-primary);
  font-size: 6rem;
  font-weight: 700;
  line-height: 1;
}

.feature-block-number svg {
  width: 6rem;
  height: 6rem;
  color: var(--bs-primary);
}

.feature-block-content {
  display: flex;
  gap: 2rem;
  flex: 1;
}

.feature-block-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature-block-text p:last-child {
  margin-bottom: 0;
}

.feature-block-label {
  padding: 1.5rem;
  border-left: 4px solid var(--bs-primary);
}

.feature-block-label-title {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
}

.feature-block-label-content {
  font-size: 0.8rem;
  opacity: 0.6;
}

.feature-block-label-content p:last-child {
  margin-bottom: 0;
}

.feature-block-right {
  flex-shrink: 0;
  width: 300px;
  min-width: 300px;
}

.feature-block-image {
  width: 100%;
  min-height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}


/* Info Box */
.info-box {
  background-color: var(--bs-tertiary);
  border-left: 4px solid var(--bs-primary);
  padding: 2rem;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.info-box-content {
  color: #ffffff;
}

.info-box-content p {
  color: #ffffff;
  margin-bottom: 1rem;
}

.info-box-content p:last-child {
  margin-bottom: 0;
}

/* Countdown */
.countdown-section .info-box {
  border: 0;
}

.countdown-title {
  color: #ffffff;
  text-align: center;
}

.countdown-timer {
  display: flex;
  justify-content: center;
}

.countdown-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 70px;
}

.countdown-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--bs-primary);
  line-height: 1;
  display: block;
  margin-bottom: 0.5rem;
}

.countdown-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Feature blocks */
.dtt-features {
  margin-block: 3rem;
}

.dtt-features__title {
  font-size: 1.6rem;
  margin-bottom: 2rem;
}

.dtt-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.3fr);
  gap: 2.5rem;
  padding-block: 2rem;
  border-top: 1px solid #e2e8f0;
}

.dtt-feature:last-child {
  border-bottom: 1px solid #e2e8f0;
}

.dtt-feature__left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dtt-feature__number {
  font-size: 2.4rem;
  font-weight: 700;
  color: #0b7285; 
}

.dtt-feature__label {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.dtt-feature__text {
  font-size: 0.98rem;
  line-height: 1.6;
  color: #334155;
}

.dtt-feature__image-placeholder {
  margin-top: 1rem;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #e0f4ff 0%, #d9e2ff 100%);
  border-radius: 0.5rem;
}

/* Gallery */
.gallery-section {
  background-color: var(--bs-primary);
  position: relative;
}

.gallery-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(../dtt-project-child/assets/images/bg-line.svg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}

.gallery-section > .container-fluid {
  position: relative;
  z-index: 1;
}

.gallery-title {
  position: sticky;
  top: 100px;
  padding-left: 5rem;
  padding-right: 3rem;
  color: #ffffff;
}
.gallery-title p {
  font-size: 1.5rem;
}

.gallery-title ul {
  list-style: none;
  padding-left: 0;
  margin: 1.5rem 0;
}

.gallery-title ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: #fff;
}

.gallery-title ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  background-color: #fff;
  border-radius: 50%;
}

.gallery-title ul li:last-child {
  margin-bottom: 0;
}

.gallery-title ul ul {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
}

.gallery-title ul ul li::before {
  width: 6px;
  height: 6px;
  background-color: rgba(255, 255, 255, 0.7);
}

.gallery-title ol {
  padding-left: 2rem;
  margin: 1.5rem 0;
  counter-reset: item;
  list-style: none;
}

.gallery-title ol li {
  position: relative;
  padding-left: 0.5rem;
  margin-bottom: 0.75rem;
  color: #fff;
  counter-increment: item;
}

.gallery-title ol li::before {
  content: counter(item) ".";
  position: absolute;
  left: -2rem;
  color: #fff;
  font-weight: 700;
}

.gallery-title ol li:last-child {
  margin-bottom: 0;
}

.gallery-grid {
  display: grid;
  gap: 4px;
}

.gallery-grid.gallery-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.gallery-grid.gallery-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.gallery-grid.gallery-cols-5 {
  grid-template-columns: repeat(5, 1fr);
}

.gallery-item-hidden {
  display: none !important;
}

.gallery-item {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  text-decoration: none;
}

.gallery-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.4s ease;
  background-color: var(--bs-tertiary);
}

.gallery-item:hover .gallery-image {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-icon {
  width: 48px;
  height: 48px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-icon {
  transform: scale(1);
}

.gallery-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 2rem;
  padding: 1rem;
}

.gallery-page-btn {
  min-width: 44px;
  height: 44px;
  padding: 0.5rem;
  border: 2px solid var(--bs-tertiary);
  background: transparent;
  color: var(--bs-tertiary);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-page-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
}

.gallery-page-btn:hover:not(:disabled) {
  background-color: var(--bs-tertiary);
  color: #fff;
}

.gallery-page-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  border-color: #ccc;
  color: #ccc;
}

.gallery-page-numbers {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.gallery-page-num {
  min-width: 44px;
  height: 44px;
  padding: 0.5rem;
  border: 2px solid var(--bs-tertiary);
  background: transparent;
  color: var(--bs-tertiary);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-page-num:hover:not(.active) {
  background-color: var(--bs-tertiary);
  color: #fff;
}

.gallery-page-num.active {
  background-color: var(--bs-tertiary);
  border-color: var(--bs-tertiary);
  color: #fff;
}

/* Glossary  */
.glossary-section {
  padding: 100px 0;
  background-color: #fff;
}

.glossary-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding: 1rem;
  background-color: #f8f9fa;
  justify-content: center;
}

.glossary-filter-btn {
  min-width: 44px;
  height: 44px;
  padding: 0.5rem;
  border: 2px solid var(--bs-tertiary);
  background: transparent;
  color: var(--bs-tertiary);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.glossary-filter-btn:hover:not(:disabled) {
  background-color: var(--bs-tertiary);
  color: #fff;
}

.glossary-filter-btn.active {
  background-color: var(--bs-tertiary);
  color: #fff;
}

.glossary-filter-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  border-color: #ccc;
  color: #ccc;
}

.glossary-filter-btn[data-filter="all"] {
  min-width: auto;
  padding: 0.5rem 1rem;
}

.glossary-content {
  transition: opacity 0.3s ease;
}

.glossary-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.glossary-row:last-child {
  margin-bottom: 0;
}

.glossary-column {
  min-width: 0;
}

.glossary-column-empty {
  background: transparent;
}

.glossary-letter-header {
  background-color: var(--bs-tertiary);
  padding: 1rem 1.5rem;
  margin-bottom: 0;
  border-bottom: 3px solid var(--bs-primary);
}

.glossary-letter {
  font-size: 3rem;
  font-weight: bold;
  color: #fff;
  line-height: 1;
  text-align: center;
  display: block;
  width: 100%;
}

.glossary-accordion {
  border: none;
}

.glossary-accordion .accordion-item {
  border: none;
  border-bottom: 1px solid color-mix(in srgb, var(--bs-tertiary) 20%, transparent);
  border-radius: 0;
  background: transparent;
}

.glossary-accordion .accordion-item:first-of-type,
.glossary-accordion .accordion-item:last-of-type {
  border-radius: 0;
}

.glossary-accordion .accordion-header {
  margin: 0;
}

.glossary-accordion .accordion-button {
  background: transparent;
  color: var(--bs-tertiary);
  font-weight: 600;
  padding: 24px;
  border: none;
  box-shadow: none;
  font-size: 1.125rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.glossary-accordion .accordion-button::after {
  display: none;
}

.glossary-accordion .accordion-button:hover {
  background: transparent;
  color: var(--bs-primary);
  text-decoration: none;
}

.glossary-accordion .accordion-button:hover .accordion-icon svg {
  stroke: var(--bs-primary);
}

.glossary-accordion .accordion-button:focus {
  box-shadow: none;
  border: none;
}

.glossary-accordion .accordion-button:not(.collapsed) {
  background: transparent;
  color: var(--bs-tertiary);
  box-shadow: none;
}

.glossary-accordion .accordion-title-text {
  flex: 1;
}

.glossary-accordion .accordion-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
}

.glossary-accordion .accordion-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--bs-tertiary);
  fill: none;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.3s ease, stroke 0.3s ease;
}

.glossary-accordion .accordion-icon .icon-plus {
  opacity: 1;
}

.glossary-accordion .accordion-icon .icon-minus {
  opacity: 0;
}

.glossary-accordion .accordion-button:not(.collapsed) .icon-plus {
  opacity: 0;
}

.glossary-accordion .accordion-button:not(.collapsed) .icon-minus {
  opacity: 1;
}

.glossary-accordion .accordion-collapse {
  border: none;
}

.glossary-accordion .accordion-body {
  background: transparent;
  padding: 0 24px 1rem;
}

.glossary-accordion .accordion-body p:last-child {
  margin-bottom: 0;
}


/* Partners Section */
.partners-title {
  font-size: 2.5rem;
  margin: 0;
}

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

.partner-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  display: block;
  overflow: hidden;
}

a.partner-card:hover {
  border-color: var(--bs-primary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.partner-card-inner {
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
}

.partner-image {
  width: 100px;
  height: 100px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.partner-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--bs-secondary);
  margin: 0 0 0.75rem;
  transition: color 0.3s ease;
}

a.partner-card:hover .partner-title {
  color: var(--bs-primary);
}

.partner-content {
  font-size: 0.875rem;
  color: #666;
  line-height: 1.6;
  flex: 1;
}

.partner-content p {
  margin: 0;
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.lightbox.active .lightbox-image {
  opacity: 1;
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.lightbox-close:hover {
  transform: scale(1.1);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.3s ease;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-icon {
  width: 30px;
  height: 30px;
  stroke: #fff;
  fill: none;
}

.lightbox-close .lightbox-icon {
  width: 28px;
  height: 28px;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 1rem;
  background: rgba(0, 0, 0, 0.5);
  padding: 0.5rem 1rem;
  border-radius: 20px;
}

/* Timeline */
.timeline-section {
  padding-bottom: 100px;
}

.timeline-wrapper {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  display: grid;
  grid-template-columns: 120px 40px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item::after {
  content: '';
  position: absolute;
  left: calc(120px + 1.5rem + 20px - 1px);
  top: 30px;
  width: 2px;
  height: calc(100% + 3rem);
  background: var(--bs-primary);
  z-index: 0;
}

.timeline-item:last-child::after {
  display: none;
}

.timeline-year-marker {
  text-align: right;
  padding-top: 0.5rem;
}

.timeline-year {
  font-size: 2rem;
  font-weight: 700;
  color: var(--bs-heading-color);
  line-height: 1;
}

.timeline-marker {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}

.timeline-dot {
  width: 20px;
  height: 20px;
  background: var(--bs-primary);
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--bs-primary);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  margin-top: 0.5rem;
}

.timeline-content {
  background: var(--bs-tertiary);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.timeline-month {
  font-size: 1rem;
  font-weight: 700;
  color: var(--bs-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  display: block;
}

.timeline-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #fff;
}

.timeline-text p {
  color: #fff;
  margin-bottom: 1rem;
}

.timeline-text p:last-child {
  margin-bottom: 0;
}

.timeline-text ul,
.timeline-text ol {
  margin: 1rem 0;
  color: #fff;
}

.timeline-text ul li,
.timeline-text ol li {
  color: #fff;
}

.timeline-text h3,
.timeline-text h4 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: #fff;
}

.timeline-text h3:first-child,
.timeline-text h4:first-child {
  margin-top: 0;
}

.timeline-text a {
  color: var(--bs-primary);
  text-decoration: underline;
}

.timeline-text a:hover {
  color: #fff;
}

.search .card {
  border: none;
  background-color: var(--bs-tertiary);
  color: #fff !important;
  border-radius: 0 !important;
  transition: all 0.3s ease;
}

.search .card.rounded {
  border-radius: 0 !important;
}
.search .card a {
  color: #fff !important;
  transition: all 0.3s ease;
}
.search .card:hover {
  background-color: var(--bs-primary);
}
.search .card a:hover {
  color: #fff !important;
}

/* Animazioni */
@keyframes dtt-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Responsive styles moved to assets/css/responsive.css */



/* News Template Banner */
.news-hero {
  position: relative;
}

.news-hero .it-hero-wrapper {
  padding: 0px 35px 50px;
}

.news-hero .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.news-hero .container {
  z-index: 2;
}

.news-hero-content {
  max-width: 77%;
}

.news-hero-content .hero-text {
  max-width: 100% !important;
}

/* Eventi Banner Slider */
.events-hero .it-hero-wrapper {
  padding: 0px 35px 140px !important;
}


.eventi-banner-slider {
  position: relative;
}

.eventi-banner-slider .splide__slide {
  height: auto;
}

.eventi-banner-slider .news-hero {
  width: 100%;
}

.eventi-banner-slider .splide__arrows {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  z-index: 100;
  pointer-events: none;
}

.eventi-banner-slider .splide__arrow {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  pointer-events: auto;
  z-index: 100;
}

.eventi-banner-slider .splide__arrow:hover {
  background-color: var(--bs-primary);
  color: white;
}

.eventi-banner-slider .splide__arrow--prev {
  left: 2rem;
}

.eventi-banner-slider .splide__arrow--next {
  right: 2rem;
}

.eventi-banner-slider .splide__arrow svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.eventi-banner-slider .splide__arrow--prev svg {
  transform: rotate(180deg);
}

.eventi-banner-slider .splide__arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}


/* Recent News Section */
.recent-news-section {
  background-color: var(--bs-primary);
  padding: 3rem 0;
  margin-top: 0;
  position: relative;
}

/* Se c'è il blocco event-cta dopo, aumenta il padding-bottom */
.recent-news-wrapper.has-event-cta .recent-news-section {
  padding-bottom: 180px;
}

.recent-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.recent-news-item {
  padding: 2rem;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.recent-news-item:last-child {
  border-right: none;
}

.recent-news-category {
  font-size: 0.75rem;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.recent-news-title {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  flex: 1;
  margin: 0;
}

.recent-news-title a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.recent-news-title a:hover {
  color: var(--bs-tertiary);
}

.recent-news-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  transition: color 0.3s ease;
}

.recent-news-link:hover {
  color: var(--bs-tertiary);
}

.recent-news-cta {
  margin-top: 3rem;
  text-align: center;
}

/* Article Header Styles */
.article-categories {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.category-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--bs-primary);
  color: #fff;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.category-badge:hover {
  background-color: var(--bs-tertiary);
  color: #fff;
  transform: translateY(-2px);
}

.tag-badge {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  background-color: transparent;
  border: 1.5px solid var(--bs-tertiary);
  color: var(--bs-tertiary);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
}

.tag-badge:hover {
  background-color: var(--bs-tertiary);
  color: #fff;
  transform: translateY(-2px);
}

.article-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--bs-tertiary);
}

.article-description {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #666;
}

.article-meta {
  display: flex;
  align-items: center;
  padding: 1.5rem 0;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
}

.article-date {
  display: flex;
  align-items: center;
  font-size: 1rem;
  color: #666;
  font-weight: 500;
}

.article-wrapper img {
  width: 100%;
  height: 100%;
}

.calendar-icon {
  width: 20px;
  height: 20px;
  stroke: var(--bs-primary);
  stroke-width: 2;
  fill: none;
}

/* Article Actions */
.article-meta .btn-dropdown {
  color: var(--bs-primary) !important;
  transition: color 0.3s ease;
}

.article-meta .btn-dropdown:hover {
  color: var(--bs-tertiary) !important;
}

.icon-action {
  width: 18px;
  height: 18px;
  stroke: var(--bs-primary) !important;
  stroke-width: 2;
  fill: none !important;
  transition: stroke 0.3s ease;
}

.article-meta .btn-dropdown:hover .icon-action {
  stroke: var(--bs-tertiary) !important;
}

.dropdown-menu .icon-action {
  stroke: currentColor !important;
}


/* News Sidebar */
.news-sidebar {
  position: sticky;
  top: 0;
  background: var(--bs-tertiary);
  border-radius: 0;
  padding: 2.5rem 2rem;
  height: 100vh;
  max-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Sidebar Archive (Eventi & News) */
.eventi-sidebar-archive,
.news-sidebar-archive {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.sidebar-section {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 2rem;
}

.sidebar-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-archive-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sidebar-archive-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}

.sidebar-archive-link:hover {
  color: #fff;
  border-bottom-color: var(--bs-primary);
  padding-left: 0.5rem;
}

.sidebar-count {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

.sidebar-archive-link:hover .sidebar-count {
  color: var(--bs-primary);
}

.sidebar-tags {
  flex-wrap: wrap;
  flex-direction: row;
  gap: 0.5rem;
}

.sidebar-tag-link {
  display: inline-flex;
  padding: 0.4rem 0.8rem;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  font-size: 0.875rem;
  margin-bottom: 0;
}

.sidebar-tag-link:hover {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
  padding-left: 0.8rem;
}

/* Sidebar Accordion */
.sidebar-accordion {
  border: none;
  background: transparent;
}

.sidebar-accordion-item {
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
}

.sidebar-accordion-item:last-child {
  border-bottom: none;
}

.sidebar-accordion-button {
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  padding: 0.75rem 0;
  font-size: 0.95rem;
  font-weight: 500;
  border: none;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.sidebar-accordion-button:not(.collapsed) {
  background: transparent;
  color: #fff;
  box-shadow: none;
}

.sidebar-accordion-button:focus {
  box-shadow: none;
  border-color: transparent;
}

.sidebar-accordion-button .accordion-title-text {
  flex: 1;
  text-align: left;
  color: #fff;
}

.sidebar-accordion-button .accordion-icon {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0.5rem;
  color: #fff;
}

.sidebar-accordion-button .icon-plus,
.sidebar-accordion-button .icon-minus {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
}

.sidebar-accordion-button:not(.collapsed) .icon-plus {
  display: none;
}

.sidebar-accordion-button.collapsed .icon-minus {
  display: none;
}

.sidebar-accordion-body {
  padding: 0.75rem 0 0.5rem 0;
  background: transparent;
}

.sidebar-events-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-event-item {
  margin: 0;
}

.sidebar-event-link {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  padding: 0.5rem 0;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.sidebar-event-link:hover {
  color: #fff;
  border-bottom-color: var(--bs-primary);
  padding-left: 0.5rem;
}

.sidebar-event-title {
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
}

.sidebar-event-date {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
}

.sidebar-event-link:hover .sidebar-event-date {
  color: var(--bs-primary);
}

.news-sidebar-title {
  color: #fff;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 3px solid var(--bs-primary);
  position: relative;
}

.news-sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.news-sidebar-item {
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.news-sidebar-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}


.news-sidebar-link {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  text-decoration: none;
  color: #fff;
  transition: all 0.3s ease;
}


.news-sidebar-link:hover .news-sidebar-image {
  transform: scale(1.05);
    border: 2px solid rgba(var(--bs-primary-rgb), 1);

}

.news-sidebar-image {
  flex-shrink: 0;
  width: 90px;
  height: 90px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 2px solid rgba(var(--bs-primary-rgb), 0.1);
}

.news-sidebar-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-sidebar-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.news-sidebar-category {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--bs-primary);
  letter-spacing: 0.8px;
  display: inline-block;
}

.news-sidebar-item-title {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-sidebar-date {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

/* Scrollbar for sidebar */
.news-sidebar::-webkit-scrollbar {
  width: 6px;
}

.news-sidebar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

.news-sidebar::-webkit-scrollbar-thumb {
  background: var(--bs-primary);
  border-radius: 3px;
}

.news-sidebar::-webkit-scrollbar-thumb:hover {
  background: #fff;
}

/* Event Single Page */
.event-hero-image {
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
}

.event-hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Archive Pages */


.archive-page-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--bs-tertiary);
  margin-top: 1rem;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.archive-pagination-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
}

.no-posts {
  text-align: center;
  padding: 4rem 2rem;
  color: #666;
}

.no-posts p {
  font-size: 1.125rem;
  margin: 0;
}


/* Article Gallery */
.article-gallery-section {
  margin: 3rem 0;
  padding-top: 3rem;
  border-top: 1px solid #e0e0e0;
}

.article-gallery-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--bs-tertiary);
  margin-bottom: 2rem;
}

.article-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.article-gallery-item {
  display: block;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background-color: #f5f5f5;
}

.article-gallery-image-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.article-gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.article-gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.article-gallery-item:hover .article-gallery-overlay {
  opacity: 1;
}

.article-gallery-item:hover .article-gallery-image {
  transform: scale(1.1);
}

.gallery-icon {
  width: 48px;
  height: 48px;
  stroke: #fff;
  stroke-width: 2;
  fill: none;
}


/* Rating Stars */
fieldset.rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  padding: 0;
}

fieldset.rating input[type="radio"] {
  display: none;
}

.rating-star {
  cursor: pointer;
  transition: transform 0.2s ease;
  display: flex;
  align-items: center;
}

.rating-star:hover {
  transform: scale(1.1);
}

.rating-star-icon {
  width: 40px;
  height: 40px;
  fill: #ddd !important;
  stroke: none !important;
  transition: all 0.3s ease;
}

/* Hover effect - fill stars on hover and all stars to the right */
fieldset.rating .rating-star:hover .rating-star-icon,
fieldset.rating .rating-star:hover ~ .rating-star .rating-star-icon {
  fill: #fff200 !important;
  stroke: #fff200 !important;
}

/* Checked state - fill stars when selected and all stars to the right */
fieldset.rating input[type="radio"]:checked ~ label.rating-star .rating-star-icon,
fieldset.rating input[type="radio"]:checked ~ label.rating-star ~ label.rating-star .rating-star-icon {
  fill: #fff200 !important;
  stroke: #fff200 !important;
}

/* Rating feedback answers */
label[data-element="feedback-rating-answer"]::before {
  border-color: var(--bs-primary) !important;
}

label[data-element="feedback-rating-answer"]::after {
  background-color: var(--bs-primary) !important;
  border-color: var(--bs-primary) !important;
}



.news-hero-content .hero-text p {
  color: #fff !important;
  font-size: 20px !important;
}


/* Event CTA */
.event-cta {
  background-color: #fff;
  border-top: 8px solid var(--bs-tertiary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  margin-top: -140px;
  position: relative;
  transition: border-color 0.3s ease;
  z-index: 1;
}

.event-cta:hover {
  border-top-color: var(--bs-primary);
}

.event-cta-label h2 {
  font-size: 2rem;
}

.event-cta-content {
  padding-left: 2rem;
  border-left: 1px solid #e5e5e5;
}

.event-date {
  color: var(--bs-tertiary);
  font-size: 1.5rem;
}

.event-title a {
  color: var(--bs-dark);
  font-size: 2.5rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

.event-title a:hover {
  color: var(--bs-primary);
}



/* News Grid Style */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  align-items: stretch;
}

.news-card {
  background-color: var(--bs-tertiary);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}


.news-card-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.news-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-card-category {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--bs-white);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.news-card-date {
  font-size: 0.875rem;
  color: var(--bs-white);
  margin-bottom: 0.75rem;
  opacity: 0.8;
}

.news-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.news-card-title a {
  color: var(--bs-white);
  text-decoration: none;
  transition: color 0.3s ease;
}

.news-card-title a:hover {
  color: var(--bs-primary);
}

.news-card-excerpt {
  font-size: 0.9rem;
  color: var(--bs-white);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
  opacity: 0.9;
}

.news-card-no-image {
  background-color: var(--bs-tertiary);
}

.news-card-no-image .news-card-body {
  background-color: transparent;
}


/* News Section */
.news-title {
  position: sticky;
  top: 100px;
  padding-left: 5rem;
  padding-right: 3rem;
}

.news-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
}

.news-item-hidden {
  display: none !important;
}

/* News Pagination */
.news-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 2rem;
  padding: 1rem;
}

.news-page-btn {
  min-width: 44px;
  height: 44px;
  padding: 0.5rem;
  border: 2px solid var(--bs-tertiary);
  background: transparent;
  color: var(--bs-tertiary);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-page-btn:hover:not(:disabled) {
  background-color: var(--bs-tertiary);
  color: #fff;
}

.news-page-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  border-color: #ccc;
  color: #ccc;
}

.news-page-icon {
  width: 20px;
  height: 20px;
}

.news-page-numbers {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.news-page-num {
  min-width: 44px;
  height: 44px;
  padding: 0.5rem;
  border: 2px solid var(--bs-tertiary);
  background: transparent;
  color: var(--bs-tertiary);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.news-page-num:hover:not(.active) {
  background-color: var(--bs-tertiary);
  color: #fff;
}

.news-page-num.active {
  background-color: var(--bs-tertiary);
  color: #fff;
}


/* Evento Card (Box Style) */
.evento-card {
  text-decoration: none;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.evento-card .box-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.evento-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.evento-date-box {
  background-color: rgba(255, 255, 255, 0.2);
  padding: 0.75rem;
  min-width: 60px;
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: background-color 0.3s ease;
}

.evento-day {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  display: block;
  transition: color 0.3s ease;
}

.evento-month {
  font-size: 0.875rem;
  text-transform: uppercase;
  display: block;
  margin-top: 0.25rem;
  transition: color 0.3s ease;
}

.evento-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex: 1;
}

.evento-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.9;
  transition: color 0.3s ease;
}

.evento-card:hover .evento-day,
.evento-card:hover .evento-month,
.evento-card:hover .evento-category {
  color: var(--bs-primary);
}

.evento-content {
  flex: 1;
  margin-bottom: 1rem;
}

.evento-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.3;
  color: #fff;
}

.evento-description {
  font-size: 0.9rem;
  color: #fff;
  line-height: 1.6;
  opacity: 0.9;
}

.evento-arrow {
  display: flex;
  justify-content: flex-end;
  transition: transform 0.3s ease;
}

.evento-arrow .icon {
  color: #fff;
  transition: fill 0.3s ease;
}

.evento-card:hover .evento-arrow {
  transform: translateX(4px);
}
.evento-card:hover .evento-arrow .icon {
  fill: var(--bs-primary) !important;
}


/* Contatti Page */
.contatti-section {
  min-height: 60vh;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--bs-heading-color);
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--bs-heading-color);
  margin-bottom: 2rem;
}

/* Contatti Info Row */
.contatti-info-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.contatti-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--bs-tertiary);
  color: #fff;
  flex: 1;
  min-width: 250px;
}

.contatti-info-item-full {
  width: 100%;
  margin-top: 1rem;
}

.contatti-info-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bs-primary);
  border-radius: 50%;
  color: #fff;
}

.contatti-info-icon .icon {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
}

.contatti-info-content {
  flex: 1;
}

.contatti-info-label {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  margin-bottom: 0.5rem;
}

.contatti-info-value {
  font-size: 1.125rem;
  color: #fff;
  text-decoration: none;
  display: block;
  line-height: 1.6;
}

.contatti-info-value:hover {
  color: var(--bs-primary);
}

/* Contatti Text Content */
.contatti-text-content {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--bs-body-color);
}

.contatti-text-content p {
  margin-bottom: 1rem;
}

/* Contatti Mappa */
.contatti-mappa-wrapper {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.contatti-mappa-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Contatti Sections */
.contatti-dove-siamo-section,
.contatti-come-raggiungerci-section {
  padding: 3rem 0;
}

.contatti-come-raggiungerci-section .feature-block-label-content {
  font-size: 1rem;
  opacity: 1;
  line-height: 1.6;
}

.contatti-come-raggiungerci-section .feature-block-label-content p {
  margin-bottom: 1rem;
}

.contatti-come-raggiungerci-section .feature-block-label-content p:last-child {
  margin-bottom: 0;
}

.contatti-dove-siamo-section .section-title,
.contatti-mappe-section .section-title,
.contatti-form-section .section-title {
  background: var(--bs-tertiary);
  color: #fff;
  padding: 1rem 1.5rem;
  margin: 0 0 2rem 0;
  display: inline-block;
}

/* Contatti Form Section */
.contatti-form-section {
  padding: 3rem 0;
}

.contatti-form {
  max-width: 800px;
}

.contatti-form .form-label {
  font-weight: 600;
  color: var(--bs-body-color);
  margin-bottom: 0.5rem;
}

.contatti-form .form-control {
  border: 2px solid var(--bs-border-color);
  border-radius: 4px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.contatti-form .form-control:focus {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
  outline: none;
}

.contatti-form .form-check-label {
  font-size: 0.9rem;
  color: var(--bs-body-color);
}

.contatti-form .form-check-label a {
  color: var(--bs-primary);
  text-decoration: underline;
}

.contatti-form .form-check-label a:hover {
  color: var(--bs-tertiary);
}

/* Contact Form 7 Styles */
.contatti-form-section .wpcf7-form-control {
  width: 100% !important;
  box-sizing: border-box;
  border: 2px solid var(--bs-border-color);
  border-radius: 4px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background-color: #fff;
  color: var(--bs-body-color);
}

.contatti-form-section input[type="text"],
.contatti-form-section input[type="email"],
.contatti-form-section input[type="tel"],
.contatti-form-section input[type="url"],
.contatti-form-section input[type="date"],
.contatti-form-section input[type="number"],
.contatti-form-section textarea {
  width: 100% !important;
  box-sizing: border-box;
}

/* Assicura che gli input dentro le colonne Bootstrap prendano tutta la larghezza */
.contatti-form-section .row input[type="text"],
.contatti-form-section .row input[type="email"],
.contatti-form-section .row input[type="tel"],
.contatti-form-section .row input[type="url"],
.contatti-form-section .row input[type="date"],
.contatti-form-section .row input[type="number"],
.contatti-form-section .row textarea,
.contatti-form-section .col-sm-6 input[type="text"],
.contatti-form-section .col-sm-6 input[type="email"],
.contatti-form-section .col-sm-6 input[type="tel"],
.contatti-form-section .col-sm-6 input[type="url"],
.contatti-form-section .col-sm-6 input[type="date"],
.contatti-form-section .col-sm-6 input[type="number"],
.contatti-form-section .col-sm-12 input[type="text"],
.contatti-form-section .col-sm-12 input[type="email"],
.contatti-form-section .col-sm-12 input[type="tel"],
.contatti-form-section .col-sm-12 input[type="url"],
.contatti-form-section .col-sm-12 input[type="date"],
.contatti-form-section .col-sm-12 input[type="number"],
.contatti-form-section .col-sm-12 textarea,
.contatti-form-section .col-sm-6 textarea {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

/* Assicura che i label non limitino la larghezza degli input */
.contatti-form-section .row label,
.contatti-form-section .col-sm-6 label,
.contatti-form-section .col-sm-12 label {
  display: block;
  width: 100%;
}

.contatti-form-section .row label input,
.contatti-form-section .row label textarea,
.contatti-form-section .col-sm-6 label input,
.contatti-form-section .col-sm-6 label textarea,
.contatti-form-section .col-sm-12 label input,
.contatti-form-section .col-sm-12 label textarea {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

.contatti-form-section .wpcf7-form-control:focus {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
  outline: none;
}

.contatti-form-section .wpcf7-textarea {
  min-height: 120px;
  resize: vertical;
}

.contatti-form-section .wpcf7-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
  padding-right: 2.5rem;
  appearance: none;
}

.contatti-form-section .wpcf7-checkbox,
.contatti-form-section .wpcf7-radio {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.contatti-form-section .wpcf7-list-item {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contatti-form-section .wpcf7-list-item input[type="checkbox"],
.contatti-form-section .wpcf7-list-item input[type="radio"] {
  width: auto;
  margin: 0;
  cursor: pointer;
}

.contatti-form-section .wpcf7-list-item label {
  margin: 0;
  font-weight: normal;
  cursor: pointer;
}

/* Stili per checkbox di accettazione privacy */
.contatti-form-section .wpcf7-acceptance,
.contatti-form-section .privacy-checkbox {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: none;
}

.contatti-form-section .wpcf7-acceptance input[type="checkbox"],
.contatti-form-section .privacy-checkbox input[type="checkbox"] {
  width: 20px !important;
  min-width: 20px;
  height: 20px;
  margin-right: 10px !important;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  border: 2px solid var(--bs-primary);
  border-radius: 3px;
  background-color: #fff;
  position: relative;
  vertical-align: middle;
}

.contatti-form-section .wpcf7-acceptance input[type="checkbox"]:checked,
.contatti-form-section .privacy-checkbox input[type="checkbox"]:checked {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
}

.contatti-form-section .wpcf7-acceptance input[type="checkbox"]:checked::after,
.contatti-form-section .privacy-checkbox input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  line-height: 1;
}

.contatti-form-section .wpcf7-acceptance .wpcf7-list-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  border: none;
}

.contatti-form-section .wpcf7-acceptance .wpcf7-list-item label,
.contatti-form-section .privacy-checkbox label {
  margin: 0;
  font-weight: normal;
  cursor: pointer;
  line-height: 1.5;
  flex: 1;
  display: inline;
  border: none;
}

/* Rimuove bordi dai container della checkbox */
.contatti-form-section .col-sm-12.privacy-checkbox,
.contatti-form-section .col-sm-12 .privacy-checkbox,
.contatti-form-section .col-sm-12 .wpcf7-acceptance {
  border: none;
  background: transparent;
}

.contatti-form-section .privacy-checkbox .wpcf7-form-control-wrap {
  border: none;
}

.contatti-form-section .wpcf7-submit {
  background-color: var(--bs-primary);
  color: #fff;
  border: none;
  border-radius: 0;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contatti-form-section .wpcf7-submit:hover {
  background-color: var(--bs-tertiary);
}

.contatti-form-section .wpcf7-submit:active {
  transform: translateY(0);
}

.contatti-form-section .wpcf7-response-output {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
}

.contatti-form-section .wpcf7-mail-sent-ok {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.contatti-form-section .wpcf7-mail-sent-ng,
.contatti-form-section .wpcf7-aborted,
.contatti-form-section .wpcf7-spam {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.contatti-form-section .wpcf7-validation-errors,
.contatti-form-section .wpcf7-not-valid-tip {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.contatti-form-section .wpcf7-not-valid {
  border-color: #dc3545 !important;
}

.contatti-form-section .wpcf7-valid {
  border-color: #28a745 !important;
}

.contatti-form-section .wpcf7-form-control-wrap {
  margin-bottom: 1.5rem;
}

.contatti-form-section .wpcf7-form-control-wrap label {
  display: block;
  font-weight: 600;
  color: var(--bs-body-color);
  margin-bottom: 0.5rem;
}

.contatti-form-section .wpcf7-form-control-wrap .required {
  color: #dc3545;
}

/* Come raggiungerci usa boxes layout */
.contatti-come-raggiungerci-section .boxes-title {
  margin-bottom: 0;
}

.contatti-come-raggiungerci-section .box-card {
  cursor: default;
}

.contatti-come-raggiungerci-section .box-card:hover {
  transform: none;
}

/* Contatti Mappe Section */
.contatti-mappe-section {
  padding: 3rem 0;
}

.contatti-mappe-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.contatti-mappe-grid .gallery-item {
  aspect-ratio: unset;
}

.contatti-mappa-item {
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
}

.contatti-mappa-item:hover {
  transform: translateY(-4px);
}

.contatti-mappa-item .contatti-mappa-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 400px;
  margin-bottom: 0;
}

.contatti-mappa-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.contatti-mappa-item:hover .contatti-mappa-image {
  transform: scale(1.05);
}

.contatti-mappa-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.contatti-mappa-item:hover .contatti-mappa-overlay {
  opacity: 1;
}

.contatti-mappa-icon {
  width: 48px;
  height: 48px;
  color: #fff;
  stroke: currentColor;
  fill: none;
}

/* ============================================
   TENDERS (GARE) STYLES
   ============================================ */

/* General icon styles for Lucide icons */
.tenders-section .icon,
.tender-detail-section .icon {
  display: inline-block;
  stroke: currentColor;
  fill: none;
  vertical-align: middle;
}

.tenders-section .icon-xs,
.tender-detail-section .icon-xs {
  width: 14px;
  height: 14px;
}

.tenders-section .icon-sm,
.tender-detail-section .icon-sm {
  width: 20px;
  height: 20px;
}

.tenders-section .icon-white,
.tender-detail-section .icon-white {
  stroke: #fff;
  fill: none;
}

.tenders-intro-section {
  padding: 3rem 0;
}

.tenders-intro-content {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.tenders-platform-link {
  margin-top: 2rem;
}

.tenders-platform-link .icon {
  display: inline-block;
  stroke: currentColor;
  fill: none;
  vertical-align: middle;
}

.tenders-platform-link .icon-sm {
  width: 20px;
  height: 20px;
}

.tenders-platform-link .icon-white {
  stroke: #fff;
  fill: none;
}

.tenders-section {
  padding: 3rem 0;
}

.tenders-section .section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--bs-tertiary);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--bs-primary);
}

.tenders-table-wrapper {
  overflow-x: auto;
  margin-top: 2rem;
}

.tenders-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tenders-table thead {
  background-color: var(--bs-tertiary);
  color: #fff;
}

.tenders-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tenders-table td {
  padding: 1rem;
  border-bottom: 1px solid #e5e5e5;
  font-size: 0.95rem;
}

.tenders-table tbody tr:hover {
  background-color: #f8f9fa;
}

.tenders-table tbody tr:last-child td {
  border-bottom: none;
}

.tenders-table a {
  color: var(--bs-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.tenders-table a:hover {
  color: var(--bs-tertiary);
  text-decoration: underline;
}

.tenders-table .icon {
  width: 14px;
  height: 14px;
  vertical-align: middle;
  display: inline-block;
  stroke: currentColor;
  fill: none;
  flex-shrink: 0;
}

.no-tenders {
  text-align: center;
  padding: 3rem;
  color: #666;
  font-size: 1.125rem;
}

/* Tender Detail Page */
.tender-detail-section {
  padding: 3rem 0;
}

.tender-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--bs-tertiary);
  margin-bottom: 2rem;
}

.tender-meta {
  background-color: var(--bs-tertiary);
  padding: 2rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tender-meta-item {
  display: flex;
  gap: 1rem;
  color: #fff;
}

.tender-meta-item strong {
  min-width: 200px;
  font-weight: 600;
}

.tender-meta-item span {
  flex: 1;
}

.tender-content {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.tender-actions {
  margin-top: 2rem;
}

/* Tender Atti e Documenti Section */
.tender-atti-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--bs-tertiary);
}

.tender-atti-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--bs-tertiary);
  margin-bottom: 1.5rem;
}

.tender-atti-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tender-atti-item {
  background-color: #f8f9fa;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.tender-atti-item:hover {
  background-color: #e9ecef;
  border-color: var(--bs-primary);
}

.tender-atti-link {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  color: var(--bs-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.tender-atti-link:hover {
  color: var(--bs-tertiary);
  text-decoration: none;
}

.tender-atti-link .icon {
  flex-shrink: 0;
  display: inline-block;
  stroke: currentColor;
  fill: none;
  vertical-align: middle;
}

.tender-atti-link .icon-sm {
  width: 20px;
  height: 20px;
}

.tender-atti-link .icon-xs {
  width: 14px;
  height: 14px;
}

/* ============================================
   SKIP LINKS - Accessibilità AGID
   ============================================ */

.skiplink {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10000;
}

.skiplink a {
  position: absolute;
  top: -100px;
  left: 0;
  padding: 0.5rem 1rem;
  background-color: var(--bs-primary);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  z-index: 10001;
  border-radius: 0 0 4px 0;
}

.skiplink a:focus {
  top: 0;
  outline: 3px solid var(--bs-primary);
  outline-offset: 2px;
}

/* Classe Bootstrap Italia per elementi nascosti visivamente ma accessibili */
.visually-hidden-focusable {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.visually-hidden-focusable:focus {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: auto !important;
  height: auto !important;
  padding: 0.5rem 1rem !important;
  margin: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  white-space: normal !important;
  z-index: 10000 !important;
  background-color: var(--bs-primary) !important;
  color: #ffffff !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  border-radius: 0 0 4px 0 !important;
  outline: 3px solid var(--bs-primary) !important;
  outline-offset: 2px !important;
}

/* ============================================
   HEADER - Miglioramento contrasto AGID
   ============================================ */

/* Assicura contrasto sufficiente per il brand title nell'header principale */
.it-header-center-wrapper .it-brand-title {
  color: #ffffff !important;
  font-weight: 600;
}

.it-header-center-wrapper .it-brand-tagline {
  color: #ffffff !important;
  font-weight: 400;
}

/* Assicura contrasto sufficiente per il testo del search wrapper */
.it-header-center-wrapper .it-search-wrapper span {
  color: #ffffff !important;
  font-weight: 500;
}
