/*
Theme Name:  Dormire Italia
Theme URI:   https://dormirenitalia.com
Description: Tema completo per dormirenitalia.com
Author:      dormirenitalia.com
Version:     1.0.0
Text Domain: dormirenitalia
*/

:root {
  --azul:   #1a5c8a;
  --azul-d: #0f3d5c;
  --azul-l: #e8f2f9;
  --naranja:#e8824a;
  --texto:  #1c1c1b;
  --muted:  #5a5a58;
  --bg:     #ffffff;
  --soft:   #f7f6f3;
  --dark:   #0f2233;
  --borde:  #e2e0da;
  --sans:   'Inter', system-ui, -apple-system, sans-serif;
  --serif:  'Playfair Display', Georgia, serif;
  --max:    1140px;
  --r:      10px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--texto);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--azul); text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin-bottom: 1rem; }
ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: .375rem; }

h1,h2,h3,h4,h5 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.25;
  color: var(--texto);
  margin-bottom: .75rem;
}
h1 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.3rem, 3vw, 1.875rem); margin-top: 2rem; }
h3 { font-size: clamp(1.1rem, 2vw, 1.375rem); margin-top: 1.5rem; }
h4 { font-size: 1.1rem; margin-top: 1.25rem; }

/* ── HEADER ─────────────────────────────────────────────── */
.site-header {
  background: var(--dark);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-logo {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .5rem;
  white-space: nowrap;
}
.site-logo:hover { text-decoration: none; color: #fff; }
.site-nav { display: flex; align-items: center; gap: .125rem; }
.site-nav a {
  color: rgba(255,255,255,.78);
  font-size: .875rem;
  font-weight: 500;
  padding: .4rem .75rem;
  border-radius: 6px;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.site-nav a:hover { background: rgba(255,255,255,.12); color: #fff; text-decoration: none; }
.btn-cta {
  background: var(--naranja);
  color: #fff;
  padding: .45rem 1.1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: .875rem;
  transition: background .15s;
  white-space: nowrap;
}
.btn-cta:hover { background: #c4632e; color: #fff; text-decoration: none; }

/* ── BREADCRUMB ─────────────────────────────────────────── */
.breadcrumb {
  background: var(--soft);
  border-bottom: 1px solid var(--borde);
  padding: .55rem 0;
  font-size: .8rem;
  color: var(--muted);
}
.breadcrumb .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .2rem;
}
.breadcrumb a { color: var(--azul); }
.breadcrumb .sep { color: var(--borde); margin: 0 .2rem; }

/* ── HERO ARTICOLO ──────────────────────────────────────── */
.article-hero {
  background: var(--azul-d);
  padding: 2.5rem 1.5rem 2rem;
  text-align: center;
}
.article-hero .eyebrow {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: #85B7EB;
  text-transform: uppercase;
  margin-bottom: .75rem;
}
.article-hero h1 {
  color: #fff;
  margin-bottom: .625rem;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}
.article-hero .meta {
  color: rgba(255,255,255,.6);
  font-size: .875rem;
}

/* ── LAYOUT ARTICOLO ─────────────────────────────────────── */
.article-layout {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}

/* ── CONTENUTO ──────────────────────────────────────────── */
.article-content {
  min-width: 0;
  font-size: 1rem;
  line-height: 1.78;
}
.article-content h2 { color: var(--azul); }
.article-content figure { margin: 1.5rem 0; }
.article-content figure img { border-radius: var(--r); width: 100%; }
.article-content figcaption {
  text-align: center;
  font-size: .78rem;
  color: var(--muted);
  margin-top: .375rem;
}
.article-content blockquote {
  border-left: 3px solid var(--azul);
  padding: .75rem 1.25rem;
  background: var(--azul-l);
  border-radius: 0 var(--r) var(--r) 0;
  font-style: italic;
  color: var(--muted);
  margin: 1.5rem 0;
}
.article-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  margin: 1.5rem 0;
}
.article-content th {
  background: var(--soft);
  padding: .55rem .75rem;
  text-align: left;
  font-weight: 700;
  border-bottom: 2px solid var(--borde);
}
.article-content td {
  padding: .5rem .75rem;
  border-bottom: 1px solid var(--borde);
}
.article-content tr:nth-child(even) td { background: var(--soft); }

/* Gutenberg colors */
.has-vivid-cyan-blue-color { color: var(--azul) !important; }
.wp-block-image { margin: 1.5rem 0; }
.wp-block-image img { border-radius: var(--r); }
.wp-block-list { padding-left: 1.5rem; margin-bottom: 1rem; }

/* ── SIDEBAR ─────────────────────────────────────────────── */
.article-sidebar { position: sticky; top: 82px; }

.sidebar-card {
  background: var(--bg);
  border: 1px solid var(--borde);
  border-radius: var(--r);
  padding: 1.1rem;
  margin-bottom: .875rem;
}
.sidebar-card-title {
  font-family: var(--serif);
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: .5rem;
  color: var(--texto);
}
.sidebar-card-text {
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: .875rem;
}
.btn-booking {
  display: block;
  background: var(--azul);
  color: #fff;
  text-align: center;
  padding: .7rem 1rem;
  border-radius: var(--r);
  font-weight: 600;
  font-size: .875rem;
  transition: background .15s;
}
.btn-booking:hover { background: var(--azul-d); color: #fff; text-decoration: none; }

.related-title {
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: .625rem;
  color: var(--texto);
}
.related-list { list-style: none; padding: 0; margin: 0; }
.related-list li {
  border-bottom: 1px solid var(--borde);
  padding: .45rem 0;
}
.related-list li:last-child { border-bottom: none; }
.related-list a {
  font-size: .875rem;
  color: var(--azul);
  line-height: 1.4;
}

/* ── FOOTER ─────────────────────────────────────────────── */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.6);
  padding: 3rem 1.5rem 1.5rem;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.footer-logo {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: .375rem;
}
.footer-desc {
  font-size: .82rem;
  max-width: 400px;
  margin-bottom: 2.5rem;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.footer-col-title {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: .75rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .35rem; }
.footer-col a { font-size: .82rem; color: rgba(255,255,255,.6); }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.25rem;
  font-size: .76rem;
  color: rgba(255,255,255,.35);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 860px) {
  .article-layout {
    grid-template-columns: 1fr;
    padding: 1.5rem 1.25rem 3rem;
    gap: 2rem;
  }
  .article-sidebar { position: static; }
  .site-nav { display: none; }
}
@media (max-width: 480px) {
  .article-hero { padding: 1.75rem 1.25rem 1.5rem; }
  .header-inner { padding: 0 1rem; }
}
