/*!
 * 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;
}

/* selettore per darkmode */

.btn-darkmode {
  background-color: transparent;
  border: none;
  cursor: pointer;
}

.btn-darkmode i {
  color: #333; 
}

.dark-mode .btn-darkmode i {
  color: #fff;
}


/* Stile di base (light mode) del pulsante */
.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;
}

.dark-mode .btn-proponi {
  color: #fff !important;       
}

.dark-mode .btn-proponi:hover {
  color: #fff !important;       
}

.dark-mode .btn-proponi i {
  background: #FF5722; 
  color: #fff !important;
}

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

.dark-mode .card-evidenza-body h5 {
  color: #212121 !important;
}

.dark-mode .card-evidenza h5 {
  color: #212121 !important;
}


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



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


.footer-alto {
  color: #fff;
  margin-top: 50px;
  position: relative;
  background: linear-gradient(135deg, #1A344F 0%, #22364C 50%, #263238 100%);
  overflow: hidden; 
}

.footer-alto::before {
  content: '';
  background-image: url('/wp-content/themes/fcrf-portale/img/background_newsletter2.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  opacity: 0.2; /* imposta l'opacità desiderata solo sull'immagine */
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.footer-alto > * {
  position: relative; /* necessario per stare sopra il ::before */
  z-index: 1;
}


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

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

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

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

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

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

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