/* =============================================
   BASE THEME - Stili personalizzati
   Bootstrap 5.3 viene caricato via CDN in functions.php
   Aggiungi qui le tue personalizzazioni
   ============================================= */

:root {
  --main: #262626;
  --main-rgb: 38,38,38;
  --bs-body-color: var(--main);
  --bs-body-color-rgb: var(--main-rgb);
  --bs-primary: #8CAFB7;
  --bs-primary-rgb: 140, 175, 183;
  --blue: #054267;
  --base-header-bg: #ffffff;
  --base-footer-bg: #F8F8F8;
  --base-site-bg: #F8F8F8;
  --base-footer-color: #000000;
  --base-transition: 0.3s ease;

  --bs-link-color-rgb: var(--bs-primary-rgb);
  --bs-link-hover-color-rgb: 112, 140, 146;
}

/* ----- Layout ----- */
body {
  min-height: 100vh;
}

#content {
  flex: 1 0 auto;
}

/* ----- Header ----- */
#masthead {
  background-color: var(--base-header-bg);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1030;
}

#masthead .site-title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

#masthead .site-title a {
  color: inherit;
  text-decoration: none;
}

#masthead .site-description {
  font-size: 0.8rem;
  color: #6c757d;
  margin: 0;
}

.site-main {
  background-color: var(--base-site-bg);
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.contenuto {
  background-color: var(--bs-white);
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.16);
}
/* ----- Navigazione ----- */
.navbar-nav .nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  padding-left: 0.75rem !important;
  padding-right: 0.75rem !important;
  transition: color var(--base-transition);
}

/* ----- Hero (front page) ----- */
.base-hero {
  background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
  color: #fff;
  padding: 5rem 0;
}

/* ----- Card post ----- */
.base-post-card {
  border: none;
  border-radius: 0.75rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  transition: transform var(--base-transition), box-shadow var(--base-transition);
  overflow: hidden;
}

.base-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.base-post-card .card-img-top {
  height: 200px;
  object-fit: cover;
}

.base-post-card .card-title a {
  color: inherit;
  text-decoration: none;
}

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

/* ----- Singolo post ----- */
.single-post-header {
  border-bottom: 3px solid var(--bs-primary);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

.entry-content a {
  color: var(--bs-primary);
}

/* ----- Sidebar ----- */
.widget {
  margin-bottom: 2rem;
}

.widget-title {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #495057;
  border-bottom: 2px solid var(--bs-primary);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

/* ----- Paginazione ----- */
.base-pagination .page-link {
  border-radius: 0.375rem;
  margin: 0 2px;
  border: none;
  color: #495057;
}

.base-pagination .page-link:hover,
.base-pagination .page-item.active .page-link {
  background-color: var(--bs-primary);
  color: #fff;
}

/* ----- Commenti ----- */
.comment-list {
  list-style: none;
  padding: 0;
}

.comment-body {
  background: #f8f9fa;
  border-radius: 0.5rem;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.comment-author .fn {
  font-weight: 700;
}

/* ----- Footer ----- */
#colophon {
  background-color: var(--base-footer-bg);
  color: var(--base-footer-color);
  padding: 3rem 0 3rem;
  flex-shrink: 0;
  border-bottom: 18px solid var(--bs-primary);
}

#colophon a {
  color: var(--bs-primary);
  text-decoration: none;
}

#colophon a:hover {
  color: #708C92;
}

#colophon .footer-widget-title {
  color: var(--bs-primary);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.site-info {
  font-size: 0.85rem;
}

.custom-logo {
  max-width: 100%;
  height: auto;
  max-height: 100%;
}

/* ----- Tipografia ----- */
.p-mb p:not(:last-child),
.li-mb li {
    margin-bottom: 1rem;
}
.p-mb p:last-child {
    margin-bottom: 0;
}
.p-mb-0 p {
    margin-bottom: 0 !important;
}
.h-fst-italic :is(h1, h2, h3, h4, h5, h6) {
  font-style: italic !important;
}

.h-fw-lighter :is(h1, h2, h3, h4, h5, h6) {
  font-weight: lighter !important;
}

.h-fw-light :is(h1, h2, h3, h4, h5, h6) {
  font-weight: 300 !important;
}

.h-fw-normal :is(h1, h2, h3, h4, h5, h6) {
  font-weight: 400 !important;
}

.h-fw-medium :is(h1, h2, h3, h4, h5, h6) {
  font-weight: 500 !important;
}

.h-fw-semibold :is(h1, h2, h3, h4, h5, h6) {
  font-weight: 600 !important;
}

.h-fw-bold :is(h1, h2, h3, h4, h5, h6) {
  font-weight: 700 !important;
}

