/* ========================================
   FONT DEFINITIONS
   ======================================== */

@font-face {
  font-family: "Poppins Thin";
  src: url("../assets/fonts/poppins/Poppins-Thin.woff2") format("woff2"),
    url("../assets/fonts/poppins/Poppins-Thin.woff") format("woff"),
    url("../assets/fonts/poppins/Poppins-Thin.ttf") format("truetype");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins ThinItalic";
  src: url("../assets/fonts/poppins/Poppins-ThinItalic.woff2") format("woff2"),
    url("../assets/fonts/poppins/Poppins-ThinItalic.woff") format("woff"),
    url("../assets/fonts/poppins/Poppins-ThinItalic.ttf") format("truetype");
  font-weight: 100;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Poppins ExtraLight";
  src: url("../assets/fonts/poppins/Poppins-ExtraLight.woff2") format("woff2"),
    url("../assets/fonts/poppins/Poppins-ExtraLight.woff") format("woff"),
    url("../assets/fonts/poppins/Poppins-ExtraLight.ttf") format("truetype");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins ExtraLightItalic";
  src: url("../assets/fonts/poppins/Poppins-ExtraLightItalic.woff2")
      format("woff2"),
    url("../assets/fonts/poppins/Poppins-ExtraLightItalic.woff") format("woff"),
    url("../assets/fonts/poppins/Poppins-ExtraLightItalic.ttf")
      format("truetype");
  font-weight: 200;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Poppins Light";
  src: url("../assets/fonts/poppins/Poppins-Light.woff2") format("woff2"),
    url("../assets/fonts/poppins/Poppins-Light.woff") format("woff"),
    url("../assets/fonts/poppins/Poppins-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins LightItalic";
  src: url("../assets/fonts/poppins/Poppins-LightItalic.woff2") format("woff2"),
    url("../assets/fonts/poppins/Poppins-LightItalic.woff") format("woff"),
    url("../assets/fonts/poppins/Poppins-LightItalic.ttf") format("truetype");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Poppins Regular";
  src: url("../assets/fonts/poppins/Poppins-Regular.woff2") format("woff2"),
    url("../assets/fonts/poppins/Poppins-Regular.woff") format("woff"),
    url("../assets/fonts/poppins/Poppins-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins-Italic";
  src: url("../assets/fonts/poppins/Poppins-Italic.woff2") format("woff2"),
    url("../assets/fonts/poppins/Poppins-Italic.woff") format("woff"),
    url("../assets/fonts/poppins/Poppins-Italic.ttf") format("truetype");
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Poppins Medium";
  src: url("../assets/fonts/poppins/Poppins-Medium.woff2") format("woff2"),
    url("../assets/fonts/poppins/Poppins-Medium.woff") format("woff"),
    url("../assets/fonts/poppins/Poppins-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins MediumItalic";
  src: url("../assets/fonts/poppins/Poppins-MediumItalic.woff2") format("woff2"),
    url("../assets/fonts/poppins/Poppins-MediumItalic.woff") format("woff"),
    url("../assets/fonts/poppins/Poppins-MediumItalic.ttf") format("truetype");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Poppins SemiBold";
  src: url("../assets/fonts/poppins/Poppins-SemiBold.woff2") format("woff2"),
    url("../assets/fonts/poppins/Poppins-SemiBold.woff") format("woff"),
    url("../assets/fonts/poppins/Poppins-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins SemiBoldItalic";
  src: url("../assets/fonts/poppins/Poppins-SemiBoldItalic.woff2")
      format("woff2"),
    url("../assets/fonts/poppins/Poppins-SemiBoldItalic.woff") format("woff"),
    url("../assets/fonts/poppins/Poppins-SemiBoldItalic.ttf") format("truetype");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Poppins Bold";
  src: url("../assets/fonts/poppins/Poppins-Bold.woff2") format("woff2"),
    url("../assets/fonts/poppins/Poppins-Bold.woff") format("woff"),
    url("../assets/fonts/poppins/Poppins-Bold.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins BoldItalic";
  src: url("../assets/fonts/poppins/Poppins-BoldItalic.woff2") format("woff2"),
    url("../assets/fonts/poppins/Poppins-BoldItalic.woff") format("woff"),
    url("../assets/fonts/poppins/Poppins-BoldItalic.ttf") format("truetype");
  font-weight: bold;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Poppins ExtraBold";
  src: url("../assets/fonts/poppins/Poppins-ExtraBold.woff2") format("woff2"),
    url("../assets/fonts/poppins/Poppins-ExtraBold.woff") format("woff"),
    url("../assets/fonts/poppins/Poppins-ExtraBold.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins ExtraBoldItalic";
  src: url("../assets/fonts/poppins/Poppins-ExtraBoldItalic.woff2")
      format("woff2"),
    url("../assets/fonts/poppins/Poppins-ExtraBoldItalic.woff") format("woff"),
    url("../assets/fonts/poppins/Poppins-ExtraBoldItalic.ttf")
      format("truetype");
  font-weight: bold;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Poppins Black";
  src: url("../assets/fonts/poppins/Poppins-Black.woff2") format("woff2"),
    url("../assets/fonts/poppins/Poppins-Black.woff") format("woff"),
    url("../assets/fonts/poppins/Poppins-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins BlackItalic";
  src: url("../assets/fonts/poppins/Poppins-BlackItalic.woff2") format("woff2"),
    url("../assets/fonts/poppins/Poppins-BlackItalic.woff") format("woff"),
    url("../assets/fonts/poppins/Poppins-BlackItalic.ttf") format("truetype");
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

/* ========================================
   CSS VARIABLES
   ======================================== */

:root,
[data-bs-theme="light"] {
  /* Brand Colors */
  --bs-osf-red: #b00932;
  --bs-osf-red-hoverlight: #d22550;
  --bs-osf-red-hoverdarkmedium: #a2082f;
  --bs-osf-red-hoverdark: #7b0422;
  --bs-osf-red-bghover: #b009320a;
  --bs-osf-green: #01c17b;

  /* Neutral Colors */
  --bs-osf-greyligh: #f8f8f8;
  --bs-osf-verylightbrown2: #faf9f6;
  --bs-osf-verylightbrown: #e8e1d45c;
  --bs-osf-lightbrown: #e8e1d4;
  --bs-osf-grey: #cccccc;
  --bs-osf-lightbrownhover: #d2c9b6;
  --bs-osf-darkbrown: #c7beb0;
  --bs-osf-darkbrownborderheader: #d9d1c3;
  --bs-osf-bglightgrey: #f8f8f8;

  /* Text Colors */
  --bs-osf-textgrey: #757575;
  --bs-osf-textblack: #333333;

  /* Left Column Gradients */
  --bs-osf-leftcol-1: #96072c;
  --bs-osf-leftcol-2: #9c072d;
  --bs-osf-leftcol-3: #a80a32;

  /* bg colors */
  --bs-osf-color1: #d5e9f8;
  --bs-osf-color2: #e9ecef;
  --bs-osf-color3: #fff2e7;
  --bs-osf-color4: #eeced6;
  --bs-osf-color5: #dbeece;
}

/* ========================================
   BASE STYLES
   ======================================== */

html {
  font-size: 13px;
  scrollbar-color: #cecece transparent;
  scrollbar-width: thin;
}

body,
html {
  font-family: "Poppins Regular";
  color: var(--bs-osf-textblack);
}

body {
  opacity: 0;
  animation: fadeIn 0.4s ease-in forwards;
}

a {
  text-decoration: none;
}

a:hover {
  color: #000;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  body {
    animation: none;
    opacity: 1;
  }
}

* {
  scrollbar-color: #cecece #fff;
  scrollbar-width: thin;
}

.region-sidebar-first,
.region-sidebar-second,
.region-footer,
.region-content {
  padding: 0;
}

/* ========================================
   SCROLLBARS
   ======================================== */

::-webkit-scrollbar {
  width: 5px;
  height: 5px;
  background-color: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: #cecece;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #b0b0b0;
}

/* ========================================
   ANIMATIONS & KEYFRAMES
   ======================================== */

header#header {
  opacity: 0;
  transform: translateY(-50px);
  animation: slideDownFade 0.3s ease-out forwards;
}

.slide-down {
  opacity: 0;
  transform: translateY(-50px);
  animation: slideDownFade 0.8s ease-out forwards;
}

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

/* Animation Classes */
.fade-in {
  opacity: 0;
  animation: fadeIn 1.5s ease-out forwards;
}

@keyframes fadeInFixed {
  0% {
    opacity: 0;
    transform: translateY(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.fadeInFixed {
  opacity: 0;
  animation: fadeInFixed 1.5s ease-out forwards;
}

.blink {
  animation: blinker 1s linear infinite;
}

@keyframes blinker {
  50% {
    opacity: 0;
  }
}

.bounce {
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

.animate-top {
  transition: all 0.3s ease;
}

.animate-top:hover {
  transform: translateY(-5px);
}

.animate-left {
  transition: all 0.3s ease;
}

.animate-left:hover {
  transform: translateX(-5px);
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

.bg-1 {
  background-color: #cceceb;
}

.bg-modal-1 {
  background-color: #ecf9f9;
}

.bg-2 {
  background-color: #d5e9f8;
}

.bg-modal-2 {
  background-color: #eaf6ff;
}

.bg-3 {
  background-color: #fff2e7;
}

.bg-4 {
  background-color: #eeced6;
}

.bg-5 {
  background-color: #f8f8f8;
}

.bg-6 {
  background-color: #ffe0cc;
}

.bg-7 {
  background-color: #ffc4c5;
}

.bg-8 {
  background-color: #a3f3be;
}

.bg-9 {
  background-color: #ebf5fb;
}

.bg-10 {
  background-color: #f3f9fd;
}

.bg-11 {
  background-color: #e8e1d4;
}

.bg-12 {
  background-color: #e6f7ec; /* verde menta chiaro */
}
.bg-modal-12 {
  background-color: #f4fbf7; /* versione più chiara */
}

.bg-13 {
  background-color: #f9f0ff; /* lilla chiaro */
}
.bg-modal-13 {
  background-color: #fbf6ff; /* versione più chiara */
}

.bg-14 {
  background-color: #fef7e6; /* giallo pastello */
}
.bg-modal-14 {
  background-color: #fffbee; /* versione più chiara */
}

.bg-15 {
  background-color: #f0f4ff; /* azzurro-lilla chiarissimo */
}
.bg-modal-15 {
  background-color: #f8faff; /* versione più chiara */
}

.bg-16 {
  background-color: #ffeaf0; /* rosa cipria */
}
.bg-modal-16 {
  background-color: #fff4f7; /* versione più chiara */
}

.bg-17 {
  background-color: #e8f5f2; /* verde acqua chiarissimo */
}
.bg-modal-17 {
  background-color: #f3faf8; /* versione più chiara */
}

.bg-18 {
  background-color: #fdf3f0; /* albicocca chiarissimo */
}
.bg-modal-18 {
  background-color: #fef8f6; /* versione più chiara */
}

.bg-19 {
  background-color: #edf6f9; /* blu-verde ghiaccio */
}
.bg-modal-19 {
  background-color: #f6fafb; /* versione più chiara */
}

.bg-20 {
  background-color: #cceceb;
}

.bg-21 {
  background-color: #2f6996;
}

.bg-22 {
  background-color: #ebca3b;
}

.bg-23 {
  background-color: #34ac5d;
}

.bg-21b {
  background-color: #2f699638 !important;
}

.bg-22b {
  background-color: #ebcb3b42 !important;
}

.bg-23b {
  background-color: #34ac5e31 !important;
}

.bg-24b {
  background-color: #b009331f !important;
}

.bg-25 {
  background-color: #f4f4f4 !important;
}

.bg-deceduto {
  color: var(--bs-osf-red) !important;
  border: 1px solid var(--bs-osf-red) !important;
}

.fw-black {
  font-family: "Poppins ExtraBold";
}

.fw-bold {
  font-weight: normal !important;
  font-family: "Poppins Semibold" !important;
}

.text-danger {
  color: var(--bs-osf-red) !important;
}

.fw-semibold {
  font-family: "Poppins SemiBold";
}

.fw-normal {
  font-family: "Poppins Regular";
}

/* Red Text Variants */
.text-red {
  color: var(--bs-osf-red);
}

.text-osf-red {
  font-family: "Poppins SemiBold";
  color: var(--bs-osf-red);
}

.text-osf-red-md {
  font-size: 1.5385rem;
}

.text-osf-red-l {
  font-size: 1.7692rem;
}

.text-osf-red-xl {
  font-size: 1.9231rem;
}

/* Black Text Variants */
.text-osf-black {
  font-family: "Poppins SemiBold";
  color: var(--bs-osf-textblack);
}

.text-osf-black-md {
  font-size: 1.5385rem;
}

.text-osf-black-l {
  font-size: 1.7692rem;
}

.text-osf-black-xl {
  font-size: 1.9231rem;
}

/* Green Text */
.text-osf-green {
  font-family: "Poppins SemiBold";
  color: var(--bs-osf-green);
}

.fw-osf-semibold {
  font-family: "Poppins SemiBold";
}

.fw-osf-bold {
  font-family: "Poppins Bold";
}

.fw-osf-regular {
  font-family: "Poppins Regular";
}

.fw-osf-medium {
  font-family: "Poppins Medium";
}

.fw-osf-extrabold {
  font-family: "Poppins ExtraBold";
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

/* Border Radius */
.radius-5 {
  border-radius: 5px;
}

.radius-10 {
  border-radius: 10px;
}

/* Shadows */
.shadow-1 {
  /*box-shadow: 0px 0px 6px 1px rgba(0, 0, 0, 12%);*/
  box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 12%);
}

.shadow-1:hover {
  box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 23%);
}

/* Padding */
.pad-10 {
  padding: 10px;
}

.pad-15 {
  padding: 15px;
}

.pad-20 {
  padding: 20px;
}

.pad-30 {
  padding: 30px;
}

/* Vertical Spacers */
.vert-spacer-10 {
  display: inline-block;
  width: 100%;
  height: 10px;
}

.vert-spacer-20 {
  display: inline-block;
  width: 100%;
  height: 20px;
}

.vert-spacer-25 {
  display: inline-block;
  width: 100%;
  height: 25px;
}

.vert-spacer-30 {
  display: inline-block;
  width: 100%;
  height: 30px;
}

.vert-spacer-40 {
  display: inline-block;
  width: 100%;
  height: 40px;
}

.vert-spacer-50 {
  display: inline-block;
  width: 100%;
  height: 50px;
}

.vert-spacer-70 {
  display: inline-block;
  width: 100%;
  height: 70px;
}

.vert-spacer-100 {
  display: inline-block;
  width: 100%;
  height: 100px;
}

/* Margins */
.margin-10-top-bottom {
  margin: 10px 0;
}

.margin-20-top-bottom {
  margin: 20px 0;
}

i.bi {
  vertical-align: middle;
}

/* ========================================
   LAYOUT & BACKGROUNDS
   ======================================== */

/* Row Backgrounds */
.row-bg-light {
  background-color: var(--bs-osf-verylightbrown2);
}

.row-bg-lightgrey {
  background-color: var(--bs-osf-bglightgrey);
}

/* Row Expansion */
.row-expand-100 {
  display: inline-block;
  margin-left: -60px;
  margin-right: -60px;
  width: calc(100% + 116px);
}

.row-expand-100 .inner-row-expand-100 {
  width: 100%;
  max-width: 1850px;
  margin: 0 auto;
  padding: 0px 55px 0px 60px;
  display: inline-block;
}

/* ========================================
   INTERACTIVE ELEMENTS
   ======================================== */

/* Hover Effects */
.block-hover:hover {
  background-color: var(--bs-osf-red-bghover);
}

.open-new-page {
  position: absolute;
  right: 20px;
  top: 20px;
  cursor: pointer;
}

.open-new-page:hover {
  opacity: 0.7;
}

/* Text Utilities */
.ellipsized-button {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.orizontal-item .open-new-page.edit {
  position: absolute;
  right: 50px;
  top: 20px;
  cursor: pointer;
}

.orizontal-item .open-new-page.view {
  position: absolute;
  right: 20px;
  top: 20px;
  cursor: pointer;
}



/* ========================================
   BUTTONS
   ======================================== */

.btn-outline-danger {
  font-family: "Poppins Semibold" !important;
  font-weight: normal !important;
  border-color: var(--bs-osf-red);
  color: var(--bs-osf-red);
}

.btn-outline-danger:hover {
  background-color: var(--bs-osf-red);
  border-color: var(--bs-osf-red);
}

.btn {
  font-family: "Poppins Medium";
}

.dropdown-toggle-dashboard {
  height: 36px;
  margin-top: 4px;
  border: 0;
  box-shadow: 0px 0px 6px 1px rgba(0, 0, 0, 12%);
  border-left: 1px solid #c48080;
  padding: 0px 13px 0px 3px;
}

.dropdown-toggle-dashboard::after {
  vertical-align: 2px;
  margin-left: 10px;
}

.search-dashboard {
  margin-left: 20px !important;
  margin-top: 0px !important;
  box-shadow: 0px 0px 6px 1px rgb(0 0 0 / 26%);
  -webkit-border-top-right-radius: 5px !important;
  -webkit-border-bottom-right-radius: 5px !important;
  -moz-border-radius-topright: 5px !important;
  -moz-border-radius-bottomright: 5px !important;
  border-top-right-radius: 5px !important;
  border-bottom-right-radius: 5px !important;
  width: auto !important;
}

.btn:first-child:active {
  border-color: transparent;
}

/* ========================================
   SVG & IMAGES
   ======================================== */

/* SVG Size Classes */
.osf-svg-ss {
  height: 10px;
}

.osf-svg-sm {
  height: 15px;
  vertical-align: middle;
}

.osf-svg-sm-2 {
  height: 18px;
  vertical-align: middle;
}

.osf-svg-md {
  height: 20px;
  vertical-align: middle;
}

.osf-svg-l {
  height: 25px;
  vertical-align: middle;
}

.osf-svg-xl {
  height: 30px;
  vertical-align: middle;
}

.osf-svg-xxl {
  height: 35px;
  vertical-align: middle;
}

/* SVG Color Filters */
img.red-svg {
  filter: invert(12%) sepia(94%) saturate(6269%) hue-rotate(350deg)
    brightness(54%) contrast(118%);
}
i.red-svg {
  filter: invert(12%) sepia(94%) saturate(6269%) hue-rotate(350deg)
    brightness(54%) contrast(118%);
}

img.red-svg:hover {
  filter: brightness(0%);
}

i.red-svg:hover {
  filter: brightness(0%);
}

img.white-svg {
  filter: brightness(0) invert(1);
}

/* ========================================
   FORMS
   ======================================== */

/*.form-floating > .form-control {
  padding-top: 21px !important;
}*/

.osf-form-text.form-floating > .form-control ~ label {
  padding-right: 15px !important;
  overflow: visible !important;
}

.osf-form-text.form-floating > .form-control ~ label::after {
  inset: 15px 94%;
  background-color: transparent;
}

.js input.form-autocomplete {
  background-position: 98% center;
}

.js input.form-autocomplete.ui-autocomplete-loading {
  background-position: 98% center;
}

.btn.dropdown-toggle:hover,
.btn.dropdown-toggle.show {
  color: var(--bs-osf-red);
}

/* ========================================
   RESPONSIVE GRID SYSTEM
   ======================================== */

/* Small devices - Breakpoint originale: 576px */
@media (min-width: 576px) {
  .osf-col-sm-1 {
    width: 8.3333%;
  }
  .osf-col-sm-2 {
    width: 16.6667%;
  }
  .osf-col-sm-3 {
    width: 25%;
  }
  .osf-col-sm-4 {
    width: 33.3333%;
  }
  .osf-col-sm-5 {
    width: 41.6667%;
  }
  .osf-col-sm-6 {
    width: 50%;
  }
  .osf-col-sm-7 {
    width: 58.3333%;
  }
  .osf-col-sm-8 {
    width: 66.6667%;
  }
  .osf-col-sm-9 {
    width: 75%;
  }
  .osf-col-sm-10 {
    width: 83.3333%;
  }
  .osf-col-sm-11 {
    width: 91.6667%;
  }
  .osf-col-sm-12 {
    width: 100%;
  }
}

/* Small devices con sidebar aperta - Breakpoint anticipato: 792px (576 + 216) */
@media (min-width: 792px) {
  .menu-left-expanded2 .osf-col-sm-1 {
    width: 8.3333%;
  }
  .menu-left-expanded2 .osf-col-sm-2 {
    width: 16.6667%;
  }
  .menu-left-expanded2 .osf-col-sm-3 {
    width: 25%;
  }
  .menu-left-expanded2 .osf-col-sm-4 {
    width: 33.3333%;
  }
  .menu-left-expanded2 .osf-col-sm-5 {
    width: 41.6667%;
  }
  .menu-left-expanded2 .osf-col-sm-6 {
    width: 50%;
  }
  .menu-left-expanded2 .osf-col-sm-7 {
    width: 58.3333%;
  }
  .menu-left-expanded2 .osf-col-sm-8 {
    width: 66.6667%;
  }
  .menu-left-expanded2 .osf-col-sm-9 {
    width: 75%;
  }
  .menu-left-expanded2 .osf-col-sm-10 {
    width: 83.3333%;
  }
  .menu-left-expanded2 .osf-col-sm-11 {
    width: 91.6667%;
  }
  .menu-left-expanded2 .osf-col-sm-12 {
    width: 100%;
  }
}

/* Medium devices - Breakpoint originale: 768px */
@media (min-width: 768px) {
  .osf-col-md-1 {
    width: 8.3333%;
  }
  .osf-col-md-2 {
    width: 16.6667%;
  }
  .osf-col-md-3 {
    width: 25%;
  }
  .osf-col-md-4 {
    width: 33.3333%;
  }
  .osf-col-md-5 {
    width: 41.6667%;
  }
  .osf-col-md-6 {
    width: 50%;
  }
  .osf-col-md-7 {
    width: 58.3333%;
  }
  .osf-col-md-8 {
    width: 66.6667%;
  }
  .osf-col-md-9 {
    width: 75%;
  }
  .osf-col-md-10 {
    width: 83.3333%;
  }
  .osf-col-md-11 {
    width: 91.6667%;
  }
  .osf-col-md-12 {
    width: 100%;
  }
}

/* Medium devices con sidebar aperta - Breakpoint anticipato: 984px (768 + 216) */
@media (min-width: 984px) {
  .menu-left-expanded2 .osf-col-md-1 {
    width: 8.3333%;
  }
  .menu-left-expanded2 .osf-col-md-2 {
    width: 16.6667%;
  }
  .menu-left-expanded2 .osf-col-md-3 {
    width: 25%;
  }
  .menu-left-expanded2 .osf-col-md-4 {
    width: 33.3333%;
  }
  .menu-left-expanded2 .osf-col-md-5 {
    width: 41.6667%;
  }
  .menu-left-expanded2 .osf-col-md-6 {
    width: 50%;
  }
  .menu-left-expanded2 .osf-col-md-7 {
    width: 58.3333%;
  }
  .menu-left-expanded2 .osf-col-md-8 {
    width: 66.6667%;
  }
  .menu-left-expanded2 .osf-col-md-9 {
    width: 75%;
  }
  .menu-left-expanded2 .osf-col-md-10 {
    width: 83.3333%;
  }
  .menu-left-expanded2 .osf-col-md-11 {
    width: 91.6667%;
  }
  .menu-left-expanded2 .osf-col-md-12 {
    width: 100%;
  }
}

/* Large devices - Breakpoint originale: 992px */
@media (min-width: 992px) {
  .osf-col-lg-1 {
    width: 8.3333%;
  }
  .osf-col-lg-2 {
    width: 16.6667%;
  }
  .osf-col-lg-3 {
    width: 25%;
  }
  .osf-col-lg-4 {
    width: 33.3333%;
  }
  .osf-col-lg-5 {
    width: 41.6667%;
  }
  .osf-col-lg-6 {
    width: 50%;
  }
  .osf-col-lg-7 {
    width: 58.3333%;
  }
  .osf-col-lg-8 {
    width: 66.6667%;
  }
  .osf-col-lg-9 {
    width: 75%;
  }
  .osf-col-lg-10 {
    width: 83.3333%;
  }
  .osf-col-lg-11 {
    width: 91.6667%;
  }
  .osf-col-lg-12 {
    width: 100%;
  }
}

/* Large devices con sidebar aperta - Breakpoint anticipato: 1208px (992 + 216) */
@media (min-width: 1208px) {
  .menu-left-expanded2 .osf-col-lg-1 {
    width: 8.3333%;
  }
  .menu-left-expanded2 .osf-col-lg-2 {
    width: 16.6667%;
  }
  .menu-left-expanded2 .osf-col-lg-3 {
    width: 25%;
  }
  .menu-left-expanded2 .osf-col-lg-4 {
    width: 33.3333%;
  }
  .menu-left-expanded2 .osf-col-lg-5 {
    width: 41.6667%;
  }
  .menu-left-expanded2 .osf-col-lg-6 {
    width: 50%;
  }
  .menu-left-expanded2 .osf-col-lg-7 {
    width: 58.3333%;
  }
  .menu-left-expanded2 .osf-col-lg-8 {
    width: 66.6667%;
  }
  .menu-left-expanded2 .osf-col-lg-9 {
    width: 75%;
  }
  .menu-left-expanded2 .osf-col-lg-10 {
    width: 83.3333%;
  }
  .menu-left-expanded2 .osf-col-lg-11 {
    width: 91.6667%;
  }
  .menu-left-expanded2 .osf-col-lg-12 {
    width: 100%;
  }
}

/* Extra large devices - Breakpoint originale: 1460px */
@media (min-width: 1460px) {
  .osf-col-xl-1 {
    width: 8.3333%;
  }
  .osf-col-xl-2 {
    width: 16.6667%;
  }
  .osf-col-xl-3 {
    width: 25%;
  }
  .osf-col-xl-4 {
    width: 33.3333%;
  }
  .osf-col-xl-5 {
    width: 41.6667%;
  }
  .osf-col-xl-6 {
    width: 50%;
  }
  .osf-col-xl-7 {
    width: 58.3333%;
  }
  .osf-col-xl-8 {
    width: 66.6667%;
  }
  .osf-col-xl-9 {
    width: 75%;
  }
  .osf-col-xl-10 {
    width: 83.3333%;
  }
  .osf-col-xl-11 {
    width: 91.6667%;
  }
  .osf-col-xl-12 {
    width: 100%;
  }
}

/* Extra large devices con sidebar aperta - Breakpoint anticipato: 1676px (1460 + 216) */
@media (min-width: 1676px) {
  .menu-left-expanded2 .osf-col-xl-1 {
    width: 8.3333%;
  }
  .menu-left-expanded2 .osf-col-xl-2 {
    width: 16.6667%;
  }
  .menu-left-expanded2 .osf-col-xl-3 {
    width: 25%;
  }
  .menu-left-expanded2 .osf-col-xl-4 {
    width: 33.3333%;
  }
  .menu-left-expanded2 .osf-col-xl-5 {
    width: 41.6667%;
  }
  .menu-left-expanded2 .osf-col-xl-6 {
    width: 50%;
  }
  .menu-left-expanded2 .osf-col-xl-7 {
    width: 58.3333%;
  }
  .menu-left-expanded2 .osf-col-xl-8 {
    width: 66.6667%;
  }
  .menu-left-expanded2 .osf-col-xl-9 {
    width: 75%;
  }
  .menu-left-expanded2 .osf-col-xl-10 {
    width: 83.3333%;
  }
  .menu-left-expanded2 .osf-col-xl-11 {
    width: 91.6667%;
  }
  .menu-left-expanded2 .osf-col-xl-12 {
    width: 100%;
  }
}

/* XXL devices - Breakpoint originale: 1680px */
@media (min-width: 1680px) {
  .col-xxl-1 {
    width: 8.3333%;
  }
  .col-xxl-2 {
    width: 16.6667%;
  }
  .col-xxl-3 {
    width: 25%;
  }
  .col-xxl-4 {
    width: 33.3333%;
  }
  .col-xxl-5 {
    width: 41.6667%;
  }
  .col-xxl-6 {
    width: 50%;
  }
  .col-xxl-7 {
    width: 58.3333%;
  }
  .col-xxl-8 {
    width: 66.6667%;
  }
  .col-xxl-9 {
    width: 75%;
  }
  .col-xxl-10 {
    width: 83.3333%;
  }
  .col-xxl-11 {
    width: 91.6667%;
  }
  .col-xxl-12 {
    width: 100%;
  }
}

/* XXL devices con sidebar aperta - Breakpoint anticipato: 1896px (1680 + 216) */
@media (min-width: 1896px) {
  .menu-left-expanded2 .col-xxl-1 {
    width: 8.3333%;
  }
  .menu-left-expanded2 .col-xxl-2 {
    width: 16.6667%;
  }
  .menu-left-expanded2 .col-xxl-3 {
    width: 25%;
  }
  .menu-left-expanded2 .col-xxl-4 {
    width: 33.3333%;
  }
  .menu-left-expanded2 .col-xxl-5 {
    width: 41.6667%;
  }
  .menu-left-expanded2 .col-xxl-6 {
    width: 50%;
  }
  .menu-left-expanded2 .col-xxl-7 {
    width: 58.3333%;
  }
  .menu-left-expanded2 .col-xxl-8 {
    width: 66.6667%;
  }
  .menu-left-expanded2 .col-xxl-9 {
    width: 75%;
  }
  .menu-left-expanded2 .col-xxl-10 {
    width: 83.3333%;
  }
  .menu-left-expanded2 .col-xxl-11 {
    width: 91.6667%;
  }
  .menu-left-expanded2 .col-xxl-12 {
    width: 100%;
  }
}

/* ========================================
   SPECIFIC COMPONENTS
   ======================================== */
.card-header-modal-form {
  padding: 15px 15px;
  background-color: #eaf6ff;
}
.card-header-modal-form button.accordion-button {
  background-color: #eaf6ff;
}

.form-select {
  padding: 0.57rem 0.95rem !important;
  box-shadow: 0px 0px 6px 1px rgba(0, 0, 0, 12%);
}

.input-group .btn.btn-primary.ellipsized-button {
  padding: 0px 11px !important;
  margin-top: 3px;
}

.btn,
.node-preview-container .node-preview-backlink,
button.link,
.button,
a.button {
  margin: 0 0rem;
}

.form-control {
  padding: 0.57rem 0.95rem !important;
  margin-top: 0px;
}

.authenticated .alert.alert-dismissible {
  /*position: fixed;
  width: 50%;
  left: 0;
  right: 0;
  margin: 0 auto;
  bottom: 5px;
  padding: 20px;
  z-index: 2000;*/

  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999; /* opzionale, per stare sopra ad altri elementi */
  box-shadow: rgba(0, 0, 0, 0.12) 0px 0px 6px 1px !important;
}

.dropdown-menu.show {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  max-height: 350px;
  overflow-y: auto;
}

#scrollTopBtn {
  width: auto;
  bottom: 16px;
  right: 64px;
  display: none;
  padding: 4px 12px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.toolbar-toggle-orientation {
  display: none !important;
}

.toolbar .toolbar-bar {
  color: #ddd;
  background-color: #212529 !important;
}

.bg-hands-white {
  background-image: url(/themes/custom/osf_theme/assets/images/bg-hands-white.jpg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: left;
}

.toast-header {
  color: #fff;
  background-color: var(--bs-osf-red);
  border: 1px solid var(--bs-osf-red);
}

.toast-header small a {
  color: #fff;
}

.toast-header small a:hover {
  color: #ffffff81;
}

.toast {
  margin-top: 10px;
  --bs-toast-bg: rgba(var(--bs-body-bg-rgb), 1) !important;
}

.toast-container-scrollable {
  max-height: 400px; /* Altezza massima del container */
  overflow-y: auto; /* Scroll verticale quando necessario */
  padding-right: 8px; /* Spazio per la scrollbar */
}

.accordion-button:not(.collapsed) {
  background-color: var(--bs-osf-verylightbrown);
}

.ui-menu.ui-widget.ui-widget-content.ui-autocomplete {
  padding: 12px;
  box-shadow: 0px 0px 6px 1px rgba(0, 0, 0, 12%);
  border-radius: 4px;
}

.ui-menu.ui-widget.ui-widget-content.ui-autocomplete li {
  padding: 4px 0px;
}

.ui-menu.ui-widget.ui-widget-content.ui-autocomplete li a {
  text-decoration: none;
  background-color: #fff;
  border: 0px;
  padding: 0px;
  font-family: "Poppins Regular";
  font-size: 0.9rem;
}

.ui-menu.ui-widget.ui-widget-content.ui-autocomplete li a:hover,
.ui-menu.ui-widget.ui-widget-content.ui-autocomplete li a:focus,
.ui-menu.ui-widget.ui-widget-content.ui-autocomplete li a:active {
  text-decoration: none;
  background-color: #fff;
  border: 0px;
  color: #000;
  padding: 0px;
}

/* Sovrascrive lo stile generale del dialog per allinearlo a Bootstrap */
.ui-dialog {
  font-family: "Poppins Regular" !important;
  border-radius: 5px;
}

.ui-dialog .ui-dialog-titlebar {
  -webkit-border-top-left-radius: 5px !important;
  -webkit-border-top-right-radius: 5px !important;
  -moz-border-radius-topleft: 5px !important;
  -moz-border-radius-topright: 5px !important;
  border-top-left-radius: 5px !important;
  border-top-right-radius: 5px !important;
  padding: 15px !important;
  font-size: 1.25rem !important;
  background: #fff !important;
  border-color: #e6e5e5 !important;
}

/* Overlay simile al backdrop Bootstrap */
.ui-widget-overlay {
  background-color: rgba(
    0,
    0,
    0,
    0.7
  ) !important; /* Opacità come backdrop Bootstrap */
  opacity: 1 !important;
}

.ui-dialog .ui-dialog-titlebar-close {
  opacity: 1;
  margin-right: 10px;
}

.ui-dialog .ui-dialog-title {
  width: 100% !important;
  font-size: 1.3rem;
  font-weight: normal;
  font-family: "Poppins SemiBold";
}

.ui-dialog .ui-button-icon-only .ui-icon {
  margin-left: -15px;
}

.ui-dialog .ui-dialog-content {
  font-family: "Poppins Regular" !important;
}

.ui-dialog .ui-dialog-buttonpane {
  padding: 15px !important;
  background: #fff !important;
  border-color: #e6e5e5 !important;
  font-family: "Poppins Regular" !important;
}

.ui-dialog .ui-dialog-buttonpane button.btn-primary {
  font-family: "Poppins Medium" !important;
  padding: 7px 30px;
  margin: 0px 0px 0px 10px !important;
  background-color: var(--bs-osf-red);
  color: #fff;
  border-radius: 5px;
  border: 0px;
}

.ui-dialog .ui-dialog-buttonpane button.btn-primary:hover {
  background-color: var(--bs-osf-red-hoverdark);
}

/* stile per vertical tabs */

.vertical-tabs {
  margin: 2em 0 2em 15em !important; /* LTR */
  border: 1px solid #ccc;
  border-radius: 5px;
  box-shadow: 0px 0px 6px 1px rgba(0, 0, 0, 12%);
}
[dir="rtl"] .vertical-tabs {
  margin-right: 15em;
  margin-left: 0;
}
.vertical-tabs__menu {
  float: left; /* LTR */
  width: 15em;
  margin: -1px 0 -1px -15em; /* LTR */
  padding: 0;
  list-style: none;
  border-top: 1px solid #ccc;
}
[dir="rtl"] .vertical-tabs__menu {
  float: right;
  margin-right: -15em;
  margin-left: 0;
}
.vertical-tabs__pane {
  margin: 0;
  border: 0;
}
.vertical-tabs__pane > summary {
  display: none;
}

/* Layout of each tab. */
.vertical-tabs__menu-item {
  border: 1px solid #ccc;
  border-top: 0;
  background: #eee;
}
.vertical-tabs__menu-item a {
  display: block;
  padding: 0.5em 0.6em;
  text-decoration: none;
}
.vertical-tabs__menu-item a:focus .vertical-tabs__menu-item-title,
.vertical-tabs__menu-item a:active .vertical-tabs__menu-item-title,
.vertical-tabs__menu-item a:hover .vertical-tabs__menu-item-title {
  text-decoration: none;
}

.vertical-tabs__menu-item a {
  text-decoration: none !important;
}

.vertical-tabs__menu-item a:hover {
  outline: 0px dotted;
  text-decoration: none !important;
}
.vertical-tabs__menu-item.is-selected {
  border-right-width: 0; /* LTR */
  background-color: #fff;
}
[dir="rtl"] .vertical-tabs__menu-item.is-selected {
  border-right-width: 1px;
  border-left-width: 0;
}
.vertical-tabs__menu-item.is-selected .vertical-tabs__menu-item-title {
  color: var(--bs-osf-red);
}

.ui-widget-content a:hover {
  color: #000;
}

.vertical-tabs__menu-item-summary {
  display: block;
  margin-bottom: 0;
  line-height: normal;
  color: #666;
}

.vertical-tabs__menu-item.is-selected .vertical-tabs__menu-item-title strong {
  font-family: "Poppins Medium" !important;
  font-weight: normal;
}

.field--name-status.field--widget-boolean-checkbox {
  padding: 0px 20px;
  border: 1px solid #dee2e6;
  box-shadow: 0px 0px 6px 1px rgba(0, 0, 0, 12%);
  border-radius: 5px;
}

/* tabs orizzontali */

.horizontal-tabs .horizontal-tabs-list {
  display: flex !important;
  flex-wrap: nowrap;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  white-space: normal !important;
  background-color: #fff !important;
  position: sticky;
  top: -7px;
  z-index: 10;
  border-bottom: 0px !important;
  padding: 10px !important;
  margin-bottom: 8px !important;
}

.horizontal-tabs {
  border: 0px !important;
}

.horizontal-tabs details {
  border: 1px solid #ccc !important;
  margin-top: 5px !important;
  -webkit-border-bottom-right-radius: 5px !important;
  -webkit-border-bottom-left-radius: 5px !important;
  -moz-border-radius-bottomright: 5px !important;
  -moz-border-radius-bottomleft: 5px !important;
  border-bottom-right-radius: 5px !important;
  border-bottom-left-radius: 5px !important;
  box-shadow: 0px 0px 6px 1px rgba(0, 0, 0, 12%) !important;
  padding: 0px !important;
  margin: 0px !important;
}

.horizontal-tabs .horizontal-tab-button {
  flex: 1 0 auto; /* Permette di espandersi in larghezza ma non restringersi */
  display: flex !important;
  align-items: stretch !important;
  justify-content: center;
  height: 100%; /* Garantisce l'altezza uniforme */
  min-height: 30px; /* Altezza minima, modificabile a piacere */
  box-sizing: border-box;
  margin: 0px 6px 0px 0px !important;
}

.horizontal-tabs .horizontal-tab-button a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 10px;
  text-align: center;
  color: #000 !important;
}

.horizontal-tabs ul.horizontal-tabs-list li a,
.horizontal-tabs ul.horizontal-tabs-list li.selected a {
  border-radius: 5px;
  font-family: "Poppins SemiBold" !important;
}

.horizontal-tabs .horizontal-tab-button .form-required {
  position: relative;
}

.horizontal-tabs .horizontal-tab-button strong {
  font-weight: normal !important;
}

.horizontal-tabs ul.horizontal-tabs-list li.selected a {
  color: var(--bs-osf-red) !important;
}

.horizontal-tab-button.selected {
  border-bottom: 1px solid #ccc !important;
}

.horizontal-tabs .horizontal-tab-button .form-required::after {
  position: absolute;
  top: -1px;
  right: -20px;
}

.horizontal-tabs details > .details-wrapper {
  padding: 1.5em 2.2em;
}

/* form dei nodi */

form.node-form td,
form.node-form th {
  vertical-align: middle;
}

form.node-form .form-wrapper > .js-form-item {
  margin-top: 1.6em;
  margin-bottom: 1.6em;
}

form.node-form .form-wrapper > .js-form-item > label {
  font-family: "Poppins SemiBold";
}

form.node-form .paragraphs-actions .paragraphs-icon-button {
  display: none;
}

form.node-form th.field-label .paragraphs-actions {
  display: none !important;
}

form.node-form .tabledrag-toggle-weight-wrapper {
  display: none;
}

form.node-form a.tabledrag-handle .handle {
  width: 21px;
  height: 22px;
  margin: 0;
  padding: 0;
}

form.node-form .form-control {
  margin-top: 0px;
}

form.node-form .mb-3 {
  margin-bottom: 0 !important;
}

form.node-form .btn {
  box-shadow: 0px 0px 6px 1px rgba(0, 0, 0, 12%);
}

form.node-form input {
  font-family: "Poppins Regular";
}

form.node-form .field-add-more-submit {
  width: 100%;
  background-color: #eee;
  border-color: #eee !important;
  color: #000 !important;
  padding: 10px;
}

form.node-form .field-add-more-submit:hover {
  background-color: var(--bs-osf-greyligh) !important;
  border-color: var(--bs-osf-greyligh) !important;
}

form.node-form td input {
  width: 100%;
}

.form-item input.error,
.form-item textarea.error,
.form-item select.error {
  border: 2px solid var(--bs-osf-red);
}

/* pagina node add creazione tipi di contenuto*/

:root {
  --bs-osf-red: #b00932;
}

.node-type-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 2rem auto; /* <-- centra orizzontalmente */
  padding: 0;
  list-style: none;
  justify-content: center; /* assicura centratura quando ci sono meno di 4 colonne */
  padding: 50px;
}

.node-type-list dd {
  display: none;
}

.node-type-list dt {
  margin: 0;
  padding: 0;
}

.node-type-list dt a {
  display: block;
  background: #fff;
  border-radius: 5px;
  box-shadow: 0px 0px 6px 1px rgba(0, 0, 0, 0.12);
  color: var(--bs-osf-red);
  font-weight: bold;
  padding: 1rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 60px;
  position: relative;
}

.node-type-list dt a::before {
  font-family: bootstrap-icons;
  content: "\F135";
  position: absolute;
  font-size: 1.5rem;
  right: 20px;
  top: 10px;
}

.node-type-list dt a:hover {
  transform: translateY(-2px);
  box-shadow: 0px 4px 10px 2px rgba(0, 0, 0, 0.15);
}

.node-type-list dd {
  padding: 0.5rem 1rem 1rem 1rem;
  font-size: 0.9rem;
  color: #444;
  background: #fff;
  border-radius: 0 0 5px 5px;
  box-shadow: 0px 0px 6px 1px rgba(0, 0, 0, 0.12);
  margin-top: -0.5rem;
}

.node-type-list dd:empty {
  display: none;
}

.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset {
  float: none !important;
  text-align: center !important;
}

.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset .button {
  margin: 0px 5px !important;
}

.modal-footer {
  padding: 15px !important;
}

.popover {
  box-shadow: 0px 0px 6px 1px rgba(0, 0, 0, 12%);
}

.popover-body {
  font-size: 1rem;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background-color: #f8f8f8 !important;
}

.carousel-control-prev,
.carousel-control-next {
  width: 40px;
  height: 40px;
  border: 1px solid #dee2e6;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 1;
  background-color: #fff !important;
}
.carousel-control-prev {
  left: -20px;
}
.carousel-control-next {
  right: -20px;
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 16px;
  height: 16px;
  background-size: 16px 16px;
  filter: invert(0.5);
}

.card-osf .card-footer {
  position: relative;
}

.card-osf .card-footer:before {
  content: "";
  position: absolute;
  top: -30px;
  right: 28px;
  width: calc(100% - 60px);
  height: 35px;
  background: #fff;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 1) 100%
  );
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.card-osf:hover .card-footer:before {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s linear, visibility 0.3s linear;
}

.dropdown-menu .dropdown-item {
  font-family: "Poppins Regular" !important;
}

.dropdown-menu li {
  margin: 5px 0px;
}

.ajax-progress-throbber {
  display: none !important;
}

.nav-tabs li a,
.nav-tabs li button {
  font-family: "Poppins SemiBold";
}

#enlarge-font,
#shrink-font,
#reset-font {
  cursor: pointer;
}

.custom-fullscreen .modal-content {
  margin: 25px; /* spazio dai bordi */
  border-radius: 8px; /* opzionale, per non avere spigoli a filo schermo */
  height: calc(100% - 50px);
}
.custom-fullscreen .modal-content .modal-header {
  border-radius: 8px; /* opzionale, per non avere spigoli a filo schermo */
}

.form-check-input {
  border: var(--bs-border-width) solid #9b9d9f !important;
}

/* Per le modali, quando si fa la submit porta al primo campo obbligatorio e non rimane dietro l'intestazione del beneficiario */
.modal-body input,
.modal-body select,
.modal-body textarea {
  scroll-margin-top: 400px;
}

/* stile per disabilitare le aree per OSF */
.disable-area-osf {
  pointer-events: none;
  opacity: 0.4; /* opzionale, per far capire che è disattivato */
  cursor: default; /* il cursore non diventa "mano" */
}

.field-error {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Select 2 */

.select2-container--default .select2-selection--single {
  background-color: #fff;
  border: 0px solid #aaa;
  border-radius: 4px;
  padding: 4px 0px;
      box-shadow: 0px 0px 6px 1px rgba(0, 0, 0, 12%);
  height: auto;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__placeholder {
  color: #000;
}

.select2-dropdown {
  border: 0px solid #fff;
  box-shadow: 0px 0px 6px 1px rgba(0, 0, 0, 12%);
}

.select2-container--default .select2-search--dropdown .select2-search__field {
  border: 1px solid #c2c2c2;
  border-radius: 4px;
  padding: 6px 5px;
}

/* fix campo data floating labels */

/* Corregge l'etichetta sovrapposta per i campi data */
.form-floating input[type="date"]:not(:placeholder-shown) ~ label {
  transform: scale(0.85) translateY(-1.7rem) translateX(0.15rem);
  border-radius: 4px;
}

/* modale reset password */

form#user-pass-reset {
  width: 1000px;
  background: #fff;
  padding: 40px 40px 40px 40px;
  border-radius: 5px;
  font-size: 1rem;
  text-align: center;
  box-shadow: 0px 0px 6px 1px rgba(0, 0, 0, 12%);
  box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 12%);
  margin: 150px auto;
}

form#user-pass-reset p {
  margin: 0px 0px 5px 0px;
}

.user-logged-in.path-user {
  background-color:#f8f8f8
}

form#user-form,
article.profile {
  max-width: 1000px;
  background: #fff;
  padding: 40px 40px 40px 40px;
  border-radius: 5px;
  font-size: 1rem;
  text-align: left;
  box-shadow: 0px 0px 6px 1px rgba(0, 0, 0, 12%);
  box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 12%);
  margin: 50px auto;
}

form#user-form p {
  margin: 0px 0px 5px 0px;
}


/* ----- Stile campi del profilo utente ----- */
article.profile {
  display: grid;
  grid-template-columns: 150px 1fr;
  grid-gap: 0px 20px;
  align-items: start;
}

/* Immagine profilo */
article.profile .field--name-user-picture {
  grid-row: 1 / span 5; /* l'immagine resta fissa accanto ai campi */
  justify-self: center;
  text-align: center;
}
article.profile .field--name-user-picture img {
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  width: 100px;
  height: auto;
    border:3px solid #ffffff;
}

article.profile .field--name-user-picture{
    border-bottom:0px solid #FFF !important;
}

/* Struttura dei campi */
article.profile .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

article.profile .field:last-child {
  border-bottom: none;
}

/* Etichette */
article.profile .field__label {
  font-weight: normal;
    font-family: "Poppins SemiBold";
  color: #333;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Valori */
article.profile .field__item,
article.profile .field__items {
  color: #555;
  font-size: 1rem;
  line-height: 1.4;
}

/* Liste interne (come aree servizio) */
article.profile ul {
  margin: 5px 0 5px 20px;
  padding: 0;
  list-style: none;
}
article.profile ul > li {
  margin-bottom: 6px;
}
article.profile ul > li strong {
  display: block;
  color: #333;
  margin-bottom: 3px;
  font-weight: 600;
}

article.profile ul > li strong:before {
    content:">";
  display: inline-block;
  color: #b00932;
  margin-right: 4px;
  font-weight: 600;
}

article.profile ul ul li {
  font-weight: normal;
  color: #666;
  font-size: 0.95rem;
    margin-bottom:10px;
}

strong{
    font-weight:normal;
    font-family: "Poppins SemiBold";
}


/* Responsive layout */
@media (max-width: 768px) {

  form#user-form,
article.profile {
  margin:50px 25px;
}
  article.profile {
    grid-template-columns: 1fr;
  }
  article.profile .field--name-user-picture {
    grid-row: auto;
    justify-self: start;
  }
  article.profile .field--name-user-picture img {
    max-width: 100px;
  }
}

