@font-face {
  font-family: WhiteCapel; /* set name */
  src: url(WhiteCapel.woff); /* url of the font */
}

/* 1. Global Styles & Variables */
:root {
  --color-primary: #35988E;
  --color-secondary: #F3C98B;
  --color-dark: #0D1B2A;
  --color-text: #333333;
  --color-light-gray: #F8F9FA;
  --font-heading: 'WhiteCapel', serif;
  --font-body: 'Inter', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: #FFFFFF;
  position: relative;
}

.container {
  width: 90%;
  max-width: 1152px;
  margin: 0 auto;
}

/* 2. Hero & Header Section */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 850px;
  width: 100%;
  color: white;
  display: flex;
  flex-direction: column;
}

.hero-background {
  background-image: url('foto/saranda_1.png');
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.hero-container {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* HEADER: layout orizzontale pulito */
.main-header {
  display: flex;
  align-items: center;
  justify-content: space-between; /* logo left, controls right */
  gap: 20px;
  padding: 18px 30px; /* regola secondo il tuo layout */
  width: 100%;
  box-sizing: border-box;
}

/* opzionale: raggruppamento sinistra/destra per maggiore controllo */
.header-left { display:flex; align-items:center; gap:12px; }
.header-right { display:flex; align-items:center; gap:12px; }

/* Rimuovere qualsiasi posizione assoluta sul lang-switcher */
.lang-switcher {
  position: relative; /* necessario per menu assoluto internamente */
  display: inline-block;
  font-family: 'Inter', sans-serif;
}

/* pulsante */
.lang-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.06);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 15px;
  cursor: pointer;
  transition: all .18s ease;
  backdrop-filter: blur(6px);
}

/* stato hover/focus */
.lang-btn:hover, .lang-btn:focus {
  background: rgba(255,255,255,0.09);
  transform: translateY(-1px);
  outline: none;
}

/* freccia ruota quando aperto (JS aggiunge .open) */
.lang-btn .arrow { transition: transform .22s ease; }
.lang-btn.open .arrow { transform: rotate(180deg); }

/* menu a tendina */
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(12,12,12,0.96);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0,0,0,0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all .18s cubic-bezier(.2,.9,.3,1);
  z-index: 60;
  min-width: 160px;
}

/* menu visibile */
.lang-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* singola opzione */
.lang-option {
  padding: 10px 14px;
  cursor: pointer;
  color: #fff;
  font-size: 14px;
  display:flex;
  gap:8px;
  align-items:center;
  transition: background .14s ease;
}
.lang-option:hover,
.lang-option:focus { background: rgba(255,255,255,0.03); outline: none; }

/* --- Responsive --- */

/* Tablet: riduce padding e dimensioni generali */
@media (max-width: 900px) {
  .main-header {
    padding: 12px 18px;
  }

  .logo img {
    height: 64px;
  }

  .lang-btn {
    padding: 6px 10px;
    font-size: 14px;
    border-radius: 8px;
  }

  .lang-menu {
    min-width: 140px;
    right: 0;
  }
}

/* Mobile: mantiene dropdown a destra */
@media (max-width: 520px) {
  .main-header {
    flex-direction: row;          /* mantiene layout in linea */
    align-items: center;
    justify-content: space-between; /* logo sinistra, menu destra */
    padding: 10px 14px;
  }

  .header-left,
  .header-right {
    width: auto;
  }

  .lang-switcher {
    margin-left: auto; /* spinge a destra */
  }

  .lang-menu {
    right: 0;   /* ancora al bordo destro */
    left: auto;
    min-width: 150px;
  }
}



.logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1;
  color: white;
}

.hero-main {
  flex-grow: 1;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.hero-text {
  width: 58%;
  padding-right: 2rem;
}

h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 3.75rem;
  line-height: 1.15;
  margin-bottom: 2rem;
}

.hero-text ul {
  list-style: none;
  margin-bottom: 2.5rem;
}

.hero-text ul li {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.tagline span {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.2;
}

.hero-form-wrapper {
  width: 42%;
  display: flex;
  justify-content: flex-start;
  padding-left: 2rem;
}

.form-container {
  background: white;
  color: var(--color-text);
  padding: 2.5rem;
  border-radius: 8px;
  width: 100%;
  max-width: 420px;
  text-align: center;
}

.availability {
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 1.5rem;
}

.form-container form input {
  width: 100%;
  padding: 0.9rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  font-family: var(--font-body);
}

.form-row {
  display: flex;
  gap: 1rem;
}

.form-container form button {
  width: 100%;
  padding: 1rem;
  background-color: var(--color-primary);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s;
}

/* 3. Package Section */
.package-section {
  padding: 6rem 0;
  text-align: center;
}
.package-container {
  max-width: 820px;
}
.package-section h2 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-size: 3rem;
  line-height: 1.2;
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
}
.package-section h2::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--color-secondary);
}
.subtitle {
  font-size: 1.1rem;
  color: #666;
  margin: 2.5rem 0 3rem 0;
  line-height: 1.5;
}
.features {
  display: flex;
  text-align: left;
  gap: 3rem;
  margin-bottom: 3rem;
}
.features ul {
  list-style: none;
  width: 50%;
}
.features ul li {
  margin-bottom: 1rem;
  font-size: 1rem;
}
.price-box {
  background: var(--color-light-gray);
  padding: 1.5rem 2rem;
  border-radius: 8px;
  display: inline-block;
  margin-bottom: 2.5rem;
}
.price-box p {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
}
.cta-button {
  background: var(--color-primary );
  color: white;
  padding: 1rem 2.5rem;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 700;
  font-size: 1.1rem;
  display: inline-block;
}