.h-fw-bolder :is(h1, h2, h3, h4, h5, h6) {
  font-weight: bolder !important;
}
.h-uppercase :is(h1, h2, h3, h4, h5, h6) {
  text-transform: uppercase !important;
}
:is(.h-my-0, .h-mt-0) :is(h1, h2, h3, h4, h5, h6) {
  margin-top: 0 !important;
}
:is(.h-my-0, .h-mb-0) :is(h1, h2, h3, h4, h5, h6) {
  margin-bottom: 0 !important;
}
:is(.h-my-3, .h-mt-3) :is(h1, h2, h3, h4, h5, h6) {
  margin-top: 1rem !important;
}
:is(.h-my-3, .h-mb-3) :is(h1, h2, h3, h4, h5, h6) {
  margin-bottom: 1rem !important;
}
:is(.h-my-4, .h-mt-4) :is(h1, h2, h3, h4, h5, h6) {
  margin-top: 1.5rem !important;
}
:is(.h-my-4, .h-mb-4) :is(h1, h2, h3, h4, h5, h6) {
  margin-bottom: 1.5rem !important;
}
:is(.h-my-5, .h-mt-5) :is(h1, h2, h3, h4, h5, h6) {
  margin-top: 3rem !important;
}
:is(.h-my-5, .h-mb-5) :is(h1, h2, h3, h4, h5, h6) {
  margin-bottom: 3rem !important;
}
.h-display-1 :is(h1, h2, h3) {
  font-size: calc(1.625rem + 4.5vw);
  font-weight: 300;
  line-height: 1.2;
}
.h-display-2 :is(h1, h2, h3) {
  font-size: calc(1.575rem + 3.9vw);
  font-weight: 300;
  line-height: 1.2;
}
.h-display-3 :is(h1, h2, h3) {
  font-size: calc(1.525rem + 3.3vw);
  font-weight: 300;
  line-height: 1.2;
}
.h-display-4 :is(h1, h2, h3) {
  font-size: calc(1.475rem + 2.7vw);
  font-weight: 300;
  line-height: 1.2;
}
.h-display-5 :is(h1, h2, h3) {
  font-size: calc(1.425rem + 2.1vw);
  font-weight: 300;
  line-height: 1.2;
}
.h-display-6 :is(h1, h2, h3) {
  font-size: calc(1.375rem + 1.5vw);
  font-weight: 300;
  line-height: 1.2;
}
.h-fs-1 :is(h1, h2, h3):not([class^="fs-"]):not([class*=" fs-"]),
.text-fs-1 :is(p, li) {
  font-size: calc(1.375rem + 1.5vw) !important;
}

.h-fs-2 :is(h1, h2, h3):not([class^="fs-"]):not([class*=" fs-"]),
.text-fs-2 :is(p, li),
.big-fs-2 big {
  font-size: calc(1.325rem + 0.9vw) !important;
}

.h-fs-3 :is(h1, h2, h3):not([class^="fs-"]):not([class*=" fs-"]),
.text-fs-3 :is(p, li) {
  font-size: calc(1.3rem + 0.6vw) !important;
}

.h-fs-4 :is(h1, h2, h3):not([class^="fs-"]):not([class*=" fs-"]),
.text-fs-4 :is(p, li) {
  font-size: calc(1.275rem + 0.3vw) !important;
}

.h-fs-5 :is(h1, h2, h3):not([class^="fs-"]):not([class*=" fs-"]),
.text-fs-5 :is(p, li) {
  font-size: 1.25rem !important;
}

.h-fs-6 :is(h1, h2, h3):not([class^="fs-"]):not([class*=" fs-"]),
.text-fs-6 :is(p, li) {
  font-size: 1rem !important;
}
@media (min-width: 1200px) {
  .h-display-1 :is(h1, h2, h3) {
    font-size: 5rem;
  }
  .h-display-2 :is(h1, h2, h3) {
    font-size: 4.5rem;
  }
  .h-display-3 :is(h1, h2, h3) {
    font-size: 4rem;
  }
  .h-display-4 :is(h1, h2, h3) {
    font-size: 3.5rem;
  }
  .h-display-5 :is(h1, h2, h3) {
    font-size: 3rem;
  }
  .h-display-6 :is(h1, h2, h3) {
    font-size: 2.5rem;
  }
  .h-fs-1 :is(h1, h2, h3):not([class^="fs-"]):not([class*=" fs-"]),
  .text-fs-1 :is(p, li) {
    font-size: 2.5rem !important;
  }
  .h-fs-2 :is(h1, h2, h3):not([class^="fs-"]):not([class*=" fs-"]),
  .text-fs-2 :is(p, li),
  .big-fs-2 big {
    font-size: 2rem !important;
  }
  .h-fs-3 :is(h1, h2, h3):not([class^="fs-"]):not([class*=" fs-"]),
  .text-fs-3 :is(p, li) {
    font-size: 1.75rem !important;
  }
  .h-fs-4 :is(h1, h2, h3):not([class^="fs-"]):not([class*=" fs-"]),
  .text-fs-4 :is(p, li) {
    font-size: 1.5rem !important;
  }
}

