/*!
 * FCRF-cesifin – components.css
 * Reusable UI components (cards, buttons overrides, etc.)
 */


 /* BACK TO TOP
-------------------------------------*/


.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none;
  z-index: 1000;
  padding: 10px 15px;
  font-size: 20px;
  border-radius: 20px;
  border:none;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
  background-color: #936100;
}

.back-to-top:hover {
    background-color: #0B4F6C;
}


/* BOTTONI
-------------------------------------*/


/* FOCUS ACCESSIBILE (tastiera) */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #1b1b1b;
  outline-offset: 3px;
  border-radius: 6px;
}

.btn-outline-light {
  text-transform:uppercase;
  font-weight:bold;
  padding: 15px 30px;
}


/* hover del pulsante */
.btn-outline-light:hover{
  border: 1px solid transparent;
  background: #C9974D ;
  color:#fff;
}

.btn-iscriviti {border-radius: 0px 6px 6px 0px !important;}


.btn-outline-primary-header {
  padding: 10px 25px;
  background: linear-gradient(to right, #ec3391, #04809F);
  color: #fff !important;
}

.btn-outline-primary-header a:hover {
  color: #fff !important;
}


.btn-outline-primary {
  border:2px solid #7F1F1C;
  color:#7F1F1C !important;
  border-radius: 50px !important;
}


.btn-outline-primary:hover {
  background:#7F1F1C;
  border:2px solid #7F1F1C;
  color:#fff !important;
}

.btn-secondary {
  background: #80715D;
  border:none;
}

.btn-secondary:hover {
  background: #80715D;
}

.btn-outline-secondary {
  border:2px solid #fff;
  padding: 9px 20px;
  color:#fff !important;
  border-radius: 4px !important;
}

.btn-outline-secondary:hover {
  border:2px solid #fff;
  background: #fff;
  padding: 9px 20px;
  color:#333 !important;
  border-radius: 4px !important;
}


.btn-light.menu-custom a  {color:#333 !important;}


.btn-link {
  color: #222 !important;
  text-decoration: none !important;
}

.btn-link-alt {
  color: #222 !important;
  text-decoration: none !important;
  margin-top: -10px;
  border:2px solid #222;
  min-width: 120px;
}

.btn-link-alt:hover {
  color:#222;
  border:2px solid #222;
}

.btn-home {
  color: #1d223f !important;
  padding: 0;
}

.btn-dx {
  float:right;
}



/* =====================================
   MENU MOBILE
   ===================================== */

/* Bottone hamburger mobile */
.fcrf-burger-btn {
    border: 0;
    background: transparent;
    padding: 0;
    margin-left: auto;
    margin-right: 16px;
    line-height: 1;
    transform: translateY(-2px);
}

.fcrf-burger-icon {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 28px;
    height: 22px;
}

.fcrf-burger-icon span {
    display: block;
    height: 2px;
    border-radius: 999px;
    background-color: #000;
}

/* Allinea verticalmente logo, menu desktop e hamburger */
.navbar .container.bg-custom {
  display: flex;
  align-items: center;
}


.navbar .container.bg-custom .navbar-brand {
  padding-top: 0;
  padding-bottom: 0;
}

/* Offcanvas mobile */
.fcrf-mobile-offcanvas {
    background-color: #1f1f1f;
    color: #f5f5f5;
    width: 100% !important;
    max-width: 100% !important;
    left: 0 !important;
    right: 0 !important;
}

.fcrf-mobile-nav-wrapper {
    margin-top: 1rem;
}

/* X di chiusura (mobile e mega) */
.fcrf-offcanvas-close {
    font-size: 3.2rem !important;
    line-height: 1;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    background: none;
    color: #ffffff !important;
}

/* Backdrop per tutti gli offcanvas (mobile + mega) */
.offcanvas-backdrop.show {
    opacity: 0.7 !important;
    background-color: #000 !important;
}

/* --- NAV MOBILE: PRIMO LIVELLO --- */

.fcrf-mobile-nav > .menu-item {
    margin-bottom: .25rem;
}

.fcrf-mobile-nav > .menu-item > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .35rem 1.5rem;
    font-size: 1.4rem;
    font-weight: 400;
    color: #f5f5f5;
    text-decoration: none;
}

.fcrf-mobile-nav > .menu-item > a:hover,
.fcrf-mobile-nav > .menu-item > a:focus {
    text-decoration: none;
    color: #ffffff;
}

/* Chevron per le voci con submenu */
.fcrf-mobile-nav .menu-item-has-children {
    position: relative;
}

.fcrf-submenu-toggle {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-left: auto;
}

.fcrf-submenu-toggle i {
    font-size: 1.4rem;
    pointer-events: none;
    transition: transform 0.2s ease;
    transform-origin: center;
}

.fcrf-submenu-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.fcrf-submenu-toggle:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* --- NAV MOBILE: SECONDO LIVELLO --- */

/* reset pallini */
.fcrf-mobile-nav .sub-menu,
.fcrf-mobile-nav .sub-menu .menu-item {
    list-style: none !important;
    margin-left: 0 !important;
}

/* stato base: nascosto, con transizione */
.fcrf-mobile-nav .sub-menu {
    padding-left: 2rem;
    margin-top: .2rem;
    margin-bottom: .75rem;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity .25s ease, max-height .25s ease;
}

/* menu aperto */
.fcrf-mobile-nav .menu-item.is-open > .sub-menu {
    opacity: 1;
    max-height: 500px; /* valore abbastanza alto per tutti i casi */
}

.fcrf-mobile-nav .sub-menu .menu-item > a {
    display: block;
    padding: .2rem 0;
    font-size: 1.2rem;
    color: #f5f5f5;
    text-decoration: none;
}

.fcrf-mobile-nav .sub-menu .menu-item > a:hover,
.fcrf-mobile-nav .sub-menu .menu-item > a:focus {
    text-decoration: underline;
}

/* --- SEARCH MOBILE (campo con lente dentro) --- */

.fcrf-mobile-search {
    padding: 0 2.5rem;
}

.fcrf-mobile-search-form .fcrf-search-field-wrapper {
    position: relative;
    width: 100%;
}

/* Campo “pillola” */
.fcrf-mobile-search-form .search-field {
    width: 100%;
    padding: 0.9rem 1.2rem 0.9rem 3.0rem; /* spazio a sinistra per la lente */
    border-radius: 999px;
    border: none;
    background-color: #d7d7d7;
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
}

.fcrf-mobile-search-form .search-field::placeholder {
    color: #9a9a9a;
}

/* Lente dentro il campo */
.fcrf-mobile-search-form .search-submit {
    position: absolute;
    left: 1.0rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    font-size: 1.3rem;
    color: #555;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Search mobile: focus visibile */
.fcrf-mobile-search-form .search-field:focus-visible {
  outline: 3px solid #1b1b1b;
  outline-offset: 2px;
}

.fcrf-mobile-search-form .search-submit:focus-visible {
  outline: 3px solid #1b1b1b;
  outline-offset: 4px;
  border-radius: 999px;
}

/* Logo in fondo al menu mobile */
.fcrf-mobile-logo img {
    max-width: 180px;
    height: auto;
    opacity: .95;
}

.fcrf-mobile-logo {
    padding-bottom: 2.5rem;
}

/* Hamburger bianco su header trasparente / navbar dark */
.navbar.navbar-dark .fcrf-burger-icon span,
body.header-trasp-active .fcrf-burger-icon span {
    background-color: #ffffff !important;
}

/* CARD
-------------------------------------*/

.card-text {
  font-size: 0.85em;
  line-height: 1.4;
}

.card-body a {
  text-decoration: none !important;
}


.card-news {
  border-radius: 25px !important;
  border: 1px solid rgba(0,0,0,0.1);
  padding:10px;
}

.card-news-eventi {
  background: #fff;
}

.card-news .card-title {
  color: #333;
}

.card-news a:hover {text-decoration: none;}

.card-news .card-text {
  font-weight: 300;
}

.card-text p {
  display:initial !important;
}
 

.card-home {
  background: transparent;
  padding-top:0px !important;
}

.card.card-home {
  border:none !important;
}

.card-home .card-title {
  font-size: 1.1em;
  line-height: 1,2;
  font-weight: 600;
}

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

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

.card-evidenza {
  border-top: 0px;
  border-left:0px;
  border-right:0px;
  border-bottom:0px;
  border-radius:20px;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border:1px solid rgba(0,0,0,0.1);
}

.card-evidenza-body {
  flex-grow: 1; /* Fa crescere il contenitore per riempire lo spazio disponibile */
  display: flex;
  flex-direction: column;
  justify-content: space-between; 
}


/* PAGINA BLOG
-------------------------------------*/


.imm-articolo-blog {
  border-radius: 20px;
}


.testo-news {
  line-height: 24px;
}

.titoli-news {
    font-weight:600;
}


/* Widgets Sidebar
-------------------------------------*/


.widget_search {padding:10px;}
.widget_search .screen-reader-text {display:block;}
.widget_search #s {
  width: 70%;
float: left;
border-radius: 50px 0px 0px 50px;
}

.widget li {
  list-style-type: none;
  margin-bottom:10px;
  line-height:1.4em;
}
.widget a {
  color:#333;
  text-decoration: none;
}
.widget a:hover {
  text-decoration: underline;
}

.widg_tit {
  position:relative;
  overflow: hidden;
}

.titolo-widget {
  display: block;
  font-size: 1em;
  margin-bottom:15px;
}

 
  .widget_search #searchsubmit {
    color:#fff;
    border:1px solid #7F1F1C;
    width: 30%;
    float: left;
    background: #7F1F1C;
    border-radius: 0px 50px 50px 0px;
}