/* 4. Program & FAQ Common Styles */
.program-section, .faq-section {
  padding: 6rem 0;
}
.program-section h2, .faq-section h2 {
  font-family: var(--font-heading);
  text-align: center;
  font-size: 3rem;
  margin-bottom: 4rem;
}
.program-section {
  background: var(--color-light-gray);
}
/* Sostituisci le vecchie regole per .timeline e .day con queste */

.table-responsive-wrapper {
  overflow-x: auto; /* Permette lo scroll orizzontale su schermi medi */
}

.program-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  background-color: white;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  border-radius: 8px;
  overflow: hidden; /* Per applicare il border-radius alla tabella */
}

.program-table th, .program-table td {
  padding: 1.5rem 1rem;
  text-align: left;
  vertical-align: top;
}

.program-table th {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-primary);
  text-align: center;
  border-bottom: 2px solid #e9ecef;
}

.program-table td {
  border-right: 1px solid #e9ecef;
  font-size: 0.9rem;
  line-height: 1.5;
}

.program-table td:last-child {
  border-right: none;
}

.program-table td p {
  margin-bottom: 0.75rem;
}

.program-table td p:last-child {
  margin-bottom: 0;
}


/* Stili per la responsività della tabella */
@media (max-width: 992px) {
  .program-table thead {
      display: none; /* Nasconde l'header della tabella */
  }
  .program-table, .program-table tbody, .program-table tr, .program-table td {
      display: block;
      width: 100%;
  }
  .program-table tr {
      margin-bottom: 1.5rem;
      border-radius: 8px;
      box-shadow: 0 4px 15px rgba(0,0,0,0.05);
      background: white;
  }
  .program-table td {
      text-align: left;
      border: none;
      border-bottom: 1px solid #e9ecef;
      position: relative;
      padding-left: 30%; /* Spazio per il label */
  }
  .program-table td:last-child {
      border-bottom: none;
  }
  .program-table td::before {
      content: attr(data-label); /* Usa l'attributo data-label come titolo */
      position: absolute;
      left: 0;
      width: 25%;
      padding-left: 1rem;
      font-family: var(--font-heading);
      font-weight: 800;
      color: var(--color-primary);
  }
}
.day h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}
.day p {
  line-height: 1.5;
  font-size: 0.95rem;
}
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}
.faq-item {
  background: var(--color-light-gray);
  padding: 1.5rem;
  border-radius: 8px;
}
.faq-item p {
  margin: 0;
  line-height: 1.5;
}

/* 5. Footer Section */
.main-footer {
  background-color: var(--color-primary);
  color: #fff;
  padding: 4rem 0 2rem 0;
}
.main-footer .logo {
  color: var(--color-secondary);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}
.footer-col h3 {
  font-family: var(--font-heading);
  color: var(--color-secondary);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}
.footer-col p {
  line-height: 1.6;
}
.footer-col ul {
  list-style: none;
}
.footer-col ul a {
  color: #fff;
  text-decoration: none;
  line-height: 1.8;
}
.copyright {
  text-align: center;
  border-top: 1px solid #444;
  padding-top: 2rem;
  color: #fff;
  font-size: 0.9rem;
}

/* 6. Responsive Adjustments */
@media (max-width: 1024px) {
  .hero-main {
      flex-direction: column;
      justify-content: center;
      text-align: center;
  }
  .hero-text, .hero-form-wrapper {
      width: 100%;
      max-width: 600px;
      padding: 0;
  }
  .hero-form-wrapper {
      justify-content: center;
      margin-top: 2rem;
  }
  .hero-section {
      min-height: 0;
      height: auto;
      padding-bottom: 4rem;
  }
  .faq-grid {
      grid-template-columns: 1fr;
  }
  .footer-grid {
      grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  .package-section h2, .program-section h2, .faq-section h2 { font-size: 2.2rem; }
  .features { flex-direction: column; gap: 1rem; }
  .features ul { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
}