/* ===========================================================================
   parcodellacavallera.it — nature/park theme over Tailwind v2 (pre-built)
   Tokens from design/specs.md (Tailwind v2 prebuilt can't do [#hex] arbitraries,
   so all theme colours/fonts are defined here as plain CSS):
   green #3F7D3A / deep #285426 / leaf #8FB339 / earth #B07D4A
   surface #F6F7F1 / ink #26301F / muted #6B7464 / border #E1E5D4
   Headings: "PT Serif" · Body: "PT Sans"
   =========================================================================== */
:root {
  --sn-azure: #1F3A6E;
  --sn-azure-deep: #152848;
  --sn-turq: #C9A227;
  --sn-coral: #C9A227;
  --sn-gold-soft: #F3E9C8;
  --sn-surface: #FBF8F1;
  --sn-card: #FFFFFF;
  --sn-ink: #2A2A2A;
  --sn-muted: #6B6357;
  --sn-border: #E4DCC8;
  --sn-radius: 10px;
  --sn-shadow: 0 4px 16px rgba(31,58,110,0.08);
  --sn-shadow-hover: 0 10px 28px rgba(31,58,110,0.14);
}
body { background: var(--sn-surface); color: var(--sn-ink); font-family: ""PT Sans"", system-ui, sans-serif; font-size: 16px; line-height: 1.6; }
h1,h2,h3,h4,h5,h6 { font-family: ""PT Serif"", system-ui, sans-serif; color: var(--sn-azure-deep); font-weight: 700; line-height: 1.25; }