/* ----- Colors ----- */
.custom-tooltip {
  --bs-tooltip-bg: #E8EFF1;
  --bs-tooltip-color: var(--var-main);
}
.text-main {
  --bs-text-opacity: 1;
  color: rgba(var(--bs-main-rgb), var(--bs-text-opacity)) !important;
}
.bg-hover-primary {  
  --bs-bg-opacity: 1;
  background-color:  inherit;
  transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out;
}
.bg-hover-primary:hover {  
  background-color: rgba(
    var(--bs-primary-rgb),
    var(--bs-bg-opacity)
  ) !important;
}
.bg-hover-primary:hover .text-main {
  color: rgba(var(--bs-white-rgb), var(--bs-text-opacity)) !important;
}

.nav-pills {
  --bs-nav-pills-border-radius: 0;
  --bs-nav-pills-link-active-color: #fff;
  --bs-nav-pills-link-active-bg: var(--bs-primary);
  --bs-link-hover-color: var(--bs-primary);
  --bs-nav-link-color: var(--bs-primary);
}
.nav-pills .nav-link {
  border: 1px solid var(--bs-primary);
}
.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: #8CAFB7;
  --bs-btn-border-color: #8CAFB7;

  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #77959C;
  --bs-btn-hover-border-color: #708C92;

  --bs-btn-focus-shadow-rgb: 157, 187, 194;

  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #708C92;
  --bs-btn-active-border-color: #698389;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);

  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #8CAFB7;
  --bs-btn-disabled-border-color: #8CAFB7;
}

.btn-outline-primary {
  --bs-btn-color: #8CAFB7;
  --bs-btn-border-color: #8CAFB7;

  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #8CAFB7;
  --bs-btn-hover-border-color: #8CAFB7;

  --bs-btn-focus-shadow-rgb: 140, 175, 183;

  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #8CAFB7;
  --bs-btn-active-border-color: #8CAFB7;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);

  --bs-btn-disabled-color: #8CAFB7;
  --bs-btn-disabled-bg: transparent;
  --bs-btn-disabled-border-color: #8CAFB7;

  --bs-gradient: none;
}
.btn-white-link {
  --bs-btn-color: var(--bs-body-color);
  --bs-btn-bg: var(--bs-white);
  --bs-btn-border-color: var(--bs-white);

  --bs-btn-hover-color: var(--bs-body-color);
  --bs-btn-hover-bg: var(--bs-white);
  --bs-btn-hover-border-color: var(--bs-white);

  --bs-btn-focus-shadow-rgb: 157, 187, 194;

  --bs-btn-active-color: var(--bs-body-color);
  --bs-btn-active-bg: var(--bs-white);
  --bs-btn-active-border-color: var(--bs-white);
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);

  --bs-btn-disabled-color: var(--bs-body-color);
  --bs-btn-disabled-bg: var(--bs-white);
  --bs-btn-disabled-border-color: var(--bs-white);
  text-decoration: underline;
  --bs-btn-font-size: 0.875em;
}
.btn-white-link.btn-transparent-link {
  --bs-btn-border-color: transparent;
  --bs-btn-bg: transparent;
}
.text-white .btn-white-link.btn-transparent-link {
  --bs-btn-color: inherit;
}

.list-custom ul,
.list-custom ol {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 0;
}
.list-border-bottom li:not(:last-child) {
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--bs-primary);
  margin-bottom: 0.5rem;
}
.list-circle-primary ul,
.list-circle-primary ol {
  counter-reset: circle-primary;
}
.list-circle-primary li {
  /*counter-increment: circle-primary;*/
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
}
.list-circle-primary li::before {
  /*content: counter(circle-primary);*/
  content: '';
  position: absolute;
  top: 8px;
  left: 0;
  width: 10px;
  height: 10px;
  background-color: var(--bs-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* ----- Responsive ----- */
@media (max-width: 767.98px) {
  .base-hero {
    padding: 3rem 0;
  }
}

.card-icon-mask {
  background-color: var(--bs-primary);

  -webkit-mask-image: var(--icon-url);
  mask-image: var(--icon-url);

  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;

  -webkit-mask-position: center;
  mask-position: center;

  -webkit-mask-size: contain;
  mask-size: contain;
}

.card-riservata:hover .card-icon-mask {
/*  background-color: var(--bs-white);*/
}

.card-riservata, .card-riservata .btn-white-link.btn-transparent-link {
  transition: all .15s ease-in-out;
}

.card-riservata:hover .btn-white-link.btn-transparent-link {
  --bs-btn-border-color: var(--bs-white);
  --bs-btn-bg: var(--bs-white);
}

.card-riservata:hover, .card-riservata.bg-primary.text-white:hover {
  background-color: rgba(var(--bs-primary-rgb), .25)!important;
  color: var(--main) !important;
}
.wrap-list-unstyled ul,
.wrap-list-unstyled ol {
  padding-left: 0;
  list-style: none;
}

.soluzioni-columns {
  column-count: 1;
  column-gap: 1.5rem;
}

.soluzioni-item {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
}

@media (min-width: 768px) {
  .soluzioni-columns {
    column-count: 2;
  }
}

@media (min-width: 992px) {
  .soluzioni-columns {
    column-count: 3;
  }
}