/*!
 * FCRF-Portale – 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;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}



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

.btn-primary {
  background: #FF5722;
}

.btn-proponi {
  border: 1px solid #444; 
  color: #444;
  text-decoration: none;
}

@media (max-width:998px) {
.btn-proponi {
  display:none;
  }
}

@media (max-width:767px) {
.btn-proponi {
  display:none !important;
  }
}

.btn-proponi i {
  background: #FF5722;
  color: #fff;
  transition: background-color 0.3s ease;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
  padding: 12px 17px;
}

.btn-proponi i:hover {
  background: #f33c04;
}

button:focus {outline:none;}

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


/* 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: 5px 25px;
  color:#fff !important;
  border:none;
}


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


.btn-outline-primary:hover {
  background:#F85723;
  border:2px solid #F85723;
  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 {
  padding: 0 !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;
}

@media (max-width:767px) {
  .btn-link-alt {
    display: none;
    }
  }

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



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

.card-title {
  font-weight: 700;
}

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


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


.card-evidenza {
  border: 10px solid rgba(255, 255, 255, 0.5);
  border-radius:25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-evidenza-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between; 
}

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


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

article h2,h3,h4,h5,h6 {
  margin-bottom:20px;
}


/* FORM NEWSLETTER
-------------------------------------*/


form[name="myForm"] {
  display: flex;
  flex-direction: column;
  max-width: 300px;
}

form[name="myForm"] label {
  margin-bottom: 10px; 
}

form[name="myForm"] input[type="text"],
form[name="myForm"] input[type="submit"] {
  margin-bottom: 15px;
}

form[name="myForm"] input[type="submit"] {
  align-self: flex-start;
}



/* 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.08);
    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;
    color:#222 !important;
}

.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;
    }
}


/* COMMENTI
-------------------------------------*/

.comments textarea {width:100%;}
.comments label {min-width:80px;}
.comment .reply {
  border-bottom: 1px solid #ccc;
  margin-bottom:30px;
  padding-bottom:10px;
}
.comments ul,
.comments ol {list-style-type:none;}
.comment-author img {border-radius: 999px;}


/* 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;
border: 1px solid #bbbb;
}

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

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

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

.titolo-widget {
  display: block;
  font-size: 1em;
}

.trattino-titolo {
    display: block;
    border-top-width: 2px;
    border-top-style: solid;
    overflow: hidden;
    margin-top: 0.5em;
    width: 50px;
    border-color:#26a69a;
  }

.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;
}

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

.widget-sidebar {
  padding-left:30px;
}

.sidebar-articolo {
  align-self: flex-start;
  padding: 1.75rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 24px rgba(25, 31, 40, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.65);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.sidebar-articolo .widget-sidebar {
  padding-left: 0;
}

.sidebar-articolo .widget_block label {
  display: block;
  margin-bottom: 1rem;
}

.single-classic .row {
  --bs-gutter-x: 2.5rem;
}


@media (max-width:767px) {
  .widget-sidebar {
    border:none;
    }
  }


.footer .widget-sidebar {
  padding: 0px;
  margin-bottom:0px;
}


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

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


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

.pagination {
  margin-bottom:30px;
  margin-top:30px;
  justify-content: center;
}

.pagination-blog {
  margin-bottom:30px;
  margin-top:50px;
  text-align: center;
}

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

.page-numbers:hover {
  background: #26a69a;
  color: #fff;
}

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



/* =====================================
   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: #333;
}


/* Offcanvas mobile */
.fcrf-mobile-offcanvas {
    background: radial-gradient(800px circle at 15% 30%, rgba(0,220,255,.22), transparent 60%),
  radial-gradient(600px circle at 92% 42%, rgba(236,51,145,.18), transparent 58%),
  radial-gradient(850px circle at 50% 82%, rgba(120,120,255,.16), transparent 65%),
  #020202;
    color: #f5f5f5;
    width: 100% !important;
    max-width: 100% !important;
    left: 0 !important;
    right: 0 !important;
}

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

/* 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;
    margin-right:2rem;
}

.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: 1rem 4rem 1rem 1.25rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 220, 255, .42);
    background: #fff;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .16);
    font-size: 1.1rem;
    font-weight: 500;
    color: #222;
}

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

/* Lente dentro il campo */
.fcrf-mobile-search-form .search-submit {
    position: absolute;
    left: auto;
    right: .45rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2.8rem;
    height: 2.8rem;
    background: linear-gradient(135deg, #00BABC 0%, #96A3EB 100%);
    border: none;
    border-radius: 8px;
    padding: 0;
    font-size: 1.3rem;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s ease, box-shadow .2s ease;
}

.fcrf-mobile-search-form .search-submit:hover {
    transform: translateY(-50%) scale(1.03);
    box-shadow: 0 0 0 3px rgba(236, 51, 145, .2);
}

/* Search mobile: focus visibile */
.fcrf-mobile-search-form .search-field:focus-visible {
  outline: 2px solid #ec3391;
  outline-offset: 3px;
  border-color: #00BABC;
}

.fcrf-mobile-search-form .search-submit:focus-visible {
  outline: 2px solid #ec3391;
  outline-offset: 4px;
  border-radius: 8px;
}



/* ------------------------------------------------------------
FOOTER
-------------------------------------------------------------- */


.footer-alto {
  color: #fff;
  margin-top: 50px;
  background:
    radial-gradient(circle at 14% 18%, rgba(22, 125, 228, 0.42) 0%, rgba(22, 125, 228, 0) 34%),
    radial-gradient(circle at 68% 28%, rgba(255, 87, 34, 0.16) 0%, rgba(255, 87, 34, 0) 28%),
    radial-gradient(circle at 92% 82%, rgba(6, 24, 34, 0.95) 0%, rgba(6, 24, 34, 0) 38%),
    linear-gradient(135deg, #173653 0%, #1A344F 46%, #263238 100%);
}


.footer-alto li a {
  color: #fff;
}

.footer-alto h2 {
  color: #fff;
}

@media (max-width:767px) {
  .footer-basso {
    text-align:center;
    margin-top: 20px;
    }
  }


.footer-sito a {
  text-decoration: none;
}

.footer-sito ul {
  padding-left: 0px;
}

.margin-footer {
  margin-top:40px;
  margin-bottom: 40px;
}

@media (max-width:767px) {
  .margin-footer {
    margin-top:20px;
    margin-bottom:20px;
    }
  }


.footer label {
  font-size: 1em;
  line-height:1.2;
}

.footer input {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.footer #email {
  width: 100% !important;
  border-radius: 10px;
  height:45px;
  border: none !important;
}

.footer .btn-primary {
  border:none;
  background:#FF5722;
}

.footer h4 {
  color:#fff;
}

input.inserisci-email .footer {
  width:100%;
  border-radius:0px !important;
}
