/* Definizione delle variabili al livello di :root per una portata globale */
:root {
  --colore-primario: #ff0000;
  --colore-primario-hover: #AF040E;
  --colore-primario-hover-clear: #a8fbff;
  --colore-secondario: #e1e1e1;
  --nero: #000000;
  --nero_testo: #525252;
  --bianco: #ffffff;
  --margine: 22px;
  --margine_mezzo: 11px;
  --margine-doppio: 44px;
  --sfondo-grigio: #f7f9ff;
  --grigio: #d1d1d1;
  --verde: #c2ed0f;
  --verde-titolo: #0ae824;
  --prima-lettera: #00444a;
  --seconda-lettera: #007500;
  --terza-lettera: #38a836;
  --ultima-lettera: #0ae824;
}

/* Set root font-size so 1rem = 18px (user request) */
html {
  font-size: 18px;
}

/* Scroll Animations - Enhanced Motion Design */
.fade-in-up {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-80px) scale(0.95);
  transition: opacity 0.9s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(80px) scale(0.95);
  transition: opacity 0.9s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.scale-in {
  opacity: 0;
  transform: scale(0.85) rotateY(10deg);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1) rotateY(0deg);
}

.slide-in-blur {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-in-blur.visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

/* chatbot */
.message-item:last-child>.bot {
  margin-bottom: 200px;
}

.chatbot-container {
  font-size: 1.125rem;
  padding: 2px;
  border-radius: 35px;
}

.verde-terza-lettera {
  color: var(--terza-lettera);
}

.blue {
  color: var(--colore-primario);
}

.white {
  color: var(--bianco);
}

.green-title {
  color: var(--verde-titolo);
}

/* /chatbot */

.italic {
  font-style: italic;
}

body {
  font-family: "franklin-gothic-urw-cond", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 18px;
  color: #000000;
}

a {
  color: var(--colore-primario);
  width: 10%;
  text-decoration: none;
}

a:link {
  text-decoration: none;
}

/* header */

header img {
  width: 100%;
}

.main-section img {
  border-radius: 50%;
}

.logo-container img {
  width: 30%;
}

.top {
  font-size: 4.375rem;
  line-height: 1;
}

.bottom {
  font-size: 2.5rem;
}

.undertitle {
  color: var(--colore-primario);
  font-size: 2.188rem;
}

.Congress_01 {
  font-size: 1rem;
}

.description {
  padding-top: 7rem;
  flex-direction: row;
  min-height: 600px;
}

.david-wrapper {
  background-image: url("img/david.png");
  background-repeat: no-repeat;
  background-position: right;
  margin-top: 20px;
  padding: 40px;
}

.description {
  text-transform: uppercase;
  font-weight: 900;
}

.title {
  display: flex;
  flex-direction: column;
}

.guide {
  font-size: 2.5rem;
  line-height: 1.125;
}

.about {
  padding: 20px 0;
  padding-top: 95px;
}

.arrow-44 {
  max-width: 100%;
}

/* /header */

/* main */

h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
}

h2 {
  font-size: 2.75rem;
  font-weight: 900;
  line-height: 1.2;
  color: var(--colore-primario);
}

h3 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--colore-primario);
}

h4 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--colore-primario);
}

.speakers-demo h2 {
  color: var(--colore-primario);
}

.leoclubverticale-container {
  display: flex;
  justify-content: center;
}

p {
  color: #000000;
}

.old-video {
  text-transform: uppercase;
  font-size: 1.125rem;
  padding-top: 10px;
  color: #000000;
}

p {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #000000;
}

.workshop-ul {
  font-size: 1.375rem;
  color: #000000;
}

.btn {
  font-size: 1.25rem;
  color: #000000;
}

.programma>div,
em {
  font-size: 1.375rem;
  color: #000000;
}

.guests-counter span {
  font-weight: 900;
}

.guests-counter p {
  text-transform: uppercase;
}

.little {
  font-weight: 400;
}

.speaker-name {
  cursor: pointer;
  text-decoration: underline;
}

aside {
  font-size: 1rem;
  color: #000000;
}

.pe-auto {
  cursor: pointer;
  width: 10%;
}

.docs {
  width: 100%;
  height: 90%;
}

