/* 
 * 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; /* Ridotta per alzare il contenuto */
  display: flex;
  align-items: flex-start; /* Sposta il contenuto in alto */
  justify-content: center; /* Centrato orizzontalmente */
  text-align: center; /* Testo centrato */
  padding: 120px clamp(1rem,4vw,3rem) 100px; /* Padding top fisso per alzarlo */
  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;
  color: var(--white);
}
.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: 0 auto 1.5rem; /* Centrato */
}
.porto-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  color: var(--white) !important;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}
.porto-hero h1 em { color: var(--aqua); font-style: normal; }
.porto-hero .hero-sub {
  color: #ffffff !important; /* Bianco puro forzato */
  font-size: 1.15rem;
  max-width: 750px;
  margin: 0 auto 2.5rem; /* Centrato */
  text-shadow: 0 2px 6px rgba(0,0,0,0.4); /* Ombra più forte per leggibilità */
}
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 2.5rem;
  justify-content: center; /* Centrate le icone */
}
.hero-stat {
  display: flex; flex-direction: column;
}
.hero-stat strong { color: var(--white) !important; font-size: 1.3rem; font-weight: 700; }
.hero-stat span { color: rgba(255,255,255,.7) !important; font-size: .8rem; text-transform: uppercase; letter-spacing: 0.05em; }

/* ── 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; }

/* ── RELATED BLOG POSTS ── */
.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.blog-card-mini {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid #edf2f7;
    display: flex;
    flex-direction: column;
}
.blog-card-mini:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.card-img-link {
    width: 100%;
    height: 180px;
    overflow: hidden;
    display: block;
}
.blog-card-mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.blog-card-mini:hover img {
    transform: scale(1.05);
}
.card-content {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.card-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}
.card-content h3 a {
    color: var(--navy);
}
.card-content h3 a:hover {
    color: var(--ocean);
}
.card-content p {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 1rem;
    flex-grow: 1;
}
.read-more {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ocean);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.placeholder-img {
    width: 100%;
    height: 100%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #cbd5e1;
}
.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; }


/* =========================================
   ARCHIVE PORTI STYLES
   ========================================= */
.porto-archive-hero {
  position: relative;
  background: linear-gradient(135deg, var(--ocean) 0%, #1e3c72 100%);
  color: white;
  padding: 6rem 0;
  text-align: center;
  overflow: hidden;
}
.porto-archive-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: white;
}
.porto-archive-hero p {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 3rem;
}
.port-search-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  gap: 1rem;
}
.search-input-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}
.search-icon {
  position: absolute;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  z-index: 2;
}
.search-field {
  width: 100%;
  padding: 1.2rem 8rem 1.2rem 3.5rem;
  border-radius: 50px;
  border: none;
  font-size: 1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  outline: none;
  transition: all 0.3s ease;
}
.search-field:focus {
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  transform: translateY(-2px);
}
.search-submit-btn {
  position: absolute;
  right: 0.5rem;
  background: var(--navy);
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 3;
}
.search-submit-btn:hover {
  background: var(--teal);
  transform: scale(1.05);
}

.search-results-info {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--warm);
}
.search-results-info h2 {
    font-size: 1.8rem;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

/* Grid */
.port-archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}
.port-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.port-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.port-card-img {
  position: relative;
  height: 220px;
  display: block;
  overflow: hidden;
}
.port-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.port-card:hover .port-card-img img {
  transform: scale(1.05);
}
.placeholder-img {
  width: 100%;
  height: 100%;
  background: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}
.port-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem 1.5rem 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}
.port-location {
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
}
.port-card-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.port-card-content h2 {
  font-size: 1.5rem;
  margin: 0 0 1rem;
}
.port-card-content h2 a {
  color: var(--text-dark);
  text-decoration: none;
}
.port-stats {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 500;
}
.port-excerpt {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  flex: 1;
}
.port-btn {
  display: inline-block;
  text-align: center;
  width: 100%;
  padding: 0.8rem;
  background: rgba(0, 119, 204, 0.1);
  color: var(--ocean);
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}
.port-btn:hover {
  background: var(--ocean);
  color: white;
}

/* Pagination */
.port-pagination {
  margin-top: 4rem;
  text-align: center;
}
.port-pagination .nav-links {
  display: inline-flex;
  gap: 0.5rem;
}
.port-pagination .page-numbers {
  padding: 0.8rem 1.2rem;
  border-radius: 10px;
  background: white;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}
.port-pagination .page-numbers.current,
.port-pagination .page-numbers:hover {
  background: var(--ocean);
  color: white;
}

@media (max-width: 768px) {
  .porto-archive-hero h1 { font-size: 2.2rem; }
  .port-search-form { flex-direction: column; }
  .search-submit { padding: 1.2rem; }
}