.footer .widget_search #searchsubmit {
  color:#fff;
  border:1px solid #C9974D;
  width: 30%;
  float: left;
  background:#C9974D;
  padding-bottom: 5px;
}

.footer .widget_search {padding: 0px 10px 0px 10px;}

.widget select {
  width:100%;
  border-radius: 50px;
  border: 1px solid #ddd;
  padding: 10px;
}


/* paginazione
-------------------------------------*/


.pagination-blog {
  margin-bottom:30px;
  margin-top:30px;
}

.page-numbers.current {
    background: #936100;
    color: #fff;
}

.page-numbers {
    display: inline-block;
    padding: 10px 20px;
    background: #fff;
    box-shadow: 0 0 6px 0 rgb(0 0 0 / 10%);
    text-decoration: none;
    border-radius: 6px;
}

.page-numbers:hover {
    text-decoration:none;
    background: #936100;
    color:#fff;
}


/* pulsanti condivisione social
-------------------------------------*/


/* Contenitore share */
.fcrf-share {
    gap: 1rem;
}

/* Label "Condividi:" */
.fcrf-share-label {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #5a5a5f;
}

/* Gruppo di bottoni */
.fcrf-share-group .btn-share {
    /* dimensione quadrata */
    width: 52px;
    height: 52px;
    padding: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background-color: #f2f1f6; /* stesso colore del background */
    color: #4a4a4f;

    font-size: 1.3rem;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.15s ease,
        color 0.2s ease;
}