.docs img {
  padding: 1.5rem;
  cursor: pointer !important;
  transition: transform 0.3s ease;
  pointer-events: auto !important;
}

.docs img:hover {
  transform: scale(1.1) !important;
}

.speaker-img {
  cursor: pointer !important;
  pointer-events: auto !important;
}

/* Hover sincronizzato tra immagine e testo */
/* ...existing code... */

.teatro img {
  object-fit: cover;
}

.btn {
  background-color: var(--colore-primario);
  color: var(--bianco);
}

.btn:hover,
.active {
  color: var(--colore-primario);
  background-color: #f2f2f2;
  border: 1px solid var(--colore-primario);
}

.colonna_ticket a {
  color: var(--bianco);
}

.colonna_ticket a:hover,
.colonna_ticket .btn:hover {
  color: var(--colore-primario);
  background-color: var(--bianco);
}

.colonna_ticket h6 {
  padding: 10px 0;
}

.colonna_ticket .btn {
  border: 2px solid var(--colore-primario);
}

.price {
  font-size: 2.5rem;
}

#friday-button,
#saturday-button {
  color: var(--colore-primario);
  background-color: #f2f2f2;
  border: 1px solid var(--colore-primario);
}

#friday-button:hover,
.active,
#saturday-button:hover {
  background-color: var(--colore-primario) !important;
  color: var(--bianco) !important;
}

/* choose between friday and saturday */
.saturday {
  display: none;
}

/* Program heading: inline heading + description on same line */
 .program-heading {
  display: flex;
  align-items: baseline; /* align text baselines so h4 and p sit on same line */
  gap: 0.5rem;
  flex-wrap: nowrap;
 }
.program-heading h4,
.program-heading p {
  margin: 0;
}
/* Ensure children don't expand to full width and can sit side-by-side */
.program-heading h4,
.program-heading p {
  display: inline-block;
  vertical-align: baseline;
  line-height: 1; /* tighten line-height to reduce vertical offset */
}

/* On very small screens, stack vertically for readability */
@media (max-width: 576px) {
  .program-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}

/* /choose between friday and saturday */



#programmaContent,
#workshopContent,
#speakersContent {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), padding 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  padding-top: 0;
}

#programmaContent.show,
#workshopContent.show,
#speakersContent.show {
  max-height: 5000px;
  opacity: 1;
  padding-top: 2rem;
}

/* Collapsible Button Unificato */
.collapsible-button {
  background: transparent;
  border: 3px solid var(--colore-primario);
  border-radius: 15px;
  padding: 1.5rem 2.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  transition: all 0.3s ease, transform 0.3s ease;
  margin-bottom: 1.5rem;
}

.collapsible-button h3 {
  color: var(--colore-primario);
  margin: 0;
  transition: color 0.3s ease;
}

.collapsible-button i {
  font-size: 2rem;
  color: var(--colore-primario);
  transition: transform 0.3s ease, color 0.3s ease;
}

.collapsible-button:hover {
  background-color: var(--colore-primario);
  border-color: var(--colore-primario);
  transform: scale(1.02);
}

.collapsible-button:hover h3,
.collapsible-button:hover i {
  color: var(--bianco);
}

.collapsible-button:hover i {
  transform: scale(1.1);
}

.collapsible-button.active {
  background-color: var(--colore-primario);
  border-color: var(--colore-primario);
}

.collapsible-button.active h3,
.collapsible-button.active i {
  color: var(--bianco);
}

.collapsible-button.active i {
  transform: rotate(180deg);
}

.collapsible-button.active:hover {
  background-color: var(--colore-primario-hover);
  border-color: var(--colore-primario-hover);
}

/* Sfondo grigio per sezioni collapsibili */
.programma {
  background-color: white;
  padding-top: 100px;
  margin-bottom: -7%;
}

#map-container {
  margin: 0;
}

.location-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), padding 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  padding-top: 0;
}

.location-content.show {
  max-height: 2000px;
  opacity: 1;
  padding-top: 1rem;
}

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

.speakers-demo,
.extra {
  padding: 60px 0;
}

.only-english {
  padding: 16px;
  text-transform: uppercase;
  font-weight: 900;
  color: var(--bianco);
  background-color: var(--colore-primario);
  border-radius: 25px;
  line-height: 40px;
}

