/*
Theme Name: Custom Auto Theme
Author: System
Version: 1.0
*/

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 17px; }
body {
  font-family: Georgia, 'Times New Roman', serif;
  background: #faf9f6;
  color: #2c2c2c;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}
a { display: inline-block; text-align: center; color: inherit; text-decoration: none; transition: color 0.3s; }
a:hover { color: #2d6a4f; }
img { max-width: 100%; display: block; }
ul, ol { padding-left: 1.4em; }
blockquote {
  font-style: italic;
  border-left: 2px solid #2d6a4f;
  margin: 2em 0;
  padding: 0.5em 0 0.5em 2em;
  color: #b5838d;
  font-size: 1.1em;
}

/* === CSS VARIABLES === */
:root {
  --cream: #faf9f6;
  --green: #2d6a4f;
  --rose: #b5838d;
  --ink: #2c2c2c;
  --line: #e0ddd6;
  --muted: #888680;
  --max-w: 1160px;
  --art-w: 680px;
}

/* === LAYOUT === */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
.art-container { max-width: var(--art-w); margin: 0 auto; padding: 0 2rem; }

/* === HEADER === */
.site-header {
  background: var(--cream);
  padding: 1.8rem 2rem 0;
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--ink);
}
.header-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 1.2rem;
}
.site-logo {
  font-family: Georgia, serif;
  font-size: 1.55rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-decoration: none;
  display: block;
  text-align: center;
}
.site-logo span { color: var(--green); }
nav { display: flex; gap: 2rem; }
nav a {
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  color: var(--ink);
  text-transform: lowercase;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.3s, color 0.3s;
  display: inline-block; text-align: center;
}
nav a:hover { border-color: var(--green); color: var(--green); }
.nav-left { flex: 1; display: flex; justify-content: flex-end; gap: 2rem; }
.nav-right { flex: 1; display: flex; justify-content: flex-start; gap: 2rem; }
.logo-wrap { flex: 0 0 auto; padding: 0 3rem; }

