@font-face {
  font-family: 'Agenda';
  src: url('../fonts/fonnts.com-Agenda.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Agenda';
  src: url('../fonts/fonnts.com-Agenda_Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'Agenda';
  src: url('../fonts/fonnts.com-Agenda_Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Agenda';
  src: url('../fonts/fonnts.com-Agenda_RegularItalic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
}

body {
  font-family: 'Agenda', sans-serif !important;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
  color: #333;

  display: flex;
  justify-content: center;

  background-image: url('/assets/images/background.jpg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover; /* riempie mantenendo proporzioni */
  background-attachment: fixed; /* <-- qui lo rendi "fixed" */
}

header {
  background-color: #333;
  color: #fff;
  padding: 1rem 0;
  text-align: center;
  position: fixed;
}

main {
  text-align: center;
  background-color: #fbbf56;
  padding: 5rem 0 0 !important;
}

.container {
  padding: 0;
  max-width: 800px !important;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.cta-button {
  background-color: #007bff;
  color: #fff;
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.1rem;
}

footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 1rem 0;
  position: absolute;
  bottom: 0;
  width: 100%;
}

.text-conad {
  font-weight: bold;
  color: #641802;
}

p,
h1,
h2 {
  line-height: 1;
  margin: 0;
}

.scopri {
  background-color: #cc671b;
  color: #fff;
  background: linear-gradient(to bottom, #cc671b 0%, #dc921b 100%);
}

.cartolina {
  background-color: #f7de8f;
}

.cartolina h1 {
  font-size: 3rem;
}

/* Burger Menu */
.burger-menu {
  background: none;
  border: none;
  padding: 1rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 60px;
  height: 60px;
  transition: all 0.3s ease;
}

.burger-line {
  width: 100%;
  height: 5px;
  background-color: #d4002a;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.burger-menu:hover .burger-line {
  background-color: #a50020;
}

/* Stili per i nav-tabs nella sidebar */
.offcanvas .nav-tabs {
  border-bottom: 1px solid #dee2e6;
}

.offcanvas .nav-tabs .nav-link {
  font-size: 0.7rem;
  padding: 0.5rem 0.4rem;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  text-transform: uppercase;
  font-weight: bold;
  color: #000;
  font-size: 0.8rem;
}

#offcanvasRight .card-text {
  /*font-size: 0.8rem;*/
  line-height: 1.3rem;
}

#offcanvasRight .btn-close {
  position: absolute;
  left: 0.5rem;
  top: 1rem;
  background-color: #fff;
}

.fs-3rem {
  font-size: 3rem;
}

.fs-2rem {
  font-size: 2rem;
}

.lh-min {
  line-height: 0.8;
}

.nav-tabs .nav-link.active {
  color: var(--bs-nav-tabs-link-active-color);
  background-color: var(--bs-nav-tabs-link-active-bg);
  border-color: #f1862c;
  border-bottom: 2px solid #f1862c !important;
}

.inforeg a {
  font-weight: bold;
  color: #e30613;
  font-size: 0.9rem;
}

.card-body svg,
.card-body i {
  color: #fff;
  background-color: #ffb63d;
  border-radius: 0.2rem;
  padding: 0.2rem;
  /* width: 0.8rem; */
  height: 1.2rem;
  margin-bottom: 0.3rem;
  /* height: auto; */
  display: flex;
  align-items: center;
}

.offcanvas-bottom {
  max-width: 700px;
  margin: auto;
  height: 90dvh !important;
  border-radius: 1rem 1rem 0 0;
  background-color: #fff;
  background-image: url(/assets/images/background_premi.webp);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: scroll;
}

@media (orientation: portrait) {
  .offcanvas-end {
    max-width: 95vw;
  }
}

.offcanvas-body {
  overflow-x: hidden;
}

.info-carta,
.popover {
  z-index: 99999 !important;
}

.btn-whatsapp img {
  max-height: 5rem;
  width: auto;
}

/*.form-content {
  background-color: #f2f2f2;
  border: 0.5rem solid #fff;
}

.form-control:focus {
  box-shadow: none !important;
  border-color: light-dark(rgb(118, 118, 118), rgb(133, 133, 133)) !important;
}
*/

.offcanvas-body::-webkit-scrollbar {
  display: none;
}

.offcanvas-body {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

ul.card-text li {
  line-height: 1.2;
}

/* Stili per la validazione email */
.form-control.is-invalid {
  border-color: #dc3545;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.invalid-feedback {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  font-weight: 500;
}

.invalid-feedback.d-block {
  display: block !important;
}

.text-support {
  color: #616161;
}