/* Speaker Cards */
.speaker-card {
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 20px;
}

.speaker-card:hover {
  transform: translateY(-5px);
}

.speaker-image {
  width: 100%;
  max-width: 250px;
  margin: 0 auto 20px;
  overflow: hidden;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.3s ease;
}

.speaker-card:hover .speaker-image {
  box-shadow: 0 8px 20px rgba(255, 0, 0, 0.3);
}

.speaker-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

.speaker-name {
  color: var(--colore-primario);
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 15px;
  text-align: center;
  letter-spacing: 0.5px;
}

.speaker-role {
  color: var(--colore-primario);
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 10px;
  letter-spacing: 1.5px;
  min-height: 24px;
}

/* Placeholder per allineare le card senza etichetta */
.speaker-role-placeholder {
  min-height: 34px;
}

/* Voting Cards Slider Section */
.voting-section {
  background-color: white;
  padding: 60px 0 80px;
  box-shadow: 0px -4px 6.4px 0px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.voting-section h2 {
  color: var(--colore-primario);
  font-weight: 700;
  font-size: 2.5rem;
}

.slider-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 20px 0;
}

.slider-track {
  display: flex;
  gap: 30px;
  animation: scroll-infinite 40s linear infinite;
  width: fit-content;
}

.slider-track:hover {
  animation-play-state: paused;
}

@keyframes scroll-infinite {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(var(--scroll-distance, -3100px));
  }
}

/* Voting cards grid */
.voting-grid {
  width: 100%;
  padding: 20px 0 0;
}

.voting-grid .col {
  display: flex;
}

.voting-grid .voting-card {
  height: 100%;
  min-width: 0;
  width: 100%;
  max-width: none;
  margin: 0;
}

.voting-card {
  min-width: 0;
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  cursor: pointer;
}

.voting-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 12px 24px rgba(255, 0, 0, 0.2);
}

.card-number {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background: var(--colore-primario);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: 0 2px 8px rgba(255, 0, 0, 0.3);
}

.voting-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
}

.voting-card {
  display: flex;
  flex-direction: column;
}

.voting-card h3 {
  color: var(--colore-primario);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  text-align: center;
}

.voting-card p {
  color: #666;
  font-size: 0.95rem;
  text-align: center;
  margin: 0;
}

.voting-card p {
  margin: 0 0 8px 0;
}

.card-author {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--colore-primario);
  text-align: center;
  margin-bottom: 12px;
  font-style: italic;
}

/* Voting action / button improvements */
.voting-action {
  margin-top: 12px;
}

.voting-action {
  margin-top: auto;
}

.voting-btn {
  display: inline-block;
  padding: 0.5rem 1.1rem;
  border-radius: 12px;
  font-weight: 800;
  color: var(--colore-primario);
  background: #ffffff;
  border: 2px solid var(--colore-primario);
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
  min-width: 120px;
  text-align: center;
  font-size: 1rem;
  line-height: 1.1;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
}

