/* The Greek Trip: one stylesheet for every page. Fonts are self-hosted (no third-party requests). */
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-500.woff") format("woff"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-800.woff") format("woff"); font-weight: 700 900; font-display: swap; }

:root {
  --blue: #0D5EAF;
  --blue-dark: #0A4A8A;
  --sun: #F4A62A;
  --sky: #FFF2D6;
  --ink: #1B2A4A;
  --night: #0B1F3A;
  --muted: #4A5568;
  --soft: #5A6478;
  --line: #E6E1D6;
  --sans: "Inter", "Segoe UI", system-ui, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #FFFFFF; color: var(--ink); font-family: var(--sans); line-height: 1.5; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); text-decoration: underline; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }

.wrap { max-width: 1160px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
@media (max-width: 600px) { .wrap { padding-left: 16px; padding-right: 16px; } }

.stripe { height: 6px; display: flex; }
.stripe span:first-child { flex: 3; background: var(--blue); }
.stripe span:last-child { flex: 1; background: var(--sun); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: #FFFFFF; }
.site-header .wrap { padding-top: 16px; padding-bottom: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 36px; }
.site-header .logo img { height: 46px; width: auto; display: block; }
.site-nav { display: flex; flex-wrap: wrap; gap: 6px 26px; flex: 1 1 auto; font-size: 16px; font-weight: 600; order: 2; }
.site-nav a { color: var(--ink); }
.lang { order: 3; display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; border: 1px solid var(--line); border-radius: 22px; padding: 9px 15px; color: var(--ink); white-space: nowrap; }
.lang:hover { border-color: var(--blue); text-decoration: none; }
.flag { width: 21px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(27, 42, 74, 0.15); flex: none; }
.lang-foot { display: inline-flex; align-items: center; gap: 8px; }
.menu-toggle { display: none; order: 4; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: #FFFFFF; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle .icon-close, .menu-open .menu-toggle .icon-open { display: none; }
.menu-open .menu-toggle .icon-close { display: block; }
/* Phones and small tablets: logo, language and menu button on one row; the menu opens below as a list. */
@media (max-width: 760px) {
  .site-header .wrap { padding-top: 12px; padding-bottom: 12px; gap: 10px; flex-wrap: wrap; }
  .site-header .logo { margin-right: auto; }
  .site-header .logo img { height: 38px; }
  .lang { order: 2; padding: 0 14px; height: 44px; font-size: 15px; }
  .menu-js .menu-toggle { display: inline-flex; order: 3; }
  .site-nav { order: 4; flex: 1 1 100%; flex-direction: column; gap: 0; font-size: 17px; }
  .site-nav a { padding: 13px 4px; border-top: 1px solid var(--line); }
  .menu-js .site-nav { display: none; }
  .menu-js.menu-open .site-nav { display: flex; }
}
@media (max-width: 360px) {
  .site-header .logo img { height: 32px; }
  .lang { padding: 0 10px; gap: 6px; }
}

/* Shared pieces */
.kicker { font-size: 13px; font-weight: 700; letter-spacing: 1.5px; color: var(--blue); text-transform: uppercase; }
.serif { font-family: var(--serif); }
.byline { font-size: 14px; color: var(--soft); }
.btn { display: inline-block; background: var(--blue); color: #FFFFFF; font-weight: 600; font-size: 16px; padding: 13px 22px; border-radius: 10px; }
.btn:hover { color: #FFFFFF; background: var(--blue-dark); text-decoration: none; }
.page { padding-top: 40px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 56px; }
.page-title { margin: 0; font-size: clamp(30px, 4vw, 42px); font-weight: 800; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 3px solid var(--ink); padding-bottom: 10px; }
.section-head h2 { margin: 0; font-size: 24px; font-weight: 800; }
.section-head a { font-size: 15px; font-weight: 600; }
.empty { color: var(--muted); margin: 0; }

/* Home: latest article */
.mappa-grecia { display: block; width: 100%; max-width: 760px; height: auto; margin: 0 auto; overflow: visible; }
.mappa-grecia .ombra { fill: #0B1F3A; opacity: .28; }
.mappa-sfondo .disco { fill: var(--sky); }
.mappa-sfondo .righe { fill: #D3E5F7; }
.mappa-sfondo .anello { fill: none; stroke: var(--blue); stroke-width: 5; }
.mappa-sfondo .sole { fill: var(--sun); }
.mappa-grecia .lato { fill: #072F5C; }
.mappa-grecia .lato2 { fill: #0A3F78; }
.mappa-grecia .sopra { fill: url(#m-blu); stroke: #9CC8F2; stroke-width: .6; stroke-opacity: .7; }
.mappa-zona { cursor: pointer; outline: none; }
.mappa-grecia .presa { fill: transparent; stroke: transparent; stroke-width: 30; stroke-linejoin: round; pointer-events: all; }
.mappa-grecia .presa-terra { fill: transparent; pointer-events: all; }
.mappa-zona > g { transition: transform .18s ease, filter .18s ease; pointer-events: none; }
.mappa-zona:hover > g, .mappa-zona:focus-visible > g { transform: translateY(-7px); filter: drop-shadow(0 7px 4px rgba(11, 31, 58, .35)); }
.mappa-zona:hover .sopra, .mappa-zona:focus-visible .sopra { fill: url(#m-sole); stroke: #FFE7B0; }
.mappa-zona:hover .lato, .mappa-zona:focus-visible .lato { fill: #8A520A; }
.mappa-zona:hover .lato2, .mappa-zona:focus-visible .lato2 { fill: #B86E0E; }
.mappa-grecia .etichetta { opacity: 0; pointer-events: none; transition: opacity .15s ease; }
.mappa-grecia .etichetta rect { fill: #fff; stroke: #F4A62A; stroke-width: 2.5; filter: drop-shadow(0 3px 4px rgba(11, 31, 58, .25)); }
.mappa-grecia .etichetta text { font: 700 22px var(--sans); fill: var(--ink); }
.mappa-quadro { position: relative; max-width: 760px; margin: 0 auto; }
/* Titolo con il carattere del logo (Inter extra-bold), seconda parte in blu come "greek" nel logo */
.mappa-invito { text-align: center; margin: 0 auto 4px; }
.mappa-invito h2 { margin: 0 0 6px; font-family: var(--sans); font-weight: 800; letter-spacing: -0.02em; font-size: clamp(30px, 4vw, 40px); line-height: 1.05; color: var(--ink); }
.mappa-invito h2 span { color: var(--blue); }
.mappa-invito p { margin: 0; font-family: var(--sans); font-weight: 600; font-size: 17px; line-height: 1.4; color: var(--muted); }
.mappa-freccia { display: none; }
@media (min-width: 820px) {
  /* Sul computer il titolo sta dentro la mappa, nel mare in alto a destra */
  .mappa-quadro { max-width: 980px; }
  .mappa-quadro .mappa-grecia { width: 76%; margin: 0; }
  .mappa-invito { position: absolute; z-index: 1; top: 12%; right: 0; width: 29%; text-align: left; margin: 0; pointer-events: none; }
  .mappa-freccia { display: block; width: 76px; margin: 10px 0 0 10px; fill: none; stroke: var(--sun); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
}
@media (prefers-reduced-motion: reduce) { .mappa-zona > g, .mappa-grecia .etichetta { transition: none; } }
.nascosto { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.top-story { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 32px; align-items: center; }
.top-story .top-img img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; border-radius: 16px; display: block; background: var(--sky); }
.top-story h1 { margin: 0; font-size: clamp(32px, 4.5vw, 46px); line-height: 1.1; font-weight: 700; text-wrap: balance; }
.top-story h1 a { color: var(--ink); }
.top-story p { margin: 0; font-size: 19px; line-height: 1.55; color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }

/* Article cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 28px; margin-top: 20px; }
.card { display: flex; flex-direction: column; gap: 10px; }
.card .card-img img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; border-radius: 14px; display: block; background: var(--sky); }
.card h3 { margin: 0; font-size: 23px; line-height: 1.25; font-weight: 700; }
.card h3 a { color: var(--ink); }
.card p { margin: 0; font-size: 15px; color: var(--muted); }

.about { background: var(--sky); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.about h2 { margin: 0; font-size: 22px; font-weight: 800; }
.about p { margin: 0; color: var(--muted); }

/* Article */
.article { padding-top: 32px; padding-bottom: 64px; }
.crumbs { font-size: 14px; color: var(--soft); display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.split { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.split > .main { flex: 999 1 560px; min-width: 0; }
.split > aside { flex: 1 1 280px; display: flex; flex-direction: column; gap: 24px; }
.article-body { max-width: 760px; display: flex; flex-direction: column; gap: 20px; }
.article-body h1 { margin: 0; font-size: clamp(32px, 4.8vw, 48px); line-height: 1.1; font-weight: 700; text-wrap: balance; }
.article-body .dek { margin: 0; font-size: 20px; line-height: 1.55; color: var(--muted); }
.byline-bar { padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cover { margin: 0; }
.cover img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; border-radius: 16px; display: block; background: var(--sky); }
.cover figcaption { font-size: 13px; color: var(--soft); margin-top: 8px; }
.prose { font-family: var(--serif); font-size: 19px; line-height: 1.7; display: flex; flex-direction: column; gap: 18px; }
.prose p, .prose ul, .prose ol { margin: 0; }
.prose li + li { margin-top: 6px; }
.prose h2 { margin: 14px 0 0; font-family: var(--sans); font-size: 26px; font-weight: 800; line-height: 1.25; }
.prose h3 { margin: 6px 0 0; font-family: var(--sans); font-size: 20px; font-weight: 700; }
.prose figure { margin: 0; }
.prose figure img { border-radius: 12px; display: block; }
.prose figcaption { font-family: var(--sans); font-size: 13px; color: var(--soft); margin-top: 8px; }
.table-box { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; font-family: var(--sans); }
.table-box table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.table-box th { background: var(--sky); text-align: left; padding: 12px 16px; }
.table-box td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.panel { border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.panel h2 { margin: 0; font-size: 19px; font-weight: 800; }
.panel-sky { background: var(--sky); }
.panel-line { border: 1px solid var(--line); }
.facts { margin: 0; display: flex; flex-direction: column; gap: 12px; font-size: 15px; line-height: 1.45; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; color: var(--muted); }
.sources { font-size: 14px; color: var(--soft); }
.sources ul { margin: 6px 0 0; padding-left: 18px; }

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 16px; max-width: 640px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 15px; font-weight: 700; }
.field .optional { font-weight: 400; color: var(--soft); }
.field input, .field textarea { font: inherit; font-size: 16px; color: var(--ink); border: 1px solid #B9B3A6; border-radius: 10px; padding: 12px 14px; background: #FFFFFF; }
.field input { min-height: 46px; }
.field textarea { resize: vertical; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin: 0; font-size: 14px; color: var(--soft); }
.contact-form .btn { align-self: flex-start; border: 0; cursor: pointer; font-family: inherit; }
.contact-form .btn[disabled] { opacity: 0.6; cursor: wait; }
.form-status { margin: 0; min-height: 24px; font-weight: 600; }
.form-status.ok { color: #1E6B3A; }
.form-status.error { color: #A3271F; }

/* Footer */
.site-footer { background: var(--night); color: #FFFFFF; }
.site-footer .wrap { padding-top: 40px; padding-bottom: 40px; display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; }
.site-footer img { height: 40px; width: auto; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; }
.site-footer nav a { color: #FFFFFF; }
.site-footer small { font-size: 14px; color: #C9D3E3; flex-basis: 100%; }

/* Section pages: destinations, trip ideas, news */
.page-intro { margin: 12px 0 0; font-size: 18px; color: var(--muted); max-width: 720px; }
.page .crumbs { margin-bottom: 14px; }
.zones { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; margin-top: 28px; }
.zone { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px; border: 1px solid var(--line); border-top: 5px solid var(--blue); border-radius: 14px; color: var(--ink); background: #FFFFFF; }
.zone:hover { text-decoration: none; color: var(--ink); border-top-color: var(--sun); box-shadow: 0 6px 18px rgba(27, 42, 74, 0.08); }
.zone h2 { margin: 0; font-size: 24px; font-weight: 700; }
.zone p { margin: 0; font-size: 15px; color: var(--muted); }
.zone-places { font-size: 14px; font-weight: 600; color: var(--blue); }
p.zone-places { margin: 10px 0 0; }

/* Places inside a region (zone pages) */
.places { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 12px; margin-top: 24px; }
.place { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-left: 5px solid var(--blue); border-radius: 12px; background: #FFFFFF; color: var(--ink); }
a.place:hover { text-decoration: none; color: var(--ink); border-left-color: var(--sun); box-shadow: 0 6px 18px rgba(27, 42, 74, 0.08); }
.place-name { font-family: var(--serif); font-size: 20px; font-weight: 700; }
.place-count { font-size: 13px; font-weight: 600; color: var(--blue); }
.place-soon { border-left-color: var(--line); color: var(--soft); }
.place-soon .place-count { color: var(--soft); font-weight: 500; }

/* Sources: at the very end of the article, as small as is still readable */
.sources { margin-top: 48px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.45; color: var(--soft); }
.sources strong { font-size: 12px; font-weight: 600; }
.sources ul { margin: 4px 0 0; padding-left: 16px; }
.sources a { color: var(--soft); text-decoration: underline; }

/* Place page: an index of topics, each with links straight to its paragraphs */
.topic-nav { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; margin-top: 22px; font-size: 14px; }
.topic-nav span { font-weight: 700; color: var(--soft); }
.topic-nav ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.topic-nav a { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 18px; font-weight: 600; color: var(--ink); background: #FFFFFF; }
.topic-nav a:hover { text-decoration: none; border-color: var(--blue); color: var(--blue); }
.topics { display: flex; flex-direction: column; gap: 18px; margin-top: 28px; max-width: 820px; }
.topic { padding: 22px 24px; border: 1px solid var(--line); border-left: 5px solid var(--blue); border-radius: 14px; background: #FFFFFF; scroll-margin-top: 16px; }
.topic h2 { margin: 6px 0 6px; font-size: 24px; line-height: 1.25; font-weight: 700; }
.topic h2 a { color: var(--ink); }
.topic > p { margin: 0 0 10px; font-size: 15px; color: var(--muted); }
.topic-parts { margin: 0; padding-left: 22px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 6px 24px; font-size: 15px; }
.topic-parts a { font-weight: 600; }
.prose h2[id] { scroll-margin-top: 16px; }

/* Clickable tiles: an arrow and a clear hover/press state so they read as links */
a.place, a.zone { position: relative; cursor: pointer; transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease; }
a.place { padding-right: 44px; }
a.place::after, a.zone::after {
  content: "\2192"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--sky); color: var(--blue); font-size: 16px; font-weight: 700; transition: transform .15s ease, background .15s ease;
}
a.zone { padding-right: 56px; }
a.zone::after { top: auto; bottom: 18px; transform: none; }
a.place:hover, a.zone:hover { transform: translateY(-2px); }
a.place:hover::after { transform: translate(3px, -50%); background: var(--sun); color: #FFFFFF; }
a.zone:hover::after { transform: translateX(3px); background: var(--sun); color: #FFFFFF; }
a.place:hover .place-count, a.zone:hover .zone-places { text-decoration: underline; }
a.place:active, a.zone:active { transform: translateY(0); box-shadow: none; }
@media (prefers-reduced-motion: reduce) { a.place, a.zone, a.place::after, a.zone::after { transition: none; } }

/* Place index: a clear "read" link when an article has no sub-sections */
.topic-read { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
.topic-read::after { content: "\2192"; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--sky); color: var(--blue); transition: transform .15s ease, background .15s ease; }
.topic-read:hover::after { transform: translateX(3px); background: var(--sun); color: #FFFFFF; }

/* Foto della località, in cima alla pagina del luogo (una foto per località) */
.place-cover { margin: 8px 0 28px; }
.place-cover img { aspect-ratio: 8 / 5; }


/* Region pages: which place for whom */
.region-guide { margin-top: 36px; max-width: 760px; }
.region-guide h2 { margin: 0 0 10px; font-size: 24px; font-weight: 800; line-height: 1.25; }
.region-guide p { margin: 0 0 12px; font-size: 17px; color: var(--muted); }
.region-guide ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; font-family: var(--serif); font-size: 18px; line-height: 1.6; }
.region-guide li a { font-family: var(--sans); font-weight: 700; }

/* Table of contents at the top of a long guide */
.toc { font-family: var(--sans); background: var(--sky); border-radius: 14px; padding: 18px 22px; }
.toc strong { display: block; font-size: 15px; font-weight: 800; margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 22px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 6px 24px; font-size: 16px; line-height: 1.4; }
.toc a { font-weight: 600; }
.prose h3[id], .prose h2[id] { scroll-margin-top: 16px; }