/* === BURGER === */
.burger-btn { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.burger-btn span { display: block; width: 22px; height: 1px; background: var(--ink); margin: 5px 0; transition: 0.3s; }
.mobile-nav { display: none; }
@media (max-width: 768px) {
  .nav-left, .nav-right { display: none; }
  .burger-btn { display: block; }
  .mobile-nav { display: none; flex-direction: column; gap: 1rem; padding: 1.2rem 2rem; background: var(--cream); border-top: 1px solid var(--line); }
  .mobile-nav.open { display: flex; }
  .mobile-nav a { font-size: 0.85rem; letter-spacing: 0.4px; color: var(--ink); text-transform: lowercase; }
}

/* === SECTION DIVIDER === */
.section-label {
  text-align: center;
  margin: 3.5rem 0 2.5rem;
  position: relative;
  display: flex; align-items: center; gap: 1.5rem;
}
.section-label::before, .section-label::after {
  content: ''; flex: 1; height: 1px; background: var(--line);
}
.section-label span {
  font-size: 0.65rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

/* === HERO === */
.hero {
  padding: 4rem 2rem 3rem;
  max-width: var(--max-w); margin: 0 auto;
}
.hero-inner {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 4rem;
  align-items: center;
}
.hero-tag {
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1.2rem;
  display: block;
}
.hero-title {
  font-family: Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: var(--ink);
}
.hero-lead {
  font-size: 1rem;
  color: #555;
  line-height: 1.85;
  margin-bottom: 1rem;
}
.hero-cta {
  margin-top: 1.8rem;
  font-size: 0.75rem;
  letter-spacing: 1px;
  color: var(--green);
  border-bottom: 1px solid var(--green);
  padding-bottom: 2px;
  text-transform: lowercase;
  transition: opacity 0.3s;
  display: inline-block; text-align: center;
}
.hero-cta:hover { opacity: 0.7; color: var(--green); }
.hero-image-wrap {
  position: relative;
  overflow: hidden;
}
.hero-image-wrap img {
  width: 100%; height: 500px; object-fit: cover;
  transition: transform 0.6s ease;
}
.hero-image-wrap:hover img { transform: scale(1.03); }
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-image-wrap img { height: 320px; }
}

/* === ARTICLES STREAM === */
.articles-stream { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
.stream-with-aside { display: grid; grid-template-columns: 1fr 25%; gap: 4rem; }
.stream-list { }
.stream-item {
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.3s;
}
.stream-item:hover { padding-left: 0.5rem; }
.stream-item:first-child { border-top: 1px solid var(--line); }
.stream-cat {
  font-size: 0.62rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green);
  display: block;
  margin-bottom: 0.5rem;
}
.stream-item h2 {
  font-family: Georgia, serif;
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 0.8rem;
}
.stream-item h2 a { color: var(--ink); transition: color 0.3s; display: inline; }
.stream-item h2 a:hover { color: var(--green); }
.stream-excerpt { font-size: 0.92rem; color: #555; line-height: 1.8; }
.read-link {
  display: inline-block; text-align: center;
  margin-top: 0.8rem;
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  color: var(--green);
  border-bottom: 1px solid var(--green);
  padding-bottom: 1px;
  transition: opacity 0.3s;
}
.read-link:hover { opacity: 0.65; color: var(--green); }

/* === ASIDE === */
aside.sidebar {
  padding-top: 0.5rem;
}
.aside-widget { margin-bottom: 2.8rem; }
.aside-title {
  font-size: 0.62rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.6rem;
  margin-bottom: 1.2rem;
}
.aside-quote {
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.75;
  border-left: 2px solid var(--rose);
  padding-left: 1rem;
}
.aside-quote cite {
  display: block;
  margin-top: 0.6rem;
  font-style: normal;
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  color: var(--muted);
}
.piu-letti-list { list-style: none; padding: 0; }
.piu-letti-list li { margin-bottom: 0.7rem; }
.piu-letti-list a {
  font-size: 0.88rem;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, color 0.3s;
  display: inline; text-align: left;
  line-height: 1.4;
}
.piu-letti-list a:hover { color: var(--green); border-color: var(--green); }
.tag-list { line-height: 2; }
.tag-list a {
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  color: var(--green);
  display: inline; text-align: left;
  transition: color 0.3s;
}
.tag-list a:hover { color: var(--rose); }
.tag-sep { color: var(--line); margin: 0 0.25rem; }
@media (max-width: 900px) {
  .stream-with-aside { grid-template-columns: 1fr; }
  aside.sidebar { border-top: 1px solid var(--line); padding-top: 2rem; }
}

/* === ABOUT SECTION === */
.about-section {
  max-width: 640px; margin: 0 auto;
  padding: 4rem 2rem;
  text-align: center;
}
.about-section h2 { font-size: 1.3rem; font-weight: 400; margin-bottom: 1rem; }
.about-section p { font-size: 0.95rem; color: #555; }

/* === FEATURES === */
.features-section { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem 4rem; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; }
.feature-item { text-align: center; padding: 0 1rem; }
.feature-icon { font-size: 1.8rem; margin-bottom: 1rem; }
.feature-item h3 { font-size: 0.75rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--green); margin-bottom: 0.8rem; }
.feature-item p { font-size: 0.88rem; color: #666; line-height: 1.75; }
@media (max-width: 768px) { .features-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* === SUBSCRIPTION === */
.subscribe-section {
  background: var(--ink);
  color: var(--cream);
  padding: 5rem 2rem;
  text-align: center;
}
.subscribe-section h2 { font-family: Georgia, serif; font-size: 2rem; font-weight: 400; margin-bottom: 0.8rem; color: var(--cream); }
.subscribe-section p { font-size: 0.92rem; color: #aaa; margin-bottom: 2rem; }
.subscribe-form { display: flex; gap: 0; max-width: 460px; margin: 0 auto; }
.subscribe-form input[type="email"] {
  flex: 1;
  padding: 0.9rem 1.2rem;
  border: 1px solid #444;
  background: #1a1a1a;
  color: var(--cream);
  font-family: Georgia, serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s;
}
.subscribe-form input[type="email"]::placeholder { color: #666; }
.subscribe-form input[type="email"]:focus { border-color: var(--green); }
.subscribe-form button {
  background: var(--green);
  color: #fff;
  border: none;
  padding: 0.9rem 1.6rem;
  font-family: Georgia, serif;
  font-size: 0.78rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.3s;
  min-height: 44px;
}
.subscribe-form button:hover { background: #3a8563; }
@media (max-width: 560px) { .subscribe-form { flex-direction: column; } }

/* === FOOTER === */
footer {
  background: var(--cream);
  border-top: 1px solid var(--ink);
  padding: 3rem 2rem 2rem;
  text-align: center;
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-logo {
  font-family: Georgia, serif;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  margin-bottom: 1.2rem;
  color: var(--ink);
  display: block; text-align: center;
}
.footer-links { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.footer-links a {
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  color: var(--muted);
  text-transform: lowercase;
  border-bottom: 1px solid transparent;
  transition: color 0.3s, border-color 0.3s;
  display: inline-block; text-align: center;
}
.footer-links a:hover { color: var(--green); border-color: var(--green); }
.footer-copy { font-size: 0.7rem; color: var(--muted); margin-bottom: 1.5rem; }
.footer-disclaimer {
  font-size: 0.72rem;
  color: #999;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.7;
  font-style: italic;
  border-top: 1px solid var(--line);
  padding-top: 1.2rem;
}

/* === ARTICLE PAGE === */
.article-page { padding: 3rem 0 5rem; }
.article-header { max-width: var(--art-w); margin: 0 auto 3rem; padding: 0 2rem; }
.article-cat {
  font-size: 0.62rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green);
  display: block;
  margin-bottom: 1rem;
}
.article-title {
  font-family: Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1.2rem;
  letter-spacing: -0.02em;
}
.article-lead {
  font-size: 1.08rem;
  color: #555;
  line-height: 1.85;
  border-left: 2px solid var(--rose);
  padding-left: 1.4rem;
}
.article-meta { font-size: 0.7rem; color: var(--muted); margin-top: 1.2rem; letter-spacing: 0.3px; }
.article-body { max-width: var(--art-w); margin: 0 auto; padding: 0 2rem; }
.article-body h2 {
  font-family: Georgia, serif;
  font-size: 1.35rem;
  font-weight: 400;
  margin: 2.5rem 0 1rem;
  color: var(--ink);
}
.article-body h3 {
  font-family: Georgia, serif;
  font-size: 1.05rem;
  font-weight: 400;
  margin: 2rem 0 0.7rem;
  color: var(--ink);
}
.article-body p { margin-bottom: 1.4rem; }
.article-body ul, .article-body ol { margin-bottom: 1.4rem; }
.article-body li { margin-bottom: 0.5rem; }
.article-img { margin: 2.5rem 0; overflow: hidden; }
.article-img img { width: 100%; max-height: 440px; object-fit: cover; }
.article-img figcaption { font-size: 0.75rem; color: var(--muted); margin-top: 0.5rem; text-align: center; font-style: italic; }
.article-disclaimer {
  margin-top: 3rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.75;
  font-style: italic;
}
.fact-box {
  background: #f3f1ee;
  border-left: 3px solid var(--green);
  padding: 1.2rem 1.5rem;
  margin: 2rem 0;
  font-size: 0.92rem;
}
.fact-box strong { display: block; margin-bottom: 0.4rem; font-size: 0.68rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--green); }
.back-link {
  display: inline-block; text-align: center;
  margin-top: 3rem;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  color: var(--green);
  border-bottom: 1px solid var(--green);
  padding-bottom: 2px;
  transition: opacity 0.3s;
}
.back-link:hover { opacity: 0.65; color: var(--green); }

/* === STATIC PAGES (policy, terms, cookies) === */
.static-page { padding: 4rem 0 5rem; }
.static-header { max-width: var(--art-w); margin: 0 auto 2.5rem; padding: 0 2rem; }
.static-header h1 { font-family: Georgia, serif; font-size: 2rem; font-weight: 400; line-height: 1.25; }
.static-header .subtitle { font-size: 0.88rem; color: var(--muted); margin-top: 0.5rem; }
.static-body { max-width: var(--art-w); margin: 0 auto; padding: 0 2rem; }
.static-body h2 { font-family: Georgia, serif; font-size: 1.2rem; font-weight: 400; margin: 2rem 0 0.8rem; }
.static-body p { margin-bottom: 1.2rem; font-size: 0.94rem; line-height: 1.85; }
.static-body ul { margin-bottom: 1.2rem; font-size: 0.94rem; }
.static-body li { margin-bottom: 0.4rem; }

/* === SUCCESS PAGE === */
.success-page {
  min-height: 70vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 4rem 2rem;
}
.success-inner { max-width: 520px; }
.success-icon { font-size: 3rem; margin-bottom: 1.5rem; }
.success-inner h1 { font-family: Georgia, serif; font-size: 2.4rem; font-weight: 400; margin-bottom: 0.8rem; }
.success-inner p { font-size: 1rem; color: #666; margin-bottom: 2rem; }
.btn-home {
  display: inline-block; text-align: center;
  padding: 0.85rem 2rem;
  background: var(--green);
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 1px;
  transition: background 0.3s;
  min-height: 44px;
  line-height: 2;
}
.btn-home:hover { background: #3a8563; color: #fff; }

/* === 404 PAGE === */
.page-404 {
  min-height: 70vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 4rem 2rem;
  flex-direction: column;
}
.err-num {
  font-family: Georgia, serif;
  font-size: clamp(6rem, 18vw, 12rem);
  font-weight: 400;
  color: var(--line);
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 0;
}
.err-title { font-family: Georgia, serif; font-size: 1.4rem; font-weight: 400; margin-bottom: 1rem; }
.err-text { font-size: 0.92rem; color: #666; max-width: 400px; line-height: 1.8; margin-bottom: 2rem; }
.err-suggestions { margin: 2.5rem 0; }
.err-suggestions p { font-size: 0.7rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.err-links { display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap; }
.err-links a { font-size: 0.9rem; color: var(--green); border-bottom: 1px solid var(--green); padding-bottom: 1px; display: inline-block; text-align: center; }
.err-links a:hover { opacity: 0.7; color: var(--green); }

/* === COOKIE BANNER === */
#cookie-close { display: none; }
#cookie-close:checked ~ .cookie-banner { display: none; }
.cookie-banner {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  max-width: 360px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  padding: 1.4rem 1.6rem;
  z-index: 9999;
  animation: slideUp 0.5s ease;
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.cookie-banner p {
  font-size: 0.82rem;
  color: #555;
  line-height: 1.65;
  margin-bottom: 1rem;
}
.cookie-banner p a { color: var(--green); border-bottom: 1px solid var(--green); font-size: 0.82rem; display: inline; }
.cookie-actions { display: flex; gap: 0.8rem; align-items: center; }
.cookie-actions label {
  cursor: pointer;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  min-height: 44px;
  display: flex; align-items: center;
}
.cookie-accept {
  background: var(--green);
  color: #fff;
  padding: 0.55rem 1.2rem;
  transition: background 0.3s;
}
.cookie-accept:hover { background: #3a8563; }
.cookie-decline {
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.cookie-decline:hover { color: var(--ink); border-color: var(--ink); }

/* === ANIMATIONS === */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.7s ease both; }
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.hero-text { animation: fadeUp 0.8s ease both; }
.hero-image-wrap { animation: fadeUp 0.9s 0.2s ease both; }

/* === UTILITY === */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.color-green { color: var(--green); }
.color-rose { color: var(--rose); }