.voting-btn:hover,
.voting-btn:focus {
  background: var(--colore-primario);
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.voting-btn:focus {
  outline: none;
  box-shadow: 0 0 0 6px rgba(255, 0, 0, 0.08);
}

/* make sure card-number stays visible above image */
.voting-card .card-number {
  z-index: 3;
}

.voting-action {
  position: relative;
  z-index: 2;
}

#speakers,
.where {
  color: var(--colore-primario);
  font-weight: 900;
  text-transform: uppercase;
}

/* /speakers */

/* extra */

.subscriptions {
  margin: 50px 0;
}

.colonna_ticket {
  border: 2px solid var(--colore-secondario);
  border-radius: 25px;
  text-align: center;
  padding: 30px;
  margin-bottom: 50px;
}

.colonna_ticket li {
  color: var(--colore-primario);
  list-style: none;

  &:hover {
    cursor: default;
  }
}

.container_tickets .row {
  gap: 10px;
  flex-wrap: nowrap;
}

.row {
  margin-bottom: 50px;
}

.colonna_ticket li,
.colonna_ticket p {
  font-size: 1rem;
}

.colonna_ticket h3,
.colonna_ticket h5 {
  min-height: 75px;
}

.disattivata {
  background-color: var(--grigio);
  opacity: 0.7;
}

.sold-out {
  font-size: 1.875rem;
  text-transform: uppercase;
  color: red;
  font-weight: 700;
}

.extra {
  background-color: var(--colore-primario);
}

.extra h2,
.where,
.accompagnatori {
  color: var(--bianco);
}

.where,
.inizio,
.spettacolo {
  font-size: 1.375rem;
  color: var(--bianco);
}

/* Footer QR image sizing */
.footer-qr img {
  max-width: 140px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.footer-qr-col h4 {
  margin-bottom: 0.5rem;
}

.location {
  font-weight: 900;
  color: var(--nero_testo);
  line-height: 35px;
}

/* /extra */
/* map */
.iframe-rwd {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.iframe-rwd iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.wrapper {
  text-transform: uppercase;
  color: var(--nero_testo);
  line-height: 30px;
  font-weight: 900;
}

/* /map */

/* /main */

/* Workshop Section Styles */
.workshop-section {
  background-color: white;
  border-radius: 8px;
}

/* Info Congress Wrapper - white background */
.info-congress-wrapper {
  background-color: white;
  padding: 40px 20px;
}

.workshop-topics-box {
  background-color: white;
  border-left: 4px solid var(--colore-primario);
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}

.workshop-box-title {
  color: var(--nero);
  font-size: 1.5rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.workshop-topics-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.workshop-topics-list li {
  padding: 12px 0;
  padding-left: 30px;
  position: relative;
  font-size: 1.125rem;
  line-height: 1.6;
  color: #000000;
}

.workshop-topics-list li:before {
  content: "•";
  color: var(--colore-primario);
  font-weight: bold;
  font-size: 1.5rem;
  position: absolute;
  left: 0;
}

/* Info Congress Section Styles */
.info-congress-section {
  padding: 60px 0;
  background-color: transparent;
}

.info-box {
  background-color: white;
  border-left: 4px solid var(--colore-primario);
  padding: 35px 30px;
  border-radius: 8px;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
}

/* 'Come arrivare' button in info boxes */
.come-arrivare {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1rem;
  min-width: 120px;
  border-radius: 10px;
  /* Colors inherited from existing .btn styles */
  text-decoration: none;
  font-weight: 700;
  margin-top: 0.5rem;
  white-space: nowrap; /* prevent line breaks */
  font-size: 1rem;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* keep hover behavior minimal so .btn hover rules apply */
.come-arrivare:hover {
  text-decoration: none;
}

@media (max-width: 576px) {
  .come-arrivare {
    min-width: 140px; /* ensure tappable target on small screens */
    padding: 0.6rem 0.9rem;
  }
}

.info-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.info-box-icon {
  color: var(--colore-primario);
  font-size: 2.5rem;
  margin-bottom: 15px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.info-box-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--colore-primario);
  margin-bottom: 12px;
  text-align: center;
}

.info-box-content {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #000000;
}

.info-box-content strong {
  display: block;
  margin-bottom: 5px;
}

/* clickable info box anchor reset */
.info-box-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.info-box-link:hover {
  text-decoration: none;
}

/* CTA Section Styles */
.cta-iscriviti-section {
  background-color: var(--colore-primario);
  padding: 50px 0;
  text-align: center;
  color: white;
  box-shadow: 0px -4px 6.4px 0px rgba(0, 0, 0, 0.1);
  margin-top: 50px;
}

/* Programma list styles */
.program-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 40px;
}

.program-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 18px 22px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.program-time {
  font-weight: 700;
  color: var(--colore-primario);
  min-width: 78px;
  text-align: center;
  font-size: 1.125rem;
}

.program-body h4 {
  margin: 0 0 6px 0;
  font-size: 1.5rem;
}

.program-body p {
  margin: 0;
  color: #333;
}

@media (max-width: 991px) {
  .program-item {
    flex-direction: row;
  }

  .program-time {
    min-width: 60px;
  }
}

/* Mobile stacked time style */
@media (max-width: 600px) {
  .program-time {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 800;
    color: var(--colore-primario);
    line-height: 1;
    min-width: auto;
  }

  .program-time .time-start,
  .program-time .time-end {
    display: block;
    padding: 0;
  }

  .program-time .time-sep {
    display: none;
  }

  .program-item {
    gap: 12px;
    padding: 12px;
  }

  .program-body h4 {
    font-size: 1.05rem;
  }

  .program-body p {
    font-size: 0.95rem;
  }
}

.cta-iscriviti-section h3 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.cta-iscriviti-section p {
  color: white;
  font-size: 1.25rem;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.cta-iscriviti-button {
  background-color: white;
  color: var(--colore-primario);
  padding: 16px 100px;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
  cursor: pointer;
}

.cta-iscriviti-button:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  color: var(--colore-primario);
  background-color: #ffffff;
}

.cta-iscriviti-button:hover i {
  transform: translateY(3px);
  animation: none;
}

.cta-iscriviti-button i {
  animation: bounce 2s infinite;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-5px);
  }

  60% {
    transform: translateY(-3px);
  }
}

/* Form Section Styles */
.form-iscriviti-section {
  background-color: #f2f2f2;
  padding: 60px 0;
}

.form-header {
  text-align: center;
  margin-bottom: 40px;
}

.form-header h2 {
  color: var(--colore-primario);
  font-size: 2rem;
  margin-bottom: 15px;
}

.form-header p {
  color: #000000;
  font-size: 1.125rem;
}

.form-container-box {
  background-color: white;
  border: 2px solid #e1e1e1;
  border-top: 4px solid var(--colore-primario);
  border-radius: 8px;
  padding: 40px;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

@media (max-width: 600px) {
  .form-group-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.form-group-full {
  margin-bottom: 20px;
}

.form-container-box label {
  font-weight: 600;
  color: #000000;
  margin-bottom: 8px;
  display: block;
  font-size: 1rem;
}

.form-container-box label span {
  color: var(--colore-primario);
}

.form-container-box input,
.form-container-box select,
.form-container-box textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #d1d1d1;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-container-box input:focus,
.form-container-box select:focus,
.form-container-box textarea:focus {
  outline: none;
  border-color: var(--colore-primario);
}

.form-container-box textarea {
  resize: vertical;
  min-height: 100px;
}

/* Radio button groups for workshops */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  background-color: #f9f9f9;
  border: 1px solid #d1d1d1;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 400;
}

.radio-label:hover {
  background-color: #f0f0f0;
  border-color: var(--colore-primario);
}

.radio-label input[type="radio"] {
  width: auto;
  margin: 0;
  accent-color: var(--colore-primario);
}

.radio-label.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: #e9e9e9;
}

.radio-label.disabled:hover {
  background-color: #e9e9e9;
  border-color: #d1d1d1;
}

/* Reset workshop button */
.reset-workshop-btn {
  background: transparent;
  border: 1px solid #999;
  color: #666;
  padding: 8px 16px;
  font-size: 0.875rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.reset-workshop-btn:hover {
  background-color: #f0f0f0;
  border-color: #666;
  color: #333;
}

.reset-workshop-btn i {
  font-size: 0.75rem;
}

.form-checkbox-group {
  margin-bottom: 20px;
  padding: 15px;
  background-color: #f9f9f9;
  border-radius: 4px;
}

.form-checkbox-group input[type="checkbox"] {
  width: auto;
  margin-right: 10px;
}

.form-checkbox-group label {
  display: flex;
  align-items: flex-start;
  font-weight: 400;
  margin-bottom: 0;
}

.participation-info {
  background-color: #fef5f5;
  border-left: 4px solid var(--colore-primario);
  padding: 20px;
  margin-bottom: 30px;
  border-radius: 4px;
}

.participation-info strong {
  color: var(--colore-primario);
}

.submit-button {
  background-color: var(--colore-primario);
  color: white;
  padding: 15px 60px;
  font-size: 1.25rem;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  justify-content: center;
}

.submit-button:hover {
  background-color: var(--colore-primario-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

/* Response Modal Styles */
.response-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
}

.response-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.response-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.response-modal-content {
  position: relative;
  background-color: white;
  border-radius: 16px;
  padding: 40px 30px 30px;
  max-width: 450px;
  width: 90%;
  margin: 20px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
}

.response-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 32px;
  height: 32px;
  border: none;
  background: #f0f0f0;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  color: #666;
}

.response-modal-close:hover {
  background: #e0e0e0;
  color: #333;
}

.response-modal-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}

.response-modal-content.success .response-modal-icon {
  color: #28a745;
}

.response-modal-content.error .response-modal-icon {
  color: var(--colore-primario);
}

.response-modal-content.warning .response-modal-icon {
  color: #ffc107;
}

.response-modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #333;
}

