/* ===================================================
   VARIABILI PERSONALIZZABILI
=================================================== */
:root {
    --sidebox-width: 260px;           /* Larghezza sidebar DESKTOP */
    --sidebox-width-mobile: 300px;    /* Larghezza sidebar MOBILE */
}

/* Rimuove qualsiasi sottolineatura (reale o simulata) dai link presenti nelle liste */
ul li a {
    text-decoration: none !important;
    border-bottom: none !important;
}

/* Disabilita eventuali pseudo-elementi usati per simulare la sottolineatura */
ul li a::after {
    display: none !important;
}

/* Solo nel template "Pagina con Sidebar FAISA" */
.fc-template-wrapper a,
.fc-template-wrapper a:hover,
.fc-template-wrapper a:focus,
.fc-template-wrapper a:active{
  text-decoration: none !important;
  border-bottom: none !important;
}

a.fc-sidebox,
a.fc-sidebox:hover,
a.fc-sidebox:focus,
a.fc-sidebox:active{
  border-bottom: 2px solid #1d4d97 !important; /* stesso blu */
}

/* ===================================================
   WRAPPER GENERALE
=================================================== */
.fc-template-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    padding: 40px 0;
}

/* ===================================================
   COLONNA CONTENUTI
=================================================== */
.fc-page-content {
    flex: 1;
    max-width: 80%;
}

/* ===================================================
   TITOLO (animato + ombra)
=================================================== */
.fc-page-title {
    font-size: 32px;
    font-weight: 800;
    color: #1d4d97;
    margin-bottom: 10px;
    text-align: left;

    /* Animazione entrata */
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeDown 0.7s ease-out forwards;

    /* Ombra titolo */
    text-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

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

/* ===================================================
   CONTENUTO pagina (animato + blu elegante)
=================================================== */
.fc-page-body {
    opacity: 0;
    transform: translateY(25px);
    animation: fadeUp 0.8s ease-out 0.3s forwards;
    color: #1d4d97;
    line-height: 1.65;
}

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

/* Link interni */
.fc-page-body a {
    color: #0a3c82;
    font-weight: 700;
    border-bottom: 1px solid #0a3c82;
    transition: 0.25s ease;
}

.fc-page-body a:hover {
    color: #072c63;
    border-bottom-color: transparent;
}

/* Sottotitoli */
.fc-page-body h2,
.fc-page-body h3 {
    color: #113d8a;
    font-weight: 700;
    margin-top: 25px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.1);
    opacity: 0;
    transform: translateX(-20px);
    animation: fadeTitle 0.6s ease-out forwards;
}

@keyframes fadeTitle {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===================================================
   CORNICE A L (titolo + linee)
=================================================== */

.fc-title-area {
    position: relative;
    margin-bottom: 20px;
}

/* Margin-bottom aumentato su Comunicati, Eventi e Ricerca */
.page-template-page-comunicati-faisa .fc-title-area,
.page-template-page-eventi-faisa .fc-title-area,
.search-results .fc-title-area {
    margin-bottom: 40px;
}

/* LINEA ORIZZONTALE */
.fc-title-divider {
    height: 1px;
    background: #1d4d97;
    opacity: 0.35;
    margin-top: 10px;
    width: 100%;
}

/* LINEA VERTICALE */
.fc-vertical-line {
    width: 1px;
    background: #1d4d97;
    opacity: 0.35;
    height: 100%;
    min-height: 400px;
    margin-top: 12px;
}

/* ===================================================
   SIDEBAR
=================================================== */
.fc-sidebar {
    width: var(--sidebox-width);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ===================================================
   BOX SIDEBAR – animazione entrata + hover
=================================================== */

/* Animazione in entrata */
.fc-sidebox {
    opacity: 0;
    transform: translateX(30px);
    animation: sideSlide 0.6s ease-out forwards;

    display: flex;
    justify-content: space-between;
    align-items: center;

    width: 100%;
    padding: 14px 20px;

    border: 2px solid #1d4d97;
    border-radius: 40px;
    background: #ffffff;
    text-decoration: none;

    /* ⭐ Ombra più evidente */
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18);

    transition: 0.25s ease;
}

/* ritardi progressivi */
.fc-sidebar .fc-sidebox:nth-child(1) { animation-delay: 0.3s; }
.fc-sidebar .fc-sidebox:nth-child(2) { animation-delay: 0.45s; }
.fc-sidebar .fc-sidebox:nth-child(3) { animation-delay: 0.60s; }
.fc-sidebar .fc-sidebox:nth-child(4) { animation-delay: 0.75s; }
.fc-sidebar .fc-sidebox:nth-child(5) { animation-delay: 0.90s; }

@keyframes sideSlide {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Hover elegante */
.fc-sidebox:hover {
    background: #eaf1ff;
    border-color: #143a77;
    transform: translateX(-4px) scale(1.02);

    /* ⭐ Ombra ancora più presente al hover */
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.25);
}

/* ===================================================
   IMMAGINE INTERNA (effetto zoom)
=================================================== */
/* Immagine interna con effetto zoom */
.fc-sidebox-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;

    transform: scale(1);
    transition: 0.35s ease;
}

