/* =============================================
   FERRANTE IN NAPOLI — DESIGN SYSTEM v2
   ============================================= */

:root {
  --primary:    #C8102E;
  --secondary:  #009246;
  --accent:     #F4C430;
  --dark:       #1A1A2E;
  --light:      #F7F5F2;
  --white:      #FFFFFF;
  --card-bg:    #FFFFFF;
  --text:       #1A1A2E;
  --text-soft:  #6B6B80;
  --border:     rgba(0,0,0,0.07);
  --shadow:     0 2px 16px rgba(0,0,0,0.08);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.14);
  --radius:     20px;
  --radius-sm:  12px;
  --nav-height: 64px;
  --font:       'Plus Jakarta Sans', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  height: 100%;
  overflow: hidden;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background: var(--dark);
  color: var(--text);
  padding-top: calc(var(--nav-height) + env(safe-area-inset-top));
}

/* =============================================
   PAGES SYSTEM
   ============================================= */

.page {
  display: none;
  height: 100%;
  max-height: calc(100vh - var(--nav-height) - env(safe-area-inset-top));
  overflow-y: scroll;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  animation: pageIn 0.3s ease;
}

#home {
  overflow: hidden;
}

.day-content {
  padding: 20px 16px 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-content {
  background: var(--light);
  padding: 16px 16px 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.phrases-content {
  background: var(--light);
  padding: 16px 16px 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-container {
  background: var(--light);
  min-height: calc(100vh - var(--nav-height));
  padding: 40px 24px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page.active {
  display: block;
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =============================================
   HERO
   ============================================= */

.hero-container {
  position: relative;
  height: calc(100vh - var(--nav-height) - env(safe-area-inset-top));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('okladka_mobile.jpg');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity 0.5s ease;
}

@media (min-width: 768px) {
  .hero-bg {
    background-image: url('okladka_desktop.jpg');
    background-position: center;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,26,46,0.55);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 28px;
  width: 100%;
  text-align: center;
  color: #ffffff;
}

.countdown-widget {
  margin-bottom: 24px;
}

.countdown-label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  font-weight: 600;
  margin-bottom: 10px;
}

.countdown-numbers {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: flex-end;
}

.countdown-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.countdown-value {
  font-size: 40px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -2px;
  line-height: 1;
  min-width: 56px;
  text-align: center;
}

.countdown-unit {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  font-weight: 600;
}

.countdown-sep {
  font-size: 32px;
  font-weight: 300;
  color: rgba(255,255,255,0.3);
  line-height: 1;
  margin-bottom: 14px;
}

.countdown-enroute {
  text-align: center;
}

.countdown-enroute-label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  font-weight: 600;
  margin-bottom: 8px;
}

.countdown-enroute-main {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.countdown-enroute-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  font-weight: 400;
}

.countdown-arrivederci {
  text-align: center;
}

.countdown-arrivederci-main {
  font-size: 26px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.countdown-arrivederci-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  font-weight: 400;
  line-height: 1.6;
}


  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(244,196,48,0.15);
  border: 1px solid rgba(244,196,48,0.4);
  color: var(--accent);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(40px, 10vw, 60px);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 12px;
}

.hero-title em {
  font-style: italic;
  font-weight: 300;
  color: rgba(255,255,255,0.75);
}

.hero-subtitle {
  font-size: 15px;
  color: rgba(255,255,255,0.9);
  font-weight: 400;
  margin-bottom: 4px;
  letter-spacing: 0.3px;
}

.hero-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.5px;
}

.hero-widgets {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 3;
}

.widget {
  background: rgba(26,26,46,0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  text-align: center;
  color: #fff;
  min-width: 80px;
}

.widget-icon {
  font-size: 20px;
  margin-bottom: 4px;
}

.weather-widget #weatherTemp {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.5px;
}

.weather-widget #weatherDesc {
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  margin-top: 3px;
  font-weight: 500;
}

/* =============================================
   DAY PAGES
   ============================================= */

.day-page {
  background: var(--light);
}

.day-header {
  position: relative;
  padding: 40px 24px 28px;
  overflow: hidden;
  min-height: 240px;
  display: flex;
  align-items: flex-end;
}

.day-header-bg {
  position: absolute;
  inset: 0;
}

.day-header-content {
  position: relative;
  z-index: 2;
  color: #fff;
  width: 100%;
}

.day-number {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
  font-weight: 600;
}

.day-title {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.day-subtitle {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
  font-weight: 400;
}

.day-weather {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 13px;
  color: #fff;
  margin-bottom: 18px;
  font-weight: 500;
}

.day-quote {
  font-style: italic;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(255,255,255,0.7);
  border-left: 2px solid var(--accent);
  padding-left: 14px;
  margin: 0;
}


/* =============================================
   PLACE CARDS
   ============================================= */

.place-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.15s;
}

.place-card:active {
  transform: scale(0.99);
}

.place-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.place-icon {
  font-size: 26px;
  line-height: 1;
  flex-shrink: 0;
}

.place-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  letter-spacing: -0.2px;
}

.place-header h3 small {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-soft);
}

.place-time {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  margin-top: 3px;
  letter-spacing: 0.3px;
}