.response-modal-body {
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 25px;
}

.response-modal-body .user-data-box {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 15px;
  margin-top: 15px;
  text-align: left;
}

.response-modal-body .user-data-box p {
  margin: 8px 0;
  font-size: 0.9rem;
}

.response-modal-btn {
  background-color: var(--colore-primario);
  color: white;
  border: none;
  padding: 12px 40px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.response-modal-btn:hover {
  background-color: var(--colore-primario-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.response-modal-content.success .response-modal-btn {
  background-color: #28a745;
}

.response-modal-content.success .response-modal-btn:hover {
  background-color: #218838;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Mobile responsive modal */
@media (max-width: 480px) {
  .response-modal-content {
    padding: 30px 20px 25px;
    margin: 15px;
    border-radius: 12px;
  }

  .response-modal-icon {
    font-size: 3rem;
    margin-bottom: 15px;
  }

  .response-modal-title {
    font-size: 1.25rem;
  }

  .response-modal-body {
    font-size: 0.95rem;
  }

  .response-modal-btn {
    width: 100%;
    padding: 14px 30px;
  }
}

/* footer */
ul {
  list-style: none;
}

footer {
  background-color: var(--colore-primario);
  padding: 70px 0;
  line-height: 1.5;
}

footer h4 {
  font-size: 1.125rem;
  color: var(--bianco);
  text-transform: uppercase;
  margin-bottom: 35px;
  font-weight: 500;
  position: relative;
}

footer li,
ul {
  padding: 0;
}

footer li,
footer a {
  color: var(--bianco);
  text-decoration: none;
  font-weight: 300;
  color: var(--bianco);
  transition: all 0.3s ease;
}

footer li:hover {
  color: var(--bianco);
}

footer .social-links a {
  display: inline-block;
  height: 40px;
  width: 40px;
  background-color: rgba(255, 255, 255, 0.2);
  text-align: center;
  line-height: 40px;
  border-radius: 50%;
  color: var(--bianco);
  transition: all 0.5s ease;
}

footer .social-links a:hover {
  color: var(--nero_testo);
  background-color: var(--bianco);
}

.reserved {
  color: var(--bianco);
}

/* /footer */


/* ==================================== */
/* STILI PER LA FRECCIA ANIMATA CLICCABILE */
/* ==================================== */

/* Definisce l'animazione "bounce" (rimane la stessa) */
@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-10px);
  }

  60% {
    transform: translateY(-5px);
  }
}

/* Stile e Posizionamento del link indicatore */
.scroll-indicator {
  position: absolute;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  color: var(--colore-primario);
  z-index: 10;
  text-decoration: none;
  /* Rimuove la sottolineatura tipica dei link */
  cursor: pointer;
  z-index: 1;
}

/* Stile e Animazione dell'Icona */
.scroll-indicator i {
  font-size: 2rem;
  animation: bounce 2s infinite;
}



.program-list h4 {
  color: black;
}

/* Global heading font rule requested by user */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "franklin-gothic-urw-comp", sans-serif;
  font-weight: 700;
  font-style: normal;
}

@media (max-width: 768px) {
  .hero-left {
    flex: 0 0 auto;
    padding-top: 2rem;
  }

  .hero-date {
    text-align: right !important;
    width: 100%;
    font-size: 1.2rem !important;
    margin-bottom: 0.5rem;
    line-height: 1.1;
  }
  .hero-date .hero-title {
    font-size: 1.4rem !important;
    margin-bottom: 0.2rem;
    line-height: 1.1;
  }
  .hero-desktop-buttons {
    display: none !important;
  }
  .hero-mobile-buttons {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 2.5rem 0 0 0;
    flex: 0 0 auto;
  }
  .hero-mobile-buttons .cta-button {
    width: 90%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
}
@media (min-width: 769px) {
  .hero-mobile-buttons {
    display: none !important;
  }
  .hero-desktop-buttons {
    display: flex !important;
  }
}


.radio-label.disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.radio-label.disabled input {
  pointer-events: none;
}
