
/* =================================
   HEADER & NAVIGATION
   ================================= */

/* Titolo header */
.it-header-wrapper .it-nav-wrapper .it-brand-wrapper {
    flex: none;
}

/* Stile per nascondere il tagline del brand sui dispositivi mobili */
@media only screen and (max-width: 767.98px) {
  .it-brand-text .it-brand-tagline {
    display: none;
  }
}

/* Menu cerca button - responsive */
ul.menucerca.d-inline-flex {
    flex-wrap: wrap!important;
    gap: 0.5rem;
}

/* Menu linea orizzontale su tutte le prime sottovoci dei dropdown */
.dropdown-menu a[data-element="overview"]  {
    border-bottom: 1px solid #ddd;
    padding-top: 6px !important;
    background: none!important;
}

/* Briciole di pane - mobile responsive */
.mod-breadcrumbs.breadcrumb {
    font-size: 0.9rem !important;
    margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .mod-breadcrumbs.breadcrumb {
    font-size: 1rem !important;
    margin-bottom: 1rem;
  }
}

/* =================================
   UTILITIES & COMPONENTS
   ================================= */

/* Modulo la didattica - tag styling */
a#t-IstitutoComprensivoStatale-tab {
    line-height: inherit;
}

/* Mappa styling */
.location-list {
    line-height: 1.5;
}

/* Modal overlay */
.modal.fade.show {
    background-color: rgba(0, 0, 0, 0.80);
}

/* Footer spacing */
.footersito .area-legale .navbar-nav.navbar-secondary {
    padding-top: 25px;
}

/* Pagination styling - responsive */
.pagination__wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

@media (min-width: 768px) {
  .pagination__wrapper {
    margin-top: 2rem;
    gap: 1rem;
  }
}

/* =================================
   ARTICLE IMAGES & CONTENT
   ================================= */

/* Card news images - responsive display */
.card-news-img {
    max-width: 100%;
    height: auto !important;
    display: none;
}

@media (min-width: 768px) {
  .card-news-img {
    display: block;
  }
}

@media (max-width: 767.98px) {
    .card-news-img {
        visibility: hidden;
        display: none;
    }
}

/* Article info styling */
.article-info {
    font-size: 1rem;
    font-weight: 600;
}

.article-info a {
    text-decoration: underline;
    transition: color 0.3s ease;
    color: #455b71;
}

.article-info a:hover {
    text-decoration: none;
    color: #06c;
}

/* Card blog styling */
.card.card-icon .card-icon-content p {
    font-size: 1rem;
    padding-top: 5px;
}

/* Badge styling */
span.badge.bg-primary {
    font-size: 13px;
}

/* =================================
   ARTICLE IMAGES - RESPONSIVE
   ================================= */

/* Title image responsive */
.title-img {
    background-color: #ffffff;
    background-size: contain;
    min-height: 200px;
}

@media (min-width: 768px) {
  .title-img {
    min-height: 250px;
  }
}

@media (min-width: 992px) {
  .title-img {
    min-height: 300px;
  }
}

@media (max-width: 767.98px) {
  .title-img {
    background-position: center;
  }
  .card.card-article img {
    background-position: center;
  }
}

/* Article card images - responsive */
.card.card-article img {
    background-color: #ffffff;
    object-fit: contain;
    width: 100%;
    height: auto;
    max-height: 200px;
}

@media (min-width: 768px) {
  .card.card-article img {
    max-height: 250px;
  }
}

@media (min-width: 992px) {
  .card.card-article img {
    max-height: 300px;
  }
}

/* =================================
   CAROUSEL / SLIDER - GENERAL
   ================================= */