/* header */
.sn-header { position: sticky; top: 0; z-index: 60; background: var(--sn-azure); color: #fff; box-shadow: 0 2px 12px rgba(0,0,0,0.12); }
.sn-header__inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.7rem 1.25rem; flex-wrap: wrap; }
.sn-brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.05; }
.sn-brand__title { font-family: ""PT Serif"", serif; font-weight: 700; font-size: 1.25rem; color: #fff; }
.sn-brand__sub { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: #d9ecc7; }
.sn-nav ul { display: flex; flex-wrap: wrap; gap: 0.15rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.sn-nav li { margin: 0; position: relative; }
.sn-nav a { display: block; padding: 0.4rem 0.7rem; border-radius: 6px; color: #eef5e7; text-decoration: none; font-size: 0.9rem; font-weight: 600; transition: background .2s,color .2s; }
.sn-nav a:hover, .sn-nav a.active { background: rgba(255,255,255,0.15); color: #fff; }
.sn-nav .has-children > .submenu { display: none; position: absolute; top: 100%; left: 0; min-width: 230px; background: var(--sn-card); border: 1px solid var(--sn-border); border-radius: 8px; box-shadow: var(--sn-shadow); padding: 0.3rem; z-index: 70; flex-direction: column; }
.sn-nav .has-children:hover > .submenu, .sn-nav .has-children:focus-within > .submenu { display: flex; }
.sn-nav .submenu a { color: var(--sn-ink); white-space: nowrap; }
.sn-nav .submenu a:hover { background: #eef3e2; color: var(--sn-azure-deep); }
.sn-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,0.4); color: #fff; border-radius: 6px; padding: 0.25rem 0.6rem; font-size: 1.3rem; cursor: pointer; }
@media (max-width: 900px) {
  .sn-toggle { display: block; }
  .sn-nav { display: none; flex-basis: 100%; }
  #sn-nav-toggle:checked ~ .sn-nav { display: block; }
  .sn-nav ul { flex-direction: column; align-items: stretch; }
  .sn-nav .has-children > .submenu { position: static; box-shadow: none; border: none; padding-left: 1rem; }
}

/* hero */
.sn-hero { position: relative; background: linear-gradient(120deg, rgba(45,100,97,.82), rgba(33,76,64,.9)), url('/assets/images/img_25bfe45a5e7b.png') center/cover no-repeat; color: #fff; border-radius: 0 0 18px 18px; padding: 3rem 1.5rem; text-align: center; margin-bottom: 2rem; }
.sn-hero h1 { color: #fff; font-size: clamp(1.9rem,4vw,3rem); margin: 0 0 0.6rem; }
.sn-hero p { color: #e3efd6; max-width: 60ch; margin: 0 auto; }
.sn-hero::after { content:""; display:block; width:90px; height:4px; background:var(--sn-turq); margin:1.1rem auto 0; border-radius:4px; }

/* layout */
.sn-wrap { max-width: 1200px; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }
.sn-cols { display: grid; grid-template-columns: 1fr 300px; gap: 2rem; align-items: start; }
@media (max-width: 900px) { .sn-cols { grid-template-columns: 1fr; } }
.sn-section-title { font-size: 1.7rem; margin: 0 0 1.1rem; padding-bottom: 0.4rem; border-bottom: 2px solid var(--sn-turq); display: inline-block; }

/* sidebar */
.sn-aside { display: flex; flex-direction: column; gap: 1.25rem; }
.sn-panel { background: var(--sn-card); border: 1px solid var(--sn-border); border-radius: var(--sn-radius); box-shadow: var(--sn-shadow); padding: 1.1rem 1.25rem; }
.sn-panel h3 { font-size: 1.1rem; margin: 0 0 0.7rem; color: var(--sn-azure-deep); }
.sn-panel ul { list-style: none; margin: 0; padding: 0; }
.sn-panel li { margin: 0 0 0.35rem; }
.sn-panel a { color: var(--sn-azure-deep); text-decoration: none; font-weight: 600; }
.sn-panel a:hover { color: var(--sn-coral); text-decoration: underline; }

/* content */
.content-prose { max-width: 100%; }
.content-copy { margin: 0 0 1rem; }
.content-heading { margin: 1.5rem 0 0.7rem; }
.content-prose a, .content-copy a, .content-mini-card h3 a { color: var(--sn-azure); text-decoration: underline; text-decoration-color: rgba(63,125,58,0.4); text-underline-offset: 2px; }
.content-prose a:hover, .content-copy a:hover { color: var(--sn-coral); }
.content-figure { margin: 1rem 0; }
.content-figure img, .content-gallery img { max-width: 100%; height: auto; border-radius: 8px; }
.content-gallery { display: grid; grid-template-columns: repeat(auto-fill,minmax(150px,1fr)); gap: 0.7rem; margin: 1rem 0; }
.content-gallery__item { margin: 0; }
.content-gallery__item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
figcaption { font-size: 0.8rem; color: var(--sn-muted); margin-top: 0.25rem; }
.content-list { padding-left: 1.2rem; margin: 0 0 1rem; }
.content-table-wrap { overflow-x: auto; margin: 1rem 0; }
.content-table { width: 100%; border-collapse: collapse; background: var(--sn-card); }
.content-table td, .content-table th { padding: 0.45rem 0.6rem; border: 1px solid var(--sn-border); text-align: left; vertical-align: top; }
.content-table th { background: #eef3e2; color: var(--sn-azure-deep); }

/* cards */
.sn-card-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(240px,1fr)); gap: 1rem; }
.content-mini-card { background: var(--sn-card); border: 1px solid var(--sn-border); border-radius: var(--sn-radius); box-shadow: var(--sn-shadow); padding: 1rem 1.1rem; transition: transform .2s, box-shadow .2s; }
.content-mini-card:hover { transform: translateY(-2px); box-shadow: var(--sn-shadow-hover); }
.content-mini-card h3 { font-size: 1.05rem; margin: 0 0 0.3rem; }
.content-mini-card p { margin: 0; color: var(--sn-muted); font-size: 0.88rem; }

/* breadcrumbs */
.sn-breadcrumbs { margin: 0 0 1rem; font-size: 0.85rem; }
.sn-breadcrumbs ul { display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; padding: 0; margin: 0; }
.sn-breadcrumbs li::after { content: "›"; margin-left: 0.35rem; color: var(--sn-muted); }
.sn-breadcrumbs li:last-child::after { content: ""; }
.sn-breadcrumbs a { color: var(--sn-azure); text-decoration: none; }

/* article */
.sn-article { background: var(--sn-card); border: 1px solid var(--sn-border); border-radius: var(--sn-radius); box-shadow: var(--sn-shadow); padding: 1.5rem 1.75rem; }
.sn-article__meta { color: var(--sn-muted); font-size: 0.85rem; margin-bottom: 1rem; }
.sn-article__summary { border-left: 4px solid var(--sn-turq); background: var(--sn-surface); padding: 0.8rem 1.1rem; border-radius: 0 8px 8px 0; margin: 0 0 1.4rem; }
.sn-article__image { float: right; max-width: 40%; margin: 0 0 1rem 1.4rem; border-radius: 8px; }
@media (max-width: 600px) { .sn-article__image { float: none; max-width: 100%; margin: 0 0 1rem; } }
.sn-toc { background: var(--sn-surface); border: 1px solid var(--sn-border); border-radius: 8px; padding: 0.9rem 1.1rem; margin-bottom: 1.4rem; }
.sn-toc ul { margin: 0.4rem 0 0; padding-left: 1.1rem; }
.sn-toc a { color: var(--sn-azure); }

/* category grid */
.sn-cat-grid { display: grid; gap: 1.2rem; }
.sn-cat-grid.cols-2 { grid-template-columns: repeat(2,1fr); }
.sn-cat-grid.cols-3 { grid-template-columns: repeat(3,1fr); }
@media (max-width: 800px) { .sn-cat-grid.cols-2, .sn-cat-grid.cols-3 { grid-template-columns: 1fr; } }
.sn-cat-card { display: flex; flex-direction: column; overflow: hidden; }
.sn-cat-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.sn-cat-card__body { padding: 1rem 1.1rem; }
.sn-cat-card__body h3 a { color: var(--sn-azure-deep); text-decoration: none; }
.sn-cat-card__body h3 a:hover { color: var(--sn-coral); }
.sn-readmore { display: inline-block; margin-top: 0.5rem; color: var(--sn-azure); font-weight: 600; text-decoration: none; }
.sn-readmore:hover { text-decoration: underline; }

/* footer */
.sn-footer { background: var(--sn-azure-deep); color: #d7e4cd; margin-top: 3rem; padding: 2.5rem 1.25rem; border-top: 4px solid var(--sn-turq); }
.sn-footer__inner { max-width: 1200px; margin: 0 auto; }
.sn-footer h2 { color: #fff; margin: 0 0 0.5rem; }
.sn-footer__links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin: 1rem 0; }
.sn-footer__links a { color: #cfe0bf; text-decoration: none; font-size: 0.88rem; }
.sn-footer__links a:hover { text-decoration: underline; color: #fff; }
.sn-footer__copy { color: #9ab189; font-size: 0.8rem; margin-top: 1rem; }
