/* 
 * Styles for Single Port Pages
 * Extracted from cruvai-porto-template (1).html
 */

:root {
  --navy:    #0d2137;
  --ocean:   #0e4d6e;
  --teal:    #0891b2;
  --aqua:    #22d3ee;
  --sand:    #f5f0e8;
  --warm:    #e8ddd0;
  --text:    #1a2535;
  --muted:   #64748b;
  --white:   #ffffff;
  --gold:    #f59e0b;
  --green:   #10b981;
  --radius:  12px;
  --shadow:  0 4px 24px rgba(13,33,55,.10);
}

/* ── BREADCRUMB ── */
.porto-breadcrumb {
  background: var(--sand);
  padding: .75rem clamp(1rem,4vw,3rem);
  font-size: .82rem;
  color: var(--muted);
}
.porto-breadcrumb a { color: var(--teal); text-decoration: none; }
.porto-breadcrumb a:hover { text-decoration: underline; }
.porto-breadcrumb span { margin: 0 .4rem; }

/* ── HERO ── */
.porto-hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  padding: clamp(2rem,6vw,5rem) clamp(1rem,4vw,3rem) 3rem;
  overflow: hidden;
  background:
    linear-gradient(to top, rgba(13,33,55,.92) 0%, rgba(13,33,55,.4) 60%, transparent 100%),
    linear-gradient(135deg, var(--ocean) 0%, var(--navy) 100%);
  background-size: cover;
  background-position: center;
}
.hero-bg-pattern {
  position: absolute; inset: 0;
  opacity: .08;
  background-image: radial-gradient(circle at 20% 50%, var(--aqua) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, var(--teal) 0%, transparent 40%);
}
.hero-waves {
  position: absolute; bottom: 0; left: 0; right: 0; height: 80px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80'%3E%3Cpath fill='%23ffffff' d='M0,40 C360,80 1080,0 1440,40 L1440,80 L0,80 Z'/%3E%3C/svg%3E") bottom/cover no-repeat;
}
.hero-content { position: relative; z-index: 1; max-width: 820px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  color: var(--aqua);
  font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: .35rem .85rem; border-radius: 50px;
  border: 1px solid rgba(34,211,238,.25);
  margin-bottom: 1rem;
}
.porto-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.porto-hero h1 em { color: var(--aqua); font-style: normal; }
.hero-sub {
  color: rgba(255,255,255,.75);
  font-size: 1.05rem;
  max-width: 580px;
  margin-bottom: 1.75rem;
}
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 1.5rem;
}
.hero-stat {
  display: flex; flex-direction: column;
}
.hero-stat strong { color: var(--white); font-size: 1.1rem; font-weight: 600; }
.hero-stat span { color: rgba(255,255,255,.55); font-size: .78rem; }

/* ── LAYOUT ── */
.porto-container { max-width: 1100px; margin: 0 auto; padding: 0 clamp(1rem,4vw,3rem); }
.porto-page-body { display: grid; grid-template-columns: 1fr 320px; gap: 3rem; padding: 3rem 0 4rem; align-items: start; }
@media (max-width: 900px) { .porto-page-body { grid-template-columns: 1fr; } }
.porto-main { min-width: 0; }
.porto-sidebar { position: sticky; top: 80px; }

/* ── SECTIONS ── */
.porto-section { margin-bottom: 3rem; }
.section-label {
  font-size: .72rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--teal);
  display: flex; align-items: center; gap: .5rem;
  margin-bottom: .6rem;
}
.section-label::after {
  content: ''; flex: 1; height: 1px; background: var(--warm);
}
.porto-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.25rem;
  line-height: 1.25;
}
.porto-content h3 { font-size: 1.1rem; font-weight: 600; color: var(--navy); margin-bottom: .6rem; }
.porto-content p { color: #374151; margin-bottom: 1rem; }

/* ── QUICK INFO BOX ── */
.quick-info {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}
.qi-item { display: flex; flex-direction: column; gap: .2rem; }
.qi-icon { font-size: 1.1rem; }
.qi-label { font-size: .72rem; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .08em; }
.qi-value { font-size: .95rem; font-weight: 600; color: var(--white); }

/* ── ATTRAZIONI TABLE ── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 2rem; }
.porto-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.porto-table thead { background: var(--navy); color: var(--white); }
.porto-table thead th { padding: .85rem 1rem; text-align: left; font-weight: 600; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.porto-table tbody tr { border-bottom: 1px solid var(--warm); transition: background .15s; }
.porto-table tbody tr:hover { background: var(--sand); }
.porto-table tbody tr:last-child { border-bottom: none; }
.porto-table td { padding: .85rem 1rem; vertical-align: top; }
.porto-table td:first-child { font-weight: 500; }
.badge-free { background: #dcfce7; color: #166534; font-size: .72rem; font-weight: 600; padding: .2rem .5rem; border-radius: 50px; }
.badge-paid { background: #fef9c3; color: #854d0e; font-size: .72rem; font-weight: 600; padding: .2rem .5rem; border-radius: 50px; }
.badge-book { background: #fee2e2; color: #991b1b; font-size: .72rem; font-weight: 600; padding: .2rem .5rem; border-radius: 50px; white-space: nowrap; }

/* ── ITINERARI TABS ── */
.porto-tabs { display: flex; gap: .5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.porto-tab {
  padding: .5rem 1.25rem; border-radius: 50px; border: 2px solid var(--warm);
  background: transparent; cursor: pointer; font-size: .875rem; font-weight: 600;
  color: var(--muted); transition: all .2s; font-family: 'DM Sans', sans-serif;
}
.porto-tab.active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.porto-tab-panel { display: none; }
.porto-tab-panel.active { display: block; }

.itinerary-timeline { position: relative; padding-left: 2rem; }
.itinerary-timeline::before {
  content: ''; position: absolute; left: .55rem; top: .5rem; bottom: .5rem;
  width: 2px; background: linear-gradient(to bottom, var(--teal), var(--aqua));
}
.it-step { position: relative; margin-bottom: 1.25rem; }
.it-step::before {
  content: ''; position: absolute; left: -1.57rem; top: .3rem;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--teal); border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--teal);
}
.it-time { font-size: .75rem; font-weight: 700; color: var(--teal); text-transform: uppercase; letter-spacing: .06em; }
.it-title { font-weight: 600; color: var(--navy); margin-bottom: .15rem; }
.it-desc { font-size: .875rem; color: var(--muted); }