.place-desc {
  font-size: 14px;
  line-height: 1.7;
  color: #444;
  margin-bottom: 16px;
  font-weight: 400;
}

.place-tips {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.tip {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.5;
  padding: 8px 12px;
  background: var(--light);
  border-radius: var(--radius-sm);
  font-weight: 400;
}

.ticket-info {
  margin-bottom: 14px;
}

.ticket-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.ticket-status.bought {
  background: rgba(0,146,70,0.08);
  color: var(--secondary);
}

.ticket-status.missing {
  background: rgba(200,16,46,0.08);
  color: var(--primary);
}

.maps-btn-wrap {
  display: flex;
}

.btn-maps {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--light);
  color: var(--text);
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
  min-height: 44px;
  border: 1px solid var(--border);
}

.btn-maps:active {
  background: #ede9e4;
}

.btn-maps i {
  color: var(--primary);
}

/* =============================================
   FADE-IN
   ============================================= */

.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

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

/* =============================================
   INFO PAGES
   ============================================= */

.info-header {
  background: var(--dark);
  padding: 44px 24px 28px;
  text-align: center;
  color: #fff;
}

.info-header h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.info-header p {
  color: rgba(255,255,255,0.45);
  font-size: 13px;
  font-weight: 400;
}


.info-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.info-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  letter-spacing: -0.2px;
}

.flight-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 16px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.flight-table th {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 9px 10px;
  text-align: left;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
}

.flight-table td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-weight: 500;
}

.flight-table tr:last-child td {
  border-bottom: none;
}

.flight-table tr:nth-child(even) td {
  background: var(--light);
}

.flight-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--light);
  color: var(--text);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border);
  min-height: 44px;
  transition: background 0.15s;
}

.btn-secondary:active {
  background: #ede9e4;
}

.hotel-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hotel-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
}

.hotel-addr {
  font-size: 13px;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 400;
}

.hotel-addr i { color: var(--primary); }

.hotel-dates {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: var(--text-soft);
  font-weight: 400;
}

.hotel-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.btn-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--secondary);
  color: #fff;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  min-height: 52px;
  letter-spacing: -0.2px;
  transition: opacity 0.15s;
}

.btn-phone:active { opacity: 0.85; }

.hotel-note {
  font-size: 13px;
  color: var(--text-soft);
  font-style: italic;
  padding: 12px 14px;
  background: var(--light);
  border-radius: var(--radius-sm);
  display: flex;
  gap: 8px;
  align-items: flex-start;
  line-height: 1.55;
  font-weight: 400;
}

.transfer-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: #444;
  line-height: 1.6;
  font-weight: 400;
}

/* =============================================
   ROZMÓWKI
   ============================================= */


.phrase-category {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.phrase-cat-header {
  background: var(--dark);
  color: rgba(255,255,255,0.85);
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.1px;
}

.phrase-list {
  display: flex;
  flex-direction: column;
}

.phrase-item {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.12s;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.phrase-item:last-child { border-bottom: none; }
.phrase-item:active { background: var(--light); }

.phrase-pl {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-soft);
}

.phrase-it {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.2px;
}

.phrase-pron {
  font-size: 12px;
  color: #aaa;
  font-style: italic;
  font-weight: 300;
}

.phrase-speak {
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
}

/* =============================================
   O MNIE
   ============================================= */


.about-photo-wrap {
  width: 210px;
  height: 210px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--primary);
  box-shadow: 0 0 0 6px rgba(200,16,46,0.08), var(--shadow-lg);
  margin-bottom: 20px;
  flex-shrink: 0;
}

.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.about-name {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}

.about-subtitle {
  font-size: 12px;
  color: var(--text-soft);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 28px;
  font-weight: 500;
}

.about-quote-big {
  font-style: italic;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--primary);
  border-top: 1px solid rgba(200,16,46,0.15);
  border-bottom: 1px solid rgba(200,16,46,0.15);
  padding: 20px 0;
  margin-bottom: 28px;
  max-width: 480px;
}

.about-bio {
  max-width: 520px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}

.about-bio p {
  font-size: 15px;
  line-height: 1.7;
  color: #444;
  font-weight: 400;
}

.about-bio em {
  font-style: italic;
  color: var(--primary);
}

.about-sign {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 28px;
  letter-spacing: -0.2px;
}

/* =============================================
   BOTTOM NAVIGATION
   ============================================= */

.bottom-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: calc(var(--nav-height) + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  background: var(--dark);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  border-top: none;
  display: flex;
  align-items: center;
  z-index: 1000;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.bottom-nav::-webkit-scrollbar { display: none; }

.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 62px;
  flex: 1;
  height: var(--nav-height);
  background: none;
  border: none;
  color: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: color 0.2s;
  padding: 0 4px;
  font-family: var(--font);
}

.nav-btn i { font-size: 17px; }

.nav-btn span {
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
  letter-spacing: 0.2px;
}

.nav-btn.active { color: var(--accent); }

/* =============================================
   FOOTER & SCROLLBAR & UTILITY
   ============================================= */

.site-footer { display: none; }

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(200,16,46,0.2); border-radius: 2px; }

a { color: inherit; }
strong { font-weight: 700; }
