@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=Source+Sans+3:wght@300;400;600;700&family=Merriweather:wght@300;400;700&display=swap');

/* ======================================================================
   MAURITANIA ADRAR 2026 - Design system (tema Sahara)
   Adattato dallo stile "Brasile Natura" con palette deserto/oceano.
   ====================================================================== */
:root {
  --sand: #f6efe1;          /* sfondo pagina */
  --sand-deep: #ece0c8;     /* box chiari */
  --dark: #241a12;          /* testo/scuro (bruno notte) */
  --ochre: #c56a2b;         /* accento primario (terracotta) */
  --ochre-dark: #a4551f;
  --gold: #d9a537;          /* dune / sole */
  --sky: #1f7a8c;           /* oceano / acqua (teal) */
  --sky-dark: #14606f;
  --oasis: #4e7a3f;         /* verde oasi */
  --oasis-dark: #3a5d30;
  --brown: #7a5230;         /* città carovaniere */
  --gray: #6b7280;
  --light-gray: #e5e7eb;
  --white: #ffffff;
  --red: #c0392b;
  --shadow-sm: 0 1px 3px rgba(60,40,20,.14);
  --shadow-md: 0 4px 14px rgba(60,40,20,.18);
  --shadow-lg: 0 12px 34px rgba(40,26,18,.26);
  --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
  color: var(--dark);
  background: var(--sand);
  line-height: 1.7;
}
img { max-width: 100%; }

/* ====== HERO ====== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: #fff; overflow: hidden;
  background: linear-gradient(135deg, #2a1a0e 0%, #7a3d16 35%, #c56a2b 65%, #d9a537 100%);
}
.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg, rgba(30,18,8,.78) 0%, rgba(122,61,22,.55) 40%, rgba(20,96,111,.5) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 860px; padding: 2rem; }
.hero .kicker {
  display: inline-block; letter-spacing: 3px; text-transform: uppercase;
  font-size: .8rem; font-weight: 700; color: var(--gold);
  margin-bottom: 1rem; background: rgba(0,0,0,.25); padding: .35rem .9rem; border-radius: 50px;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 900;
  margin-bottom: .5rem; text-shadow: 2px 4px 14px rgba(0,0,0,.5); letter-spacing: 1px;
}
.hero .subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem); font-weight: 300; opacity: .95; margin-bottom: 1.2rem;
}
.hero .dates {
  display: inline-block; background: var(--gold); color: var(--dark);
  padding: .55rem 1.6rem; border-radius: 50px; font-weight: 700; font-size: 1.1rem; margin-bottom: 1.5rem;
}
.hero .scroll-hint { display: block; margin-top: 1.5rem; animation: bounce 2s infinite; font-size: 2rem; opacity: .8; }
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(12px); } }

/* ====== COUNTDOWN ====== */
.countdown {
  display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin-top: .5rem;
}
.countdown .cd-box {
  background: rgba(0,0,0,.32); border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px; padding: .6rem 1rem; min-width: 78px;
}
.countdown .cd-num { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 900; line-height: 1; display: block; }
.countdown .cd-lab { font-size: .7rem; text-transform: uppercase; letter-spacing: 1px; opacity: .85; }