/* ── TRANSPORT CARDS ── */
.transport-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.transport-card {
  background: var(--sand);
  border-radius: var(--radius);
  padding: 1.25rem;
  border: 1px solid var(--warm);
  transition: box-shadow .2s;
}
.transport-card:hover { box-shadow: var(--shadow); }
.transport-card .t-icon { font-size: 1.5rem; margin-bottom: .5rem; }
.transport-card .t-name { font-weight: 700; font-size: .9rem; color: var(--navy); }
.transport-card .t-time { font-size: .8rem; color: var(--muted); margin: .15rem 0; }
.transport-card .t-price { font-size: .875rem; font-weight: 600; color: var(--teal); }

/* ── CTA INLINE ── */
.porto-cta-inline {
  background: linear-gradient(135deg, var(--navy) 0%, var(--ocean) 100%);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin: 2.5rem 0;
}
.porto-cta-inline .cta-icon { font-size: 2.5rem; flex-shrink: 0; }
.porto-cta-inline h3 { color: var(--white); font-size: 1.1rem; margin-bottom: .35rem; }
.porto-cta-inline p { color: rgba(255,255,255,.65); font-size: .875rem; margin: 0; }
.porto-cta-inline a {
  background: var(--aqua);
  color: var(--navy);
  padding: .65rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: .875rem;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform .15s, box-shadow .15s;
}
.porto-cta-inline a:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(34,211,238,.35); }
@media (max-width: 600px) { .porto-cta-inline { flex-direction: column; text-align: center; } }

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: .75rem; }
.faq-item {
  border: 1px solid var(--warm);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-q {
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: var(--white);
  transition: background .15s;
  list-style: none;
}
.faq-q::-webkit-details-marker { display: none; }
details[open] .faq-q { background: var(--sand); color: var(--teal); }
.faq-q::after { content: '+'; font-size: 1.2rem; font-weight: 300; color: var(--teal); flex-shrink: 0; }
details[open] .faq-q::after { content: '−'; }
.faq-a { padding: 0 1.25rem 1rem; font-size: .9rem; color: #4b5563; }

/* ── SIDEBAR ── */
.sidebar-card {
  background: var(--sand);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--warm);
}
.sidebar-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 1rem;
}
.sidebar-cta-card {
  background: linear-gradient(135deg, var(--navy), var(--ocean));
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}
.sidebar-cta-card .sc-emoji { font-size: 2rem; margin-bottom: .75rem; }
.sidebar-cta-card h4 { font-family: 'Playfair Display', serif; font-size: 1.05rem; color: var(--white); margin-bottom: .5rem; }
.sidebar-cta-card p { font-size: .825rem; color: rgba(255,255,255,.65); margin-bottom: 1.25rem; }
.sidebar-cta-card a {
  display: block; background: var(--aqua); color: var(--navy);
  padding: .7rem; border-radius: 50px; font-weight: 700;
  font-size: .875rem; text-decoration: none; transition: transform .15s;
}
.sidebar-cta-card a:hover { transform: scale(1.03); }

.sidebar-links { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.sidebar-links li a {
  display: flex; align-items: center; gap: .5rem;
  color: var(--ocean); font-size: .875rem; font-weight: 500;
  text-decoration: none; padding: .4rem 0;
  border-bottom: 1px solid var(--warm);
  transition: color .15s;
}
.sidebar-links li a:hover { color: var(--teal); }
.sidebar-links li:last-child a { border-bottom: none; }

.weather-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.w-month { text-align: center; }
.w-month span { display: block; font-size: .7rem; color: var(--muted); margin-bottom: .2rem; }
.w-month strong { font-size: .875rem; color: var(--navy); }
.w-bar { height: 4px; border-radius: 2px; margin-top: .3rem; }
.hot { background: #f59e0b; }
.warm { background: #34d399; }
.mild { background: #60a5fa; }
.cool { background: #94a3b8; }
