/* =====================================================
   cheoresonoa.it — Main Stylesheet
   ===================================================== */
:root {
  --primary: #1a1a2e;
  --secondary: #16213e;
  --accent: #0f3460;
  --gold: #e94560;
  --text: #eaeaea;
  --text-muted: #9ba3af;
  --card-bg: rgba(255,255,255,0.05);
  --card-border: rgba(255,255,255,0.08);
  --radius: 16px;
  --shadow: 0 8px 32px rgba(0,0,0,0.3);
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

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

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

body {
  font-family: var(--font-main);
  background: linear-gradient(135deg, #0d0d1a 0%, #1a1a2e 50%, #0f1f3d 100%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

a { color: var(--gold); text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .8; text-decoration: underline; }

/* ---- HEADER ---- */
header {
  background: rgba(10,10,26,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
  position: sticky; top: 0; z-index: 100;
  padding: .75rem 1.5rem;
}
.header-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.logo { font-size: 1.4rem; font-weight: 800; color: var(--text); letter-spacing: -.5px; }
.logo span { color: var(--gold); }
.tagline { font-size: .8rem; color: var(--text-muted); }
nav { display: flex; gap: 1rem; flex-wrap: wrap; }
nav a { color: var(--text-muted); font-size: .85rem; font-weight: 500; transition: color .2s; }
nav a:hover { color: var(--text); text-decoration: none; }

/* ---- HERO ---- */
.hero {
  text-align: center;
  padding: 4rem 1.5rem 2rem;
  max-width: 900px; margin: 0 auto;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: .75rem;
  background: linear-gradient(135deg, #fff 40%, #e94560);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero .subtitle { font-size: 1.1rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 1.5rem; }

/* ---- CLOCK BOX ---- */
.clock-box {
  background: linear-gradient(135deg, #e9456022, #0f346022);
  border: 1px solid #e9456044;
  border-radius: var(--radius);
  padding: 2rem;
  margin: 1.5rem auto;
  max-width: 420px;
  text-align: center;
}
.clock-time {
  font-size: clamp(3rem, 10vw, 5rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -2px;
  line-height: 1;
  color: #fff;
  text-shadow: 0 0 40px rgba(233,69,96,.4);
}
.clock-date { font-size: 1rem; color: var(--text-muted); margin-top: .5rem; }
.clock-tz { font-size: .8rem; color: var(--gold); margin-top: .25rem; font-weight: 600; }
.italy-diff {
  display: inline-block;
  background: rgba(233,69,96,.15);
  border: 1px solid rgba(233,69,96,.3);
  border-radius: 20px;
  padding: .2rem .75rem;
  font-size: .8rem;
  color: #e94560;
  margin-top: .75rem;
  font-weight: 600;
}

/* ---- GRID INFO ---- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  max-width: 1200px; margin: 2rem auto;
  padding: 0 1.5rem;
}
.info-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: transform .2s, box-shadow .2s;
}
.info-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.info-card .card-icon { font-size: 1.75rem; margin-bottom: .5rem; }
.info-card .card-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: .25rem; }
.info-card .card-value { font-size: 1.2rem; font-weight: 700; color: #fff; }
.info-card .card-sub { font-size: .8rem; color: var(--text-muted); margin-top: .2rem; }

/* ---- WEATHER SECTION ---- */
.weather-section {
  max-width: 1200px; margin: 2rem auto;
  padding: 0 1.5rem;
}
.weather-card {
  background: linear-gradient(135deg, #0f346055, #1a1a2e);
  border: 1px solid #0f346099;
  border-radius: var(--radius);
  padding: 1.5rem;
}
.weather-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.weather-icon { font-size: 3rem; }
.weather-temp { font-size: 2.5rem; font-weight: 800; line-height: 1; }
.weather-desc { color: var(--text-muted); font-size: .9rem; }
.weather-details {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px,1fr)); gap: .75rem;
  margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--card-border);
}
.weather-detail { text-align: center; }
.weather-detail .wd-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }
.weather-detail .wd-value { font-size: 1rem; font-weight: 600; margin-top: .15rem; }

/* ---- SUN SECTION ---- */
.sun-bar {
  max-width: 1200px; margin: 2rem auto;
  padding: 0 1.5rem;
}
.sun-card {
  background: linear-gradient(135deg, #ff990022, #ffcc0022);
  border: 1px solid #ff990044;
  border-radius: var(--radius);
  padding: 1.5rem;
}
.sun-row { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.sun-item { display: flex; align-items: center; gap: .5rem; }
.sun-item .si-icon { font-size: 1.5rem; }
.sun-item .si-label { font-size: .75rem; color: var(--text-muted); }
.sun-item .si-val { font-size: 1.1rem; font-weight: 700; }
.sun-progress { flex: 1; min-width: 200px; margin-top: .5rem; }
.sun-progress-bar { height: 8px; background: rgba(255,255,255,.1); border-radius: 4px; overflow: hidden; margin-top: .5rem; }
.sun-progress-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg,#ff7700,#ffdd00); transition: width .5s; }

/* ---- CURIOSITA ---- */
.curiosita-section {
  max-width: 1200px; margin: 2rem auto;
  padding: 0 1.5rem;
}
.section-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem; }
.curiosita-box {
  background: linear-gradient(135deg, #9b59b622, #3498db22);
  border: 1px solid #9b59b644;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  font-size: 1rem;
  line-height: 1.7;
  color: #d0d0e8;
}

/* ---- CITY DETAILS ---- */
.details-section {
  max-width: 1200px; margin: 2rem auto;
  padding: 0 1.5rem;
}
.details-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: .75rem;
}
.detail-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1rem;
}
.detail-item .di-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }
.detail-item .di-value { font-size: .95rem; font-weight: 600; margin-top: .25rem; }

/* ---- RELATED CITIES ---- */
.related-section { max-width: 1200px; margin: 2rem auto; padding: 0 1.5rem; }
.cities-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap: .75rem; }
.city-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  transition: all .2s;
  color: var(--text);
  display: block;
}
.city-card:hover { background: rgba(233,69,96,.1); border-color: rgba(233,69,96,.3); transform: translateY(-2px); text-decoration: none; }
.city-card .cc-flag { font-size: 1.5rem; }
.city-card .cc-name { font-size: .9rem; font-weight: 600; margin-top: .25rem; }
.city-card .cc-country { font-size: .75rem; color: var(--text-muted); }

/* ---- HOMEPAGE CITIES ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.search-box { margin: 2rem auto; max-width: 500px; position: relative; }
.search-box input {
  width: 100%; padding: .875rem 1.25rem .875rem 3rem;
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: 50px; color: var(--text); font-size: 1rem;
  outline: none; transition: border-color .2s;
}
.search-box input:focus { border-color: var(--gold); }
.search-box input::placeholder { color: var(--text-muted); }
.search-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); font-size: 1.1rem; pointer-events: none; }

.continent-section { margin: 2rem 0; }
.continent-title { font-size: 1rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 1px solid var(--card-border); }
.cities-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: .75rem; }
.city-item {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: 12px; padding: .875rem 1rem;
  display: flex; flex-direction: column; gap: .15rem;
  transition: all .2s; color: var(--text);
}
.city-item:hover { background: rgba(233,69,96,.1); border-color: rgba(233,69,96,.3); transform: translateY(-2px); text-decoration: none; }
.city-item .ci-name { font-size: .95rem; font-weight: 700; }
.city-item .ci-country { font-size: .75rem; color: var(--text-muted); }
.city-item .ci-time { font-size: .85rem; color: var(--gold); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---- BREADCRUMB ---- */
.breadcrumb { padding: 1rem 1.5rem; max-width: 1200px; margin: 0 auto; font-size: .85rem; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb span { color: var(--text); }

/* ---- FAQ Section ---- */
.faq-section { max-width: 1200px; margin: 2rem auto; padding: 0 1.5rem; }
.faq-item { border-bottom: 1px solid var(--card-border); padding: 1rem 0; }
.faq-q { font-weight: 700; font-size: .95rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-a { font-size: .9rem; color: var(--text-muted); margin-top: .5rem; display: none; line-height: 1.6; }
.faq-item.open .faq-a { display: block; }

/* ---- FOOTER ---- */
footer {
  border-top: 1px solid var(--card-border);
  padding: 2rem 1.5rem;
  margin-top: 4rem;
  text-align: center;
  font-size: .85rem; color: var(--text-muted);
}
footer a { color: var(--text-muted); }
.footer-links { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; margin-bottom: .75rem; }

/* ---- AD PLACEHOLDER ---- */
.ad-banner {
  max-width: 728px; margin: 1.5rem auto;
  min-height: 90px;
  background: rgba(255,255,255,.03);
  border: 1px dashed var(--card-border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: .75rem;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 640px) {
  .header-inner { flex-direction: column; gap: .5rem; text-align: center; }
  .hero { padding: 2rem 1rem 1rem; }
  .sun-row { flex-direction: column; gap: 1rem; }
  nav { justify-content: center; }
}