/* ====== NAV ====== */
.main-nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--dark); padding: .7rem 0; box-shadow: var(--shadow-md);
}
.main-nav .nav-inner {
  max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.5rem; flex-wrap: wrap; gap: .5rem;
}
.main-nav .logo {
  font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.25rem;
  color: var(--gold); text-decoration: none;
}
.main-nav .nav-links { display: flex; gap: .2rem; flex-wrap: wrap; list-style: none; }
.main-nav .nav-links a {
  color: #d8cbb8; text-decoration: none; padding: .4rem .75rem; border-radius: 6px;
  font-size: .88rem; font-weight: 600; transition: all .2s;
}
.main-nav .nav-links a:hover, .main-nav .nav-links a.active { color: #fff; background: rgba(255,255,255,.1); }
.main-nav .nav-links a.pill-red { background: var(--red); color: #fff; }
.main-nav .nav-links a.pill-red:hover { background: #a5271b; }
.main-nav .nav-links a.pill-green { background: var(--oasis); color: #fff; }
.main-nav .nav-links a.pill-green:hover { background: var(--oasis-dark); }

/* ====== CONTAINER ====== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

/* ====== SECTION TITLES ====== */
.section-title {
  font-family: 'Playfair Display', serif; font-size: 2.2rem; font-weight: 700;
  color: var(--dark); margin: 3rem 0 1.5rem; padding-bottom: .5rem; border-bottom: 3px solid var(--gold);
}
.section-sub { color: var(--gray); margin: -.8rem 0 1.5rem; font-size: 1.05rem; }

/* ====== DAY CARDS ====== */
.day-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  margin-bottom: 2rem; overflow: hidden; transition: box-shadow .3s;
}
.day-card:hover { box-shadow: var(--shadow-md); }
.day-header { display: flex; align-items: stretch; }
.day-number {
  min-width: 90px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 1rem; color: #fff; font-weight: 700; font-family: 'Playfair Display', serif; text-align: center;
}
.day-number .gg { font-size: 2rem; line-height: 1; }
.day-number .lab { font-size: .62rem; text-transform: uppercase; letter-spacing: 1px; opacity: .85; margin-top: .1rem; }
.day-number .data { font-size: .75rem; opacity: .95; margin-top: .25rem; }
.day-info { flex: 1; padding: 1.25rem 1.5rem; }
.day-info h3 { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--dark); margin-bottom: .5rem; }
.day-info .transport-badge {
  display: inline-block; background: var(--sand-deep); color: #7a5a34;
  font-size: .8rem; font-weight: 600; padding: .2rem .6rem; border-radius: 20px; margin: 0 .3rem .3rem 0;
}
.day-body { padding: 0 1.5rem 1.5rem; }
.day-body p { color: #4a3f34; margin-bottom: .75rem; }
.day-body .highlight {
  background: linear-gradient(120deg, rgba(217,165,55,.18) 0%, rgba(197,106,43,.12) 100%);
  border-left: 4px solid var(--ochre); padding: .75rem 1rem; border-radius: 0 8px 8px 0; margin: 1rem 0; font-style: italic;
}
.day-body ul { margin: .3rem 0 1rem 1.4rem; }
.day-body ul li { margin-bottom: .3rem; }

/* zone colors */
.zone-volo .day-number { background: #52616b; }
.zone-nouakchott .day-number { background: var(--sky); }
.zone-adrar .day-number { background: var(--ochre); }
.zone-chinguetti .day-number { background: var(--brown); }
.zone-richat .day-number { background: #b5532a; }
.zone-banc .day-number { background: var(--sky-dark); }
.zone-costa .day-number { background: #2f8fa3; }
.zone-oasi .day-number { background: var(--oasis); }

/* colored left ribbon per zone on the whole card */
.day-card.zone-nouakchott { border-left: 4px solid var(--sky); }
.day-card.zone-adrar { border-left: 4px solid var(--ochre); }
.day-card.zone-chinguetti { border-left: 4px solid var(--brown); }
.day-card.zone-richat { border-left: 4px solid #b5532a; }
.day-card.zone-banc { border-left: 4px solid var(--sky-dark); }
.day-card.zone-volo { border-left: 4px solid #52616b; }

/* ====== DESTINATION INFO ====== */
.dest-intro {
  background: var(--white); border-radius: var(--radius); padding: 2rem; margin-bottom: 2rem; box-shadow: var(--shadow-sm);
}
.dest-intro h2 { font-family: 'Playfair Display', serif; font-size: 2rem; margin-bottom: 1rem; color: var(--dark); }
.dest-intro p { margin-bottom: 1rem; color: #4a3f34; }
.badge-unesco {
  display: inline-block; background: #0d5c8c; color: #fff; font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; padding: .2rem .6rem; border-radius: 5px; margin-left: .4rem; vertical-align: middle;
}

.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.link-card {
  display: flex; align-items: center; gap: .75rem; background: var(--sand);
  padding: 1rem; border-radius: 8px; text-decoration: none; color: var(--dark);
  transition: all .2s; border: 1px solid transparent;
}
.link-card:hover { border-color: var(--ochre); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.link-card .icon { font-size: 1.5rem; }
.link-card .label { font-weight: 600; font-size: .95rem; }
.link-card .source { font-size: .75rem; color: var(--gray); }

/* ====== ACTION BUTTONS ====== */
.action-buttons { display: flex; gap: .75rem; flex-wrap: wrap; margin: 1.5rem 0; }
.btn {
  display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.3rem; border-radius: 8px;
  text-decoration: none; font-weight: 600; font-size: .95rem; transition: all .2s; border: none; cursor: pointer;
}
.btn-primary { background: var(--ochre); color: #fff; }
.btn-primary:hover { background: var(--ochre-dark); }
.btn-eventi { background: var(--gold); color: var(--dark); }
.btn-eventi:hover { background: #c4922a; }
.btn-info { background: var(--red); color: #fff; }
.btn-info:hover { background: #a5271b; }
.btn-foto { background: var(--oasis); color: #fff; }
.btn-foto:hover { background: var(--oasis-dark); }
.btn-geo { background: var(--sky-dark); color: #fff; }
.btn-geo:hover { background: #0e4a56; }
.btn-map { background: #3a5d30; color: #fff; }
.btn-outline { background: transparent; border: 2px solid var(--ochre); color: var(--ochre-dark); }
.btn-outline:hover { background: var(--ochre); color: #fff; }

/* ====== MAP ====== */
.map-embed { width: 100%; height: 460px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.map-embed.small { height: 300px; }

/* ====== WEATHER STRIP ====== */
.weather-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: .8rem; margin: 1rem 0 2rem;
}
.weather-card {
  background: var(--white); border-radius: 10px; box-shadow: var(--shadow-sm);
  padding: 1rem; text-align: center; border-top: 3px solid var(--sky);
}
.weather-card .wc-city { font-weight: 700; font-size: .95rem; }
.weather-card .wc-temp { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 900; color: var(--ochre-dark); }
.weather-card .wc-desc { font-size: .8rem; color: var(--gray); text-transform: capitalize; }
.weather-card .wc-extra { font-size: .72rem; color: var(--gray); margin-top: .2rem; }

/* ====== EVENTI PAGE ====== */
.eventi-section { background: var(--white); border-radius: var(--radius); padding: 2rem; margin-bottom: 2rem; box-shadow: var(--shadow-sm); }
.eventi-section h3 { font-family: 'Playfair Display', serif; font-size: 1.4rem; margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem; }
.event-item { border-left: 4px solid var(--gold); padding: .75rem 1rem; margin-bottom: 1rem; background: var(--sand); border-radius: 0 8px 8px 0; }
.event-item h4 { font-size: 1.05rem; margin-bottom: .25rem; }
.event-item .event-meta { font-size: .85rem; color: var(--gray); display: flex; gap: 1rem; flex-wrap: wrap; }
.event-item p { margin-top: .5rem; font-size: .95rem; }

/* ====== INFO UTILI ====== */
.info-card { background: var(--white); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.5rem; box-shadow: var(--shadow-sm); }
.info-card h3 { font-family: 'Playfair Display', serif; font-size: 1.3rem; margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem; }
.info-card h4.sub { margin: 1.1rem 0 .5rem; }
.info-card table { width: 100%; border-collapse: collapse; }
.info-card th, .info-card td { text-align: left; padding: .5rem .75rem; border-bottom: 1px solid var(--light-gray); font-size: .95rem; vertical-align: top; }
.info-card th { background: var(--sand); font-weight: 600; }
.table-wrap { overflow-x: auto; }
.danger-box { background: #fef2f2; border: 1px solid #fecaca; border-left: 4px solid var(--red); padding: 1rem 1.25rem; border-radius: 0 8px 8px 0; margin-bottom: 1rem; }
.danger-box h4 { color: var(--red); margin-bottom: .5rem; }
.warning-box { background: #fffbeb; border: 1px solid #fde68a; border-left: 4px solid var(--gold); padding: 1rem 1.25rem; border-radius: 0 8px 8px 0; margin-bottom: 1rem; }
.warning-box h4 { color: #92400e; margin-bottom: .5rem; }
.tip-box { background: #ecfdf5; border: 1px solid #a7f3d0; border-left: 4px solid var(--oasis); padding: 1rem 1.25rem; border-radius: 0 8px 8px 0; margin-bottom: 1rem; }
.tip-box h4 { color: var(--oasis-dark); margin-bottom: .5rem; }
.info-box { background: #eff6ff; border: 1px solid #bfdbfe; border-left: 4px solid var(--sky); padding: 1rem 1.25rem; border-radius: 0 8px 8px 0; margin-bottom: 1rem; }
.info-box h4 { color: var(--sky-dark); margin-bottom: .5rem; }
.danger-box ul, .warning-box ul, .tip-box ul, .info-box ul { margin-left: 1.4rem; margin-top: .4rem; }

/* status pills */
.pill { display: inline-block; font-size: .72rem; font-weight: 700; padding: .12rem .5rem; border-radius: 5px; text-transform: uppercase; letter-spacing: .5px; }
.pill.ok { background: #dcfce7; color: #166534; }
.pill.warn { background: #fef3c7; color: #92400e; }
.pill.bad { background: #fee2e2; color: #991b1b; }

/* ====== NEWS / GEOPOLITICA (LIVE) ====== */
.live-header { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .3rem; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 0 rgba(22,163,74,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%{ box-shadow: 0 0 0 0 rgba(22,163,74,.55);} 70%{ box-shadow: 0 0 0 10px rgba(22,163,74,0);} 100%{ box-shadow: 0 0 0 0 rgba(22,163,74,0);} }
.live-meta { font-size: .8rem; color: var(--gray); }
.news-list { display: grid; gap: .9rem; }
.news-item {
  background: var(--white); border: 1px solid var(--light-gray); border-left: 4px solid var(--sky);
  border-radius: 0 8px 8px 0; padding: .9rem 1.1rem; transition: box-shadow .2s;
}
.news-item:hover { box-shadow: var(--shadow-sm); }
.news-item.sec { border-left-color: var(--red); }
.news-item a { color: var(--dark); text-decoration: none; font-weight: 600; }
.news-item a:hover { color: var(--ochre-dark); }
.news-item .n-meta { font-size: .78rem; color: var(--gray); margin-top: .3rem; display: flex; gap: .8rem; flex-wrap: wrap; }
.news-item .n-src { font-weight: 600; color: var(--sky-dark); }
.news-skeleton { height: 64px; border-radius: 8px; background: linear-gradient(90deg,#eee 25%,#f5f5f5 37%,#eee 63%); background-size: 400% 100%; animation: sk 1.4s infinite; margin-bottom: .8rem; }
@keyframes sk { 0%{background-position:100% 0} 100%{background-position:0 0} }
.refresh-btn { background: var(--sky-dark); color:#fff; border:none; border-radius:8px; padding:.5rem 1rem; font-weight:600; cursor:pointer; font-size:.85rem; }
.refresh-btn:hover { background:#0e4a56; }

/* threat gauge */
.threat-scale { display: flex; gap: .35rem; margin: .6rem 0; }
.threat-scale .lvl { flex: 1; height: 10px; border-radius: 3px; background: var(--light-gray); }
.threat-scale .lvl.on-g { background: #16a34a; }
.threat-scale .lvl.on-y { background: var(--gold); }
.threat-scale .lvl.on-o { background: var(--ochre); }
.threat-scale .lvl.on-r { background: var(--red); }

/* ====== CONVERTER / PRATICA ====== */
.tool-card { background: var(--white); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.5rem; box-shadow: var(--shadow-sm); }
.tool-card h3 { font-family: 'Playfair Display', serif; font-size: 1.3rem; margin-bottom: 1rem; display:flex; align-items:center; gap:.5rem; }
.conv-row { display: flex; gap: 1rem; align-items: flex-end; flex-wrap: wrap; }
.conv-field { flex: 1; min-width: 160px; }
.conv-field label { display:block; font-size:.8rem; font-weight:600; color: var(--gray); margin-bottom:.3rem; }
.conv-field input, .conv-field select {
  width: 100%; padding: .7rem 1rem; border: 2px solid var(--light-gray); border-radius: 8px; font-size: 1.1rem; font-weight: 600;
}
.conv-field input:focus { outline: none; border-color: var(--ochre); }
.conv-eq { font-size: 1.6rem; color: var(--ochre); font-weight: 700; padding-bottom: .3rem; }
.conv-note { font-size: .8rem; color: var(--gray); margin-top: .6rem; }

/* phrasebook */
.phrase-table td { padding: .5rem .7rem; border-bottom: 1px solid var(--light-gray); }
.phrase-it { font-weight: 600; }
.phrase-fr { color: var(--sky-dark); }
.phrase-ar { color: var(--ochre-dark); font-weight: 600; direction: rtl; text-align: right; font-size: 1.05rem; }
.phrase-tr { color: var(--gray); font-style: italic; font-size: .9rem; }

/* checklist */
.checklist { list-style: none; }
.checklist li { padding: .4rem .2rem; border-bottom: 1px dashed var(--light-gray); display: flex; align-items: flex-start; gap: .6rem; }
.checklist input[type=checkbox] { width: 20px; height: 20px; margin-top: .15rem; accent-color: var(--oasis); flex-shrink: 0; cursor: pointer; }
.checklist label { cursor: pointer; }
.checklist li.done label { text-decoration: line-through; color: var(--gray); }
.check-progress { height: 12px; background: var(--light-gray); border-radius: 6px; overflow: hidden; margin: .5rem 0 1.2rem; }
.check-progress .bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--oasis), var(--gold)); transition: width .3s; }
.check-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 1.5rem; }
.check-cols h4 { margin-bottom: .4rem; color: var(--ochre-dark); }

/* clock / timezone */
.clock-row { display:flex; gap: 2rem; flex-wrap: wrap; }
.clock-box { text-align:center; }
.clock-box .ct { font-family:'Playfair Display',serif; font-size:2.4rem; font-weight:900; color: var(--dark); }
.clock-box .cl { font-size:.85rem; color: var(--gray); text-transform:uppercase; letter-spacing:1px; }

/* fact grid */
.fact-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(190px,1fr)); gap:1rem; }
.fact { background: var(--sand); border-radius:10px; padding:1rem; text-align:center; }
.fact .fv { font-family:'Playfair Display',serif; font-size:1.5rem; font-weight:900; color: var(--ochre-dark); }
.fact .fl { font-size:.8rem; color: var(--gray); }

/* ====== FOTO PAGE ====== */
.login-overlay { position: fixed; inset: 0; background: rgba(36,26,18,.92); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.login-box { background: var(--white); padding: 2.5rem; border-radius: var(--radius); text-align: center; max-width: 420px; width: 90%; box-shadow: var(--shadow-lg); }
.login-box h2 { font-family: 'Playfair Display', serif; margin-bottom: 1rem; }
.login-box input { width: 100%; padding: .8rem 1rem; border: 2px solid var(--light-gray); border-radius: 8px; font-size: 1rem; margin-bottom: 1rem; text-align: center; }
.login-box input:focus { outline: none; border-color: var(--ochre); }
.login-box .error-msg { color: var(--red); font-size: .9rem; display: none; margin-bottom: .5rem; }
.upload-area { background: var(--white); border: 3px dashed var(--light-gray); border-radius: var(--radius); padding: 3rem 2rem; text-align: center; margin: 2rem 0; transition: all .3s; cursor: pointer; }
.upload-area:hover, .upload-area.dragover { border-color: var(--ochre); background: #fdf6ec; }
.upload-area .upload-icon { font-size: 3rem; margin-bottom: 1rem; }
.upload-area p { color: var(--gray); }
.field-row { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; flex-wrap: wrap; }
.field-row label { font-weight: 600; min-width: 110px; }
.field-row input { flex: 1; min-width: 180px; padding: .6rem 1rem; border: 2px solid var(--light-gray); border-radius: 8px; font-size: 1rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; margin-top: 2rem; }
.gallery-item { background: var(--white); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s; }
.gallery-item:hover { transform: scale(1.02); }
.gallery-item img, .gallery-item video { width: 100%; height: 200px; object-fit: cover; display:block; background:#000; }
.gallery-item .photo-info { padding: .75rem; font-size: .85rem; }
.gallery-item .photo-author { font-weight: 600; color: var(--sky-dark); }
.progress-bar { height: 8px; background: var(--light-gray); border-radius: 4px; overflow: hidden; margin: 1rem 0; display:none; }
.progress-bar .pb-fill { height: 100%; width: 0; background: var(--oasis); transition: width .2s; }

/* ====== DEST BANNER / PHOTO GRID ====== */
.dest-banner { width: 100%; height: 360px; border-radius: var(--radius); overflow: hidden; margin-bottom: 2rem; box-shadow: var(--shadow-md); position: relative; }
.dest-banner img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.dest-banner:hover img { transform: scale(1.03); }
.dest-banner .banner-credit { position: absolute; bottom: .5rem; right: .75rem; background: rgba(0,0,0,.5); color: #ddd; font-size: .7rem; padding: .2rem .5rem; border-radius: 4px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.photo-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s; background: var(--white); }
.photo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.photo-card img { width: 100%; height: 200px; object-fit: cover; display: block; }
.photo-card .photo-caption { padding: .6rem .8rem; font-size: .85rem; color: var(--gray); font-style: italic; }

/* ====== PAGE HEADER (sub-pages) ====== */
.page-header-img { position: relative; min-height: 300px; display: flex; align-items: flex-end; overflow: hidden; }
.page-header-img .header-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-header-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(30,18,8,.82) 0%, rgba(30,18,8,.25) 55%, rgba(30,18,8,.4) 100%); }
.page-header-img .container { position: relative; z-index: 2; padding: 2.2rem 1.5rem; }
.page-header-img h1 { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem,4vw,2.6rem); color: #fff; text-shadow: 2px 3px 8px rgba(0,0,0,.55); }
.page-header-img p { color: #eee; }
.back-link { display: inline-block; margin-top: 1rem; color: var(--gold); text-decoration: none; font-weight: 600; }
.back-link:hover { text-decoration: underline; }

/* ====== TIMELINE ====== */
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 3px; background: var(--light-gray); }
.timeline-item { position: relative; margin-bottom: 1.4rem; }
.timeline-item::before { content: ''; position: absolute; left: -26px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--ochre); border: 3px solid var(--sand); }
.timeline-item .time { font-weight: 700; color: var(--ochre-dark); font-size: .9rem; }

/* ====== DRONE INFO ====== */
.drone-rules { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.drone-rule { padding: 1rem; border-radius: 8px; display: flex; align-items: flex-start; gap: .75rem; }
.drone-rule.allowed { background: #ecfdf5; }
.drone-rule.restricted { background: #fffbeb; }
.drone-rule.forbidden { background: #fef2f2; }
.drone-rule .drone-icon { font-size: 1.5rem; }

/* ====== FOOTER ====== */
footer { background: var(--dark); color: #b8a88f; text-align: center; padding: 2.2rem 1.5rem; margin-top: 3rem; font-size: .9rem; }
footer a { color: var(--gold); }
footer .disclaimer { font-size: .78rem; color: #8a7a63; max-width: 720px; margin: .8rem auto 0; }

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  .hero { min-height: 70vh; }
  .day-header { flex-direction: column; }
  .day-number { flex-direction: row; gap: .5rem; min-width: auto; padding: .75rem 1rem; justify-content: flex-start; }
  .link-grid { grid-template-columns: 1fr; }
  .action-buttons { flex-direction: column; }
  .btn { justify-content: center; }
  .main-nav .nav-inner { justify-content: center; }
  .main-nav .logo { display: none; }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .dest-banner { height: 220px; }
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .photo-card img { height: 140px; }
  .conv-eq { display: none; }
}
@media (max-width: 480px) { .photo-grid { grid-template-columns: 1fr; } }

/* ====== PRINT ====== */
@media print {
  .main-nav, .hero .scroll-hint, .action-buttons, .refresh-btn, .map-embed, .weather-strip { display: none; }
  .day-card, .info-card, .dest-intro { break-inside: avoid; box-shadow: none; }
  a::after { content: " (" attr(href) ")"; font-size: .75em; color: #666; }
  body { background: #fff; }
}

/* ======================================================================
   COMPATIBILITA' pagina FOTO (riusa il modulo di BrasileNatura).
   Alias delle variabili --lp-* sulla palette Sahara + classi ereditate.
   ====================================================================== */
:root {
  --lp-blue: var(--sky);
  --lp-dark: var(--dark);
  --lp-yellow: var(--gold);
  --lp-orange: var(--ochre);
  --lp-green: var(--oasis);
  --lp-sand: var(--sand);
  --lp-white: var(--white);
  --lp-gray: var(--gray);
  --lp-light-gray: var(--light-gray);
  --lp-red: var(--red);
  --lp-teal: var(--sky);
}
.name-input-group { display: flex; gap: 1rem; align-items: center; margin-bottom: 1.5rem; flex-wrap: wrap; }
.name-input-group label { font-weight: 600; }
.name-input-group input {
  flex: 1; min-width: 200px; padding: .6rem 1rem;
  border: 2px solid var(--light-gray); border-radius: 8px; font-size: 1rem;
}

/* ====== METEO 7 GIORNI (tabella) ====== */
.wx-tablewrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); background: var(--white); }
.wx-table { border-collapse: collapse; width: 100%; min-width: 660px; }
.wx-table th, .wx-table td { padding: .55rem .5rem; text-align: center; border-bottom: 1px solid var(--light-gray); }
.wx-table thead th { background: var(--sand); font-size: .82rem; color: var(--dark); font-weight: 700; text-transform: capitalize; }
.wx-table thead th .dd { display: block; font-weight: 400; color: var(--gray); font-size: .72rem; }
.wx-table .wx-corner { text-align: left; }
.wx-table .wx-loc { text-align: left; font-weight: 700; white-space: nowrap; }
.wx-table .wx-loc small { display: block; font-weight: 400; color: var(--gray); font-size: .74rem; text-transform: none; }
.wx-table td.today, .wx-table th.today { background: rgba(217,165,55,.16); }
.wx-table .ic { font-size: 1.4rem; line-height: 1.15; }
.wx-table .mx { font-weight: 700; }
.wx-table .mn { color: var(--gray); font-size: .82rem; }
.wx-loading { color: var(--gray); padding: 1rem; }