.fc-sidebox:hover .fc-sidebox-img {
    transform: scale(1.07);
    filter: brightness(1.1);
}

/* ===================================================
   RESPONSIVE
=================================================== */
@media (max-width: 991px) {

    .fc-template-wrapper {
        flex-direction: column;
        gap: 30px;
        padding: 30px 0;
        align-items: stretch;
    }

    .fc-page-content {
        max-width: 100%;
        margin-bottom: 15px !important;
    }

    .fc-vertical-line {
        display: none;
    }

    .fc-sidebar {
        width: var(--sidebox-width-mobile);
        margin: 0 auto !important;
        align-items: stretch;
    }

    .fc-sidebox {
        width: 100%;
        transform: translateY(25px);
        animation: mobileSlide 0.5s ease-out forwards;
    }

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

    .fc-sidebox-img {
        width: 40px;
        height: 40px;
    }

    .fc-sidebox-title {
        font-size: 13px;
    }
}

/* ===================================================
   SHADOWBOX PER IMMAGINI E IFRAME
   (Effetto ombra elegante + sollevamento)
=================================================== */

/* Regola base: applicata a tutte le immagini nel contenuto */
.fc-page-body img,
.fc-page-content img,
.fc-page-body iframe,
.fc-page-content iframe {
    display: block;
    width: 100%;
    height: auto;

    border-radius: 12px; /* opzionale: bordi morbidi */
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.25);

    transition: transform 0.25s ease, box-shadow 0.25s ease;
    margin: 20px 0;
}

/* Effetto hover: l’elemento si solleva leggermente */
.fc-page-body img:hover,
.fc-page-content img:hover,
.fc-page-body iframe:hover,
.fc-page-content iframe:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

/* Per iframe embedded responsivi (YouTube, Maps ecc.) */
.fc-page-body .responsive-iframe,
.fc-page-content .responsive-iframe {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.fc-page-body .responsive-iframe iframe,
.fc-page-content .responsive-iframe iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
}

/* =========================================================
   FC – Scioperi DataTable UI (PULITO DEFINITIVO)
   Target: solo tabella dentro .fc-scioperi-dt-wrap
========================================================= */

.fc-scioperi-dt-wrap .dataTables_wrapper{
  font-size: 12px;
}

/* =========================================================
   SELECT "Visualizza X elementi"
========================================================= */
.fc-scioperi-dt-wrap .dataTables_wrapper .dataTables_length select{
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;

  height: 32px !important;
  line-height: 32px !important;
  font-size: 12px !important;

  padding: 0 30px 0 10px !important;
  min-width: 72px !important;

  border-radius: 8px !important;
  border: 1px solid rgba(0,0,0,.18) !important;
  background-color: #fff !important;

  background-image:
    linear-gradient(45deg, transparent 50%, rgba(0,0,0,.55) 50%),
    linear-gradient(135deg, rgba(0,0,0,.55) 50%, transparent 50%) !important;
  background-position:
    calc(100% - 14px) 13px,
    calc(100% - 9px) 13px !important;
  background-size: 5px 5px, 5px 5px !important;
  background-repeat: no-repeat !important;

  box-shadow: none !important;
  outline: none !important;
}

.fc-scioperi-dt-wrap .dataTables_wrapper .dataTables_length select:focus{
  outline: none !important;
  box-shadow: none !important;
  border-color: rgba(13,110,253,.45) !important;
}

/* =========================================================
   INPUT "Cerca"
========================================================= */
.fc-scioperi-dt-wrap .dataTables_wrapper .dataTables_filter input{
  height: 32px !important;
  font-size: 12px !important;

  padding: 0 10px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(0,0,0,.18) !important;

  box-shadow: none !important;
  outline: none !important;
}

.fc-scioperi-dt-wrap .dataTables_wrapper .dataTables_filter input:focus{
  outline: none !important;
  box-shadow: none !important;
  border-color: rgba(13,110,253,.45) !important;
}

/* =========================================================
   INFO "Vista da..."
========================================================= */
.fc-scioperi-dt-wrap .dataTables_wrapper .dataTables_info{
  font-size: 12px;
  opacity: .75;
}

/* =========================================================
   PAGINAZIONE – pulita (no nero, no ring, no cornice esterna)
========================================================= */