/* Hover / focus */
.fcrf-share-group .btn-share:hover,
.fcrf-share-group .btn-share:focus {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #202020;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

/* Stato active (click) */
.fcrf-share-group .btn-share:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
}

/* Versione mobile: un filo meno spaziosa */
@media (max-width: 575.98px) {
    .fcrf-share {
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .fcrf-share-group .btn-share {
        width: 46px;
        height: 46px;
        border-radius: 12px;
        font-size: 1.1rem;
    }
}


/* Articoli recenti sul widget a destra in singolo post
-------------------------------------*/


/* Contenitore lista */
.fcrf-recent-posts {
    margin: 0;
    padding: 0;
}

/* Ogni item */
.fcrf-recent-item {
    gap: 1rem;
}

/* Thumbnail */
.fcrf-thumb-wrapper {
    display: block;
    width: 95px;
    height: 95px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 12px;
}

.fcrf-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Txt */
.fcrf-recent-title {
    display: block;
    font-size: 1.05rem;
    color: #1d1d1f;
    line-height: 1.3;
    text-decoration: none;
}

.fcrf-recent-title:hover {
    text-decoration: underline;
}

.fcrf-recent-date {
    margin-top: 4px;
    color: #6c6c73;
    font-size: 0.9rem;
}

/* Mobile tweaks */
@media (max-width: 575.98px) {
    .fcrf-thumb-wrapper {
        width: 80px;
        height: 80px;
    }

    .fcrf-recent-title {
        font-size: 1rem;
    }
}