/* Image wrapper container - responsive heights */
.img-wrapper {
    width: 100%;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 767.98px) {
    .img-wrapper {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .img-wrapper {
        height: 150px;
    }
}

/* =================================
   SPLIDE CAROUSEL STYLING
   ================================= */

/* Splide list and slide styling */
.splide__list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.splide__slide {
  padding: 10px;
}

/* Splide arrows global - hidden */
.splide .splide__arrows {
    display: none !important;
}

/* Splide arrow positioning and styling */
.splide__arrows {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.splide__arrow {
  pointer-events: all;
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.splide__arrow:hover {
  background-color: rgba(0, 0, 0, 0.7);
  width: 36px;
  height: 36px;
}

@media (min-width: 768px) {
  .splide__arrow {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .splide__arrow:hover {
    width: 42px;
    height: 42px;
  }
}

@media (min-width: 992px) {
  .splide__arrow {
    width: 40px;
    height: 40px;
  }

  .splide__arrow:hover {
    width: 45px;
    height: 45px;
  }
}

/* =================================
   TIMELINE CAROUSEL
   ================================= */

/* Timeline carousel - solo paginazione, frecce nascoste */
.timeline-carousel {
  position: relative;
  padding-top: 0.75rem;
  padding-bottom: 3rem;
  overflow: visible !important;
}

.timeline .container {
  overflow: visible !important;
}

.timeline-carousel .splide__arrows {
  display: none !important;
}

/* Timeline pagination - responsive positioning */
.timeline-carousel .splide__pagination {
  position: absolute;
  bottom: -45px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 0;
  z-index: 5;
}

.timeline-carousel .splide__pagination__page {
  width: 8px;
  height: 8px;
  padding: 0 !important;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4) !important;
  cursor: pointer;
  transition: all 0.3s ease;
}

.timeline-carousel .splide__pagination__page:hover {
  background: rgba(255, 255, 255, 0.7) !important;
  transform: scale(1.2);
}

.timeline-carousel .splide__pagination__page.is-active {
  background: #ffffff !important;
  transform: scale(1.3);
}

.timeline {
  padding-bottom: 3.5rem;
}

/* Tablet: 768px+ */
@media (min-width: 768px) {
  .timeline-carousel {
    padding-bottom: 3.5rem;
  }

  .timeline-carousel .splide__pagination {
    bottom: -50px;
    gap: 0.5rem;
  }

  .timeline-carousel .splide__pagination__page {
    width: 10px;
    height: 10px;
  }

  .timeline {
    padding-bottom: 4rem;
  }
}

/* Timeline cards (subform layout timeline.php) - mobile first */
.timeline .timeline-card,
.timeline .card-serif.card-bg {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  color: #f3f6fa;
}

.timeline .timeline-meta,
.timeline .h5 {
  letter-spacing: 0.08em;
  color: rgba(243, 246, 250, 0.72);
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}

.timeline .timeline-title,
.timeline .card-body h3 {
  color: #ffffff;
  line-height: 1.35;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.timeline .timeline-desc,
.timeline .card-body p {
  color: rgba(243, 246, 250, 0.9);
  line-height: 1.6;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.timeline .timeline-desc p,
.timeline .card-body p p {
  margin-bottom: 0.5rem;
}

.timeline .timeline-desc p:last-child,
.timeline .card-body p:last-child {
  margin-bottom: 0;
}

.timeline .timeline-year,
.timeline .card-body h5 {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  align-self: flex-start;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #f3f6fa;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.timeline .card-wrapper {
  background: unset !important;
}

.timeline .card .card-body {
  padding: 1.25rem !important;
}

.timeline-slide {
  padding: 0.15rem !important;
}

.timeline-slide-wrapper {
  height: auto;
  width: 100%;
}

.timeline .timeline-card,
.timeline .card-serif.card-bg {
  height: auto !important;
}

/* Mobile: maximize card visibility */
@media (max-width: 767px) {
  .timeline-carousel .splide__track {
    padding: 0 !important;
  }
  
  .timeline-slide {
    padding: 0.2rem !important;
    height: auto !important;
  }
  
  .timeline .timeline-card,
  .timeline .card-serif.card-bg {
    margin: 0 auto;
    max-width: 95%;
    height: auto !important;
    min-height: unset !important;
  }

  .timeline-slide-wrapper {
    height: auto !important;
  }
}

/* Tablet: 768px+ */
@media (min-width: 768px) {
  .timeline .timeline-card,
  .timeline .card-serif.card-bg {
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.16);
  }

  .timeline .timeline-meta,
  .timeline .h5 {
    font-size: 0.85rem;
    margin-bottom: 0.9rem;
  }

  .timeline .timeline-title,
  .timeline .card-body h3 {
    font-size: 1.15rem;
    margin-bottom: 0.85rem;
  }

  .timeline .timeline-desc,
  .timeline .card-body p {
    font-size: 0.98rem;
  }

  .timeline .card .card-body {
    padding: 2rem !important;
  }

  .timeline-slide {
    padding: 0.75rem !important;
  }
}

/* Desktop: 992px+ */
@media (min-width: 992px) {
  .timeline .timeline-card,
  .timeline .card-serif.card-bg {
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  }

  .timeline .timeline-meta,
  .timeline .h5 {
    font-size: 0.9rem;
  }

  .timeline .timeline-title,
  .timeline .card-body h3 {
    font-size: 1.25rem;
  }

  .timeline .timeline-year,
  .timeline .card-body h5 {
    padding: 0.4rem 0.9rem;
    font-size: 0.95rem;
  }

  .timeline .card .card-body {
    padding: 3rem !important;
  }
}

.timeline-event-title {
  color: #17324d;
  font-weight: 600;
  line-height: 1.35;
}

.timeline .timeline-event-title {
  color: #ffffff;
}

/* =================================
   GALLERY GRID
   ================================= */

/* Gallery grid - responsive with auto-fit columns */
.gallery-section {
  width: 100%;
  overflow: hidden;
}

.gallery-section .gallery-content {
  width: 100%;
  display: block;
}

.gallery-section .it-grid-list-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-section .grid-row {
  width: 100%;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ACF Gallery wrapper */
.gallery-section .tf-gallery-wrapper {
  width: 100%;
  margin: 0 auto;
}

/* ACF Gallery plugin selectors (aggiunta da backup locale) */
.gallery-section .gallery-items.grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 1rem !important;
  width: 100%;
  padding: 0;
  margin: 0 auto;
}

.gallery-section .gallery-items.grid figure.item {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.gallery-section .gallery-items.grid figure.item a {
  display: block;
  width: 100%;
}

.gallery-section .gallery-items.grid figure.item img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
  .gallery-section .gallery-items.grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
  }
}

@media (min-width: 992px) {
  .gallery-section .gallery-items.grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem !important;
  }
}

/* =================================
   ACCORDION BOOTSTRAP ITALIA
   ================================= */

/* Accordion wrapper - mobile first */
.accordion.it-accordion-wrapper {
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
  border: 1px solid #e5e5e5;
}

.accordion-list {
  padding: 0;
  margin: 0;
}

.accordion-item {
  border-bottom: 1px solid #e5e5e5;
  transition: box-shadow 0.3s;
}

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

.accordion-button {
  background: #0d00ff;
  color: #fff;
  font-weight: 600;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 8px 8px 0 0;
  box-shadow: none;
  transition: background 0.3s, color 0.3s;
  cursor: pointer;
  width: 100%;
  text-align: left;
  position: relative;
}

.accordion-button:hover,
.accordion-button:focus {
  background: #0a00cb;
  color: #fff;
}

.accordion-button[aria-expanded="true"] {
  background: #0a00cb;
  color: #fff;
}

.accordion-collapse {
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  background: #f8f9fa;
  border-radius: 0 0 8px 8px;
}

.accordion-body {
  padding: 1.25rem 1.5rem;
  color: #333;
  font-size: 1.05rem;
}

.accordion-link {
  display: block;
  color: #0066cc;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0;
  transition: color 0.2s;
}

.accordion-link:hover,
.accordion-link:focus {
  color: #003366;
  text-decoration: underline;
}

.accordion-separator {
  background: #e5e5e5;
  color: #666;
  font-size: 0.95rem;
  padding: 0.5rem 1.5rem;
  border-radius: 0;
  margin: 0;
}

/* Icone e immagini accordion */
.accordion-button .p-2,
.accordion-link .p-2 {
  margin-right: 0.5rem;
  font-size: 1.2em;
  vertical-align: middle;
}

.image-title {
  margin-left: 0.5rem;
  font-size: 1em;
  vertical-align: middle;
}

/* Stato attivo voce accordion */
.accordion-link[aria-current="page"],
.accordion-link[aria-current="location"] {
  font-weight: 700;
  color: #003366;
  border-left: 3px solid #0066cc;
  background: #eaf4ff;
}

/* Accordion responsive */
@media (max-width: 767.98px) {
  .accordion.it-accordion-wrapper {
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 1rem;
  }

  .accordion-button,
  .accordion-body {
    padding: 1rem;
  }
}

/* =================================
   SCUOLA CATEGORY LAYOUT
   ================================= */

/* Custom Fields Section */
.scuola-category .custom-fields-headline,
.scuola-category .custom-fields-section {
    width: 100%;
    clear: both;
    display: block;
}

.scuola-category .section-hero + .custom-fields-headline,
.scuola-category .section-hero + .custom-fields-section {
    margin-top: 0;
}

/* Big Quote h3 (custom) - mobile first approach */
.big-quote-headline:has(h3):before {
  width: 45px;
  height: 45px;
}

.big-quote-headline h3, .big-quote-headline .h3 {
  font-size: 1.5rem;
  font-weight: 500;
  color: #ffffff;
  position: relative;
  z-index: 0;
  padding: 50px 0;
  display: block;
  line-height: 1.3;
}

.big-quote-headline h3 p, .big-quote-headline h3 p {
  margin: 0 !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  color: inherit !important;
  line-height: inherit !important;
}

.big-quote-headline:has(h3):after {
  width: 45px;
  height: 45px;
}

/* Tablet: 768px+ */
@media (min-width: 768px) {
  .big-quote-headline:has(h3):before,
  .big-quote-headline:has(h3):after {
    width: 70px;
    height: 70px;
  }

  .big-quote-headline h3, .big-quote-headline .h3 {
    font-size: 2rem;
    padding: 70px 0;
  }
}

/* Desktop: 992px+ */
@media (min-width: 992px) {
  .big-quote-headline:has(h3):before {
    width: 100px;
    height: 100px;
  }

  .big-quote-headline h3, .big-quote-headline .h3 {
    font-size: 3.5rem;
    padding: 110px 0;
  }

  .big-quote-headline:has(h3):after {
    width: 100px;
    height: 100px;
  }
}

/* Hero scuola: mobile first responsive typography (left layout) */
.scuola-category .hero-title small {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  font-size: 0.85rem;
  color: #435a70;
}

.scuola-category .hero-title h1 {
  margin: 0.75rem 0 0.5rem;
  line-height: 1.35;
  font-size: 1.5rem;
  color: #17324d;
}

.scuola-category .hero-title p {
  margin-bottom: 0.75rem;
  line-height: 1.6;
  font-size: 0.95rem;
  color: #4d6072;
}

/* Tablet: 768px+ */
@media (min-width: 768px) {
  .scuola-category .hero-title small {
    font-size: 0.9rem;
  }

  .scuola-category .hero-title h1 {
    font-size: 1.75rem;
  }

  .scuola-category .hero-title p {
    font-size: 1rem;
  }
}

/* Desktop: 992px+ */
@media (min-width: 992px) {
  .scuola-category .hero-title small {
    font-size: 1rem;
  }

  .scuola-category .hero-title h1 {
    font-size: 2.2rem;
  }

  .scuola-category .hero-title p {
    font-size: 1.05rem;
  }
}

/* =================================
   MODULO MENU SERVIZI WEB
   ================================= */

/* Container immagini - altezza fissa */
.service-image-container {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =================================
   MOD_ARTICLES - LAYOUT COMUNICAZIONI
   ================================= */

/* Background grigio chiaro per layout comunicazioni-gray */
.bg-gray {
  background-color: #f5f5f5 !important;
}

/* Background verde scuro per layout comunicazioni-green */
.bg-greendark {
  background-color: #00684a !important;
}

.bg-greendarkgradient {
  background: linear-gradient(135deg, #00684a 0%, #008f66 100%) !important;
}

/* Container immagine nel layout comunicazioni - mobile first */
.card-img-left {
  position: relative;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  background: #f8f9fa;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Immagini nel layout comunicazioni - adattamento al box */
.card-img-left img {
  width: 100% !important;
  height: 180px !important;
  object-fit: cover !important;
  object-position: center !important;
  transition: transform 0.3s ease;
  display: block;
}

/* Effetto hover sulle immagini */
.card-img-left:hover img {
  transform: scale(1.05);
}

/* Fallback gradient per articoli senza immagine */
.card-img-left::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  z-index: -1;
}

/* Card styling per layout comunicazioni */
.card.card-bg {
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.card.card-bg:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

/* Tablet: 768px+ */
@media (min-width: 768px) {
  .card-img-left {
    border-radius: 8px 0 0 8px;
    height: 180px;
  }

  .card-img-left img {
    height: 180px !important;
  }
}

/* Tablet large: 768px-991.98px */
@media (min-width: 768px) and (max-width: 991.98px) {
  .card-img-left {
    height: 200px;
  }

  .card-img-left img {
    height: 200px !important;
  }
}

/* Desktop: 992px+ */
@media (min-width: 992px) {
  .card-img-left {
    height: 220px;
  }

  .card-img-left img {
    height: 220px !important;
  }
}

/* Uniformità immagini per layout a colonne multiple */
.row-cols-1 .card-img-left,
.row-cols-md-2 .card-img-left,
.row-cols-lg-3 .card-img-left,
.row-cols-lg-4 .card-img-left {
  height: 180px;
}

.row-cols-1 .card-img-left img,
.row-cols-md-2 .card-img-left img,
.row-cols-lg-3 .card-img-left img,
.row-cols-lg-4 .card-img-left img {
  height: 180px !important;
}

/* Tablet large: uniformità colonne */
@media (min-width: 768px) and (max-width: 991.98px) {
  .row-cols-1 .card-img-left,
  .row-cols-md-2 .card-img-left,
  .row-cols-lg-3 .card-img-left,
  .row-cols-lg-4 .card-img-left {
    height: 200px;
  }

  .row-cols-1 .card-img-left img,
  .row-cols-md-2 .card-img-left img,
  .row-cols-lg-3 .card-img-left img,
  .row-cols-lg-4 .card-img-left img {
    height: 200px !important;
  }
}

/* Desktop: uniformità colonne */
@media (min-width: 992px) {
  .row-cols-1 .card-img-left,
  .row-cols-md-2 .card-img-left,
  .row-cols-lg-3 .card-img-left,
  .row-cols-lg-4 .card-img-left {
    height: 220px;
  }

  .row-cols-1 .card-img-left img,
  .row-cols-md-2 .card-img-left img,
  .row-cols-lg-3 .card-img-left img,
  .row-cols-lg-4 .card-img-left img {
    height: 220px !important;
  }
}

/* =================================
   MOD_ARTICLES - LAYOUT CAROUSEL
   ================================= */

/* Carousel homepage banner */
.lined_slide {
  padding: 0.5rem;
}

/* Item banner - usa gli stili di default da pcrt-main.css per il gradiente redbrown */
.item-banner {
  transition: all 0.3s ease;
}

.item-banner:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
  transform: translateY(-3px);
}

.text-bannerhome {
  position: relative;
  z-index: 2;
}

/* Section hero left - usa background da pcrt-main.css */

/* Ratio 16x9 per immagini carousel */
.ratio.ratio-16x9 {
  position: relative;
  width: 100%;
}

.ratio.ratio-16x9::before {
  display: block;
  padding-top: 56.25%;
  content: "";
}

.ratio.ratio-16x9 > * {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =================================
   MOD_ARTICLES - LAYOUT EVIDENZA
   ================================= */

/* Carousel evidenza/novità */
.it-carousel-landscape-abstract-three-cols-arrow-visible .splide__slide {
  padding: 0.75rem;
}

.blogitem-header {
  font-size: 0.875rem;
  line-height: 1;
}

.lh100 {
  line-height: 1 !important;
}

/* Splide pagination - margine superiore */
.it-carousel-landscape-abstract-three-cols-arrow-visible .splide__pagination {
  position: relative;
  margin-top: 1.5rem;
  justify-content: center;
}

/* Card sizing per evidenza */
@media (min-width: 768px) {
  .it-carousel-landscape-abstract-three-cols-arrow-visible .splide__list {
    display: flex;
  }
}

/* Allinea le card evidenza al comportamento delle comunicazioni gray:
   altezza piena del contenitore, corpo flessibile e footer che si ancora in basso */
.it-carousel-landscape-abstract-three-cols-arrow-visible .splide__slide,
.it-carousel-landscape-abstract-three-cols-arrow-visible .it-single-slide-wrapper,
.it-carousel-landscape-abstract-three-cols-arrow-visible .card.card-bg {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.it-carousel-landscape-abstract-three-cols-arrow-visible .card.card-bg .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.it-carousel-landscape-abstract-three-cols-arrow-visible .card.card-bg .readmore,
.it-carousel-landscape-abstract-three-cols-arrow-visible .card.card-bg .publication-date {
  margin-top: auto;
}

/* Masonry grid per card layout */
.masonry-grid {
  display: flex;
  flex-wrap: wrap;
}

.masonry-grid > .col {
  display: flex;
  flex-direction: column;
}

/* Rowstrutture responsive layout - simulate col-md-10 behavior */
.rowstrutture {
    width: 100%;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

/* Tablet: 768px+ - col-md-10 behavior (~83.33% of 12 cols) */
@media (min-width: 768px) {
    .rowstrutture {
        width: 83.33%;
        margin-left: auto;
        margin-right: auto;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* Desktop: 992px+ - full width with centered parent */
@media (min-width: 992px) {
    .rowstrutture {
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
}

/* =================================
   MOD_ARTICLES - LAYOUT SERVIZI
   ================================= */

/* Background purple per layout servizi */
.bg-purplelight {
  background-color: #e8e3f5 !important;
}


.purple-oval-forms {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  opacity: 0.15;
  pointer-events: none;
}

/* Scheda item per servizi */
.scheda-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.scheda-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

/* =================================
   MOD_ARTICLES - LAYOUT OFFERTA FORMATIVA
   ================================= */

/* Background blu electric per offerta formativa - sezione principale */
.section.bg-bluelectric,
.bg-bluelectric {
  background-color: #0d00ff !important;
  color: #ffffff;
}

a.bg-bluelectric:focus,
a.bg-bluelectric:hover,
button.bg-bluelectric:focus,
button.bg-bluelectric:hover {
  background-color: #0a00cb !important;
}

.label-didattica {
  font-weight: 400;
  opacity: 0.9;
  color: #ffffff;
}

/* Container padding per sezione offerta formativa */
.section.section-padding.bg-bluelectric {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

@media (min-width: 768px) {
  .section.section-padding.bg-bluelectric {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

@media (min-width: 992px) {
  .section.section-padding.bg-bluelectric {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

/* Title styling inside bluelectric section */
.section.bg-bluelectric .title-large {
  color: #ffffff;
}

.section.bg-bluelectric .title-large h1,
.section.bg-bluelectric .title-large h2,
.section.bg-bluelectric .title-large h3,
.section.bg-bluelectric .title-large h4 {
  color: #ffffff;
}

/* Responsive tabs layout */
.responsive-tabs {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.responsive-tabs-aside {
  position: relative;
}

.tabs-img {
  display: none;
  border-radius: 8px;
  overflow: hidden;
}

@media (min-width: 992px) {
  .responsive-tabs {
    flex-direction: row;
    align-items: flex-start;
    gap: 3rem;
  }

  .tabs-img {
    display: block;
    flex: 0 0 35%;
    max-width: 35%;
  }

  .responsive-tabs-wrapper {
    flex: 1;
  }
}

/* Tab navigation styling */
.r-tabs-nav.nav-tabs-vertical {
  flex-direction: column;
  border-bottom: none;
  border-right: 2px solid rgba(255, 255, 255, 0.3);
  padding-right: 1rem;
}

.r-tabs-nav.nav-tabs-vertical ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.r-tabs-nav.nav-tabs-vertical .nav-link {
  border: none;
  border-radius: 4px 0 0 4px;
  color: rgba(255, 255, 255, 0.8);
  padding: 0.75rem 1.5rem;
  text-align: left;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 0.95rem;
}

.r-tabs-nav.nav-tabs-vertical .nav-link:hover,
.r-tabs-nav.nav-tabs-vertical .nav-link.active {
  background: #0a00cb;
  color: #ffffff;
  border-left: 3px solid #0a00cb;
  border-right: none;
  padding-left: calc(1.5rem - 3px);
}

/* Accordion wrapper within offerta formativa */
.responsive-tabs-wrapper.accordion-wrapper {
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.responsive-tabs-wrapper .accordion-large {
  background: transparent;
  border: none;
  box-shadow: none;
}

.responsive-tabs-content {
  color: #ffffff;
}

/* Offerta formativa: colori coerenti (tab #0a00cb, accordion #0d00ff) */
.responsive-tabs-content .accordion-button {
  background: #0d00ff;
  color: #fff;
  font-weight: 600;
}

.responsive-tabs-content .accordion-button:hover,
.responsive-tabs-content .accordion-button:focus {
  background: #0a00cb;
  color: #fff;
}

.responsive-tabs-content .accordion-button[aria-expanded="true"] {
  background: #0a00cb;
  color: #fff;
}

/* Titolo dell'accordion */
.responsive-tabs-wrapper h4 {
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

/* Articoli singoli nel layout */
.mod-articles-item {
  color: #ffffff;
}

.mod-articles-title {
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.mod-articles-link {
  color: #ffffff;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.mod-articles-link:hover {
  color: #e6e6ff;
  text-decoration: none;
}

/* Info articoli nel layout - styling */
.mod-articles-item-content dl {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.mod-articles-item-content dd {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.5rem;
}

.mod-articles-item-content p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Separatori tra articoli */
.mod-articles-item + .mod-articles-item {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}

hr.border-secondary-subtle {
  border-color: rgba(255, 255, 255, 0.15) !important;
}

/* =================================
   MOD_ARTICLES - LAYOUT CARTE SCUOLA
   ================================= */

/* Card redbrown per le carte della scuola */

.btn-redbrown {
  background-color: #8b2635 !important;
  color: #ffffff !important;
  border-color: #8b2635 !important;
  padding: 0.75rem 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-redbrown:hover,
.btn-redbrown:focus {
  background-color: #a52c3a !important;
  border-color: #a52c3a !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(139, 38, 53, 0.3);
}

.card-icon-main {
  position: relative;
}

.card-body-min-height {
  min-height: 200px;
}

/* Titoli carte scuola - redbrown */
.card-icon-main .mod-articles-title,
.card-icon-main h4.h5 {
  color: #8b2635 !important;
  font-weight: 600;
}

.card-icon-main .mod-articles-link {
  color: #8b2635 !important;
  text-decoration: none;
  transition: color 0.3s ease;
}

.card-icon-main .mod-articles-link:hover {
  color: #a52c3a !important;
  text-decoration: underline;
}