/* spacing e nessun contenitore esterno */
.fc-scioperi-dt-wrap .dataTables_wrapper .dataTables_paginate{
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.fc-scioperi-dt-wrap .dataTables_wrapper .dataTables_paginate ul.pagination,
.fc-scioperi-dt-wrap .dataTables_wrapper .dataTables_paginate ul.pagination:hover,
.fc-scioperi-dt-wrap .dataTables_wrapper .dataTables_paginate ul.pagination:focus,
.fc-scioperi-dt-wrap .dataTables_wrapper .dataTables_paginate ul.pagination:focus-within{
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;

  gap: 6px !important;
  margin: 0 !important;
}

/* spesso il tema mette ring/bordo su LI */
.fc-scioperi-dt-wrap .dataTables_wrapper .dataTables_paginate ul.pagination > li,
.fc-scioperi-dt-wrap .dataTables_wrapper .dataTables_paginate ul.pagination > li:hover,
.fc-scioperi-dt-wrap .dataTables_wrapper .dataTables_paginate ul.pagination > li:focus,
.fc-scioperi-dt-wrap .dataTables_wrapper .dataTables_paginate ul.pagination > li:focus-within{
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* killer pseudo-elementi (cornici “fantasma”) */
.fc-scioperi-dt-wrap .dataTables_wrapper .dataTables_paginate ul.pagination::before,
.fc-scioperi-dt-wrap .dataTables_wrapper .dataTables_paginate ul.pagination::after,
.fc-scioperi-dt-wrap .dataTables_wrapper .dataTables_paginate ul.pagination > li::before,
.fc-scioperi-dt-wrap .dataTables_wrapper .dataTables_paginate ul.pagination > li::after,
.fc-scioperi-dt-wrap .dataTables_wrapper .dataTables_paginate .page-link::before,
.fc-scioperi-dt-wrap .dataTables_wrapper .dataTables_paginate .page-link::after{
  content: none !important;
}

/* bottoni */
.fc-scioperi-dt-wrap .dataTables_wrapper .dataTables_paginate .page-item{
  border: 0 !important;
}

.fc-scioperi-dt-wrap .dataTables_wrapper .dataTables_paginate .page-link{
  font-size: 12px !important;
  padding: 6px 10px !important;
  border-radius: 8px !important;

  border: 1px solid rgba(0,0,0,.12) !important;
  background: #fff !important;
  color: rgba(0,0,0,.75) !important;

  box-shadow: none !important;
  outline: none !important;
  filter: none !important;
  text-shadow: none !important;
  background-image: none !important;
  transform: none !important;
  transition: none !important;
}

/* hover/focus/active: niente bordi extra, niente ring */
.fc-scioperi-dt-wrap .dataTables_wrapper .dataTables_paginate .page-link:hover,
.fc-scioperi-dt-wrap .dataTables_wrapper .dataTables_paginate .page-link:focus,
.fc-scioperi-dt-wrap .dataTables_wrapper .dataTables_paginate .page-link:focus-visible,
.fc-scioperi-dt-wrap .dataTables_wrapper .dataTables_paginate .page-link:active{
  background: rgba(13,110,253,.08) !important;
  border: 1px solid rgba(0,0,0,.12) !important;
  color: #0d6efd !important;

  outline: none !important;
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
}

/* attivo */
.fc-scioperi-dt-wrap .dataTables_wrapper .dataTables_paginate .page-item.active .page-link,
.fc-scioperi-dt-wrap .dataTables_wrapper .dataTables_paginate .page-item.active .page-link:hover,
.fc-scioperi-dt-wrap .dataTables_wrapper .dataTables_paginate .page-item.active .page-link:focus{
  background: #0d6efd !important;
  border: 1px solid #0d6efd !important;
  color: #fff !important;
  box-shadow: none !important;
  outline: none !important;
}

/* disabilitati */
.fc-scioperi-dt-wrap .dataTables_wrapper .dataTables_paginate .page-item.disabled .page-link{
  opacity: .45 !important;
  background: #fff !important;
  border: 1px solid rgba(0,0,0,.12) !important;
  color: rgba(0,0,0,.55) !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Se DataTables usa ancora paginate_button (fallback) */
.fc-scioperi-dt-wrap .dataTables_wrapper .dataTables_paginate .paginate_button,
.fc-scioperi-dt-wrap .dataTables_wrapper .dataTables_paginate .paginate_button:hover,
.fc-scioperi-dt-wrap .dataTables_wrapper .dataTables_paginate .paginate_button:focus,
.fc-scioperi-dt-wrap .dataTables_wrapper .dataTables_paginate .paginate_button:active{
  background: #fff !important;
  background-image: none !important;
  border: 1px solid rgba(0,0,0,.12) !important;
  border-radius: 8px !important;

  color: rgba(0,0,0,.75) !important;
  box-shadow: none !important;
  outline: none !important;
  filter: none !important;
  text-shadow: none !important;
}

/* Blocco fonte ministeriale */
.fc-mit-source{
  margin-top: 30px;
  padding-top: 15px;
  border-top: 1px solid rgba(0,0,0,.08);
  font-size: 13px;
  color: rgba(0,0,0,.75);
}

/* Label "Fonte ufficiale" */
.fc-mit-label{
  font-weight: 600;
  margin-right: 6px;
  color: #1d4d97;
}

/* Link ministero */
.fc-mit-source a{
  color: #1d4d97;
  text-decoration: none;
  font-weight: 500;
  transition: 0.2s ease;
}

/* Hover sobrio */
.fc-mit-source a:hover{
  text-decoration: underline;
  opacity: 0.85;
}


