* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
:root {
  --rust: #c84a1e;
  --rust2: #e05a28;
  --sage: #7a8c6e;
  --sand: #d4c4a0;
  --cream: #f2ede2;
  --warm: #faf7f0;
  --dark: #2c2416;
  --muted: #7a6e5a;
  --hand: "Lobster", cursive;
  --sketch: "Caveat", cursive;
  --body: "Nunito", sans-serif;
}
body {
  font-family: var(--body);
  background: var(--warm);
  color: var(--dark);
  overflow-x: hidden;
}

/* NAV */
nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 3rem;
  background: rgba(44, 36, 22, 0.55);
  backdrop-filter: blur(4px);
}
.nav-logo {
  font-family: var(--hand);
  font-size: 1.7rem;
  color: #fff;
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: #fff;
}

/* HERO */
#hero {
  position: relative;
  height: 100vh;
  min-height: 580px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 85%, #4a5e3a 0%, transparent 50%),
    radial-gradient(ellipse at 75% 55%, #7a8c5a 0%, transparent 45%),
    radial-gradient(ellipse at 50% 100%, #3a4a28 0%, transparent 55%),
    radial-gradient(ellipse at 8% 25%, #2a3818 0%, transparent 40%),
    linear-gradient(
      to bottom,
      #7a9060 0%,
      #9aaa70 30%,
      #c8b87a 60%,
      #d4c494 85%,
      #b8a870 100%
    );
  filter: saturate(0.65) brightness(0.82);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 15%,
    rgba(220, 210, 190, 0.45) 0%,
    transparent 58%
  );
}
.hero-image-wrap {
  position: absolute;
  right: 4%;
  top: 12%;
  width: 36%;
  max-width: 400px;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transform-origin: 50% 50%;
  animation: heroSpinEnter 1.35s cubic-bezier(0.2, 0.9, 0.2, 1) 0.2s forwards;
}
.hero-image {
  width: 100%;
  display: block;
  transform: translateZ(0);
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
  background: transparent;
  clip-path: ellipse(50% 60% at 50% 52%);
  transition: transform 0.25s ease;
}
@keyframes heroSpinEnter {
  0% {
    opacity: 0;
    transform: rotate(-180deg) scale(0.55);
    filter: blur(7px);
  }
  62% {
    opacity: 1;
    transform: rotate(18deg) scale(1.04);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: rotate(0deg) scale(1);
    filter: blur(0);
  }
}

.hero-content {
  position: relative;
  z-index: 5;
  padding: 0 3rem;
  max-width: 560px;
}
.hero-title {
  font-family: var(--hand);
  font-size: clamp(4rem, 11vw, 8.5rem);
  color: #fff;
  line-height: 0.9;
  text-shadow:
    3px 4px 0 rgba(0, 0, 0, 0.25),
    0 0 50px rgba(0, 0, 0, 0.25);
  margin-bottom: 1.2rem;
}
.hero-title > span {
  display: block;
  color: var(--rust2);
  text-shadow: 3px 4px 0 rgba(0, 0, 0, 0.3);
}
.hero-title.is-thoughts {
  font-size: clamp(3.15rem, 8vw, 6.8rem);
  line-height: 1;
  max-width: 720px;
}
.hero-title.is-thoughts em {
  color: var(--rust2);
  font-style: normal;
  white-space: nowrap;
  text-shadow: 3px 4px 0 rgba(0, 0, 0, 0.3);
}
.hero-title.is-thoughts em::after {
  content: "|";
  display: inline-block;
  margin-left: 0.05em;
  color: rgba(255, 255, 255, 0.9);
  animation: blink 1s infinite;
}
.hero-sub {
  font-family: var(--sketch);
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.55;
  font-weight: 600;
  text-shadow: 1px 2px 6px rgba(0, 0, 0, 0.45);
  max-width: 370px;
}

/* INTRO */
#intro {
  background: var(--cream);
  padding: 4rem 3rem;
  text-align: center;
  position: relative;
}
#intro::before,
#intro::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(
    to right,
    transparent,
    var(--sand),
    transparent
  );
}
#intro::before {
  top: 0;
}
#intro::after {
  bottom: 0;
}
.intro-text {
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  font-weight: 300;
  color: var(--dark);
  line-height: 1.75;
  max-width: 660px;
  margin: 0 auto;
}
.intro-text strong {
  font-weight: 600;
}
.intro-text em {
  font-style: italic;
  color: var(--rust);
}

/* TOPICS */
#topics {
  background: #e9e9e7;
  padding: 4.5rem 3rem 5rem;
}
.topics-heading {
  max-width: 760px;
  margin: 0 auto 2.5rem;
  text-align: center;
}
.topics-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 0.5rem;
}
.topics-title {
  font-family: var(--hand);
  font-size: clamp(2.35rem, 5vw, 4rem);
  color: var(--dark);
  line-height: 1;
  margin-bottom: 0.9rem;
}
.topics-subtitle {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--muted);
  font-weight: 300;
  max-width: 560px;
  margin: 0 auto;
}
.topics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  max-width: 1080px;
  margin: 0 auto;
}
.topic-card {
  min-height: 150px;
  padding: 1.35rem;
  border: 1px solid rgba(120, 96, 70, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.04);
  color: inherit;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.1rem;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.topic-card:hover {
  transform: translateY(-3px);
  border-color: rgba(200, 74, 30, 0.3);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.08);
}
.topic-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.33rem, 2.0vw, 1.5rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.15;
}
.topic-note {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rust);
}

/* BLOG */
#blog {
  position: relative;
  padding: 4.5rem 1.25rem 5rem;
  background: #e9e9e7;
}
.blog-heading {
  max-width: 760px;
  margin: 0 auto 2.2rem;
  text-align: center;
}
.blog-section-title {
  font-family: var(--hand);
  font-size: clamp(2.7rem, 6vw, 4.6rem);
  color: var(--rust);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.blog-section-subtitle {
  font-family: var(--sketch);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--muted);
}

/* Posts */
.posts-container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}
.post-item {
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
  min-height: 340px;
  padding: 0.8rem;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(28, 25, 20, 0.08);
  cursor: pointer;
  position: relative;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.post-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 46px rgba(28, 25, 20, 0.13);
}
.post-media {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 7px;
  background: var(--cream);
}
.post-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.post-media img.post-image-lancia {
  object-position: center 38%;
}
.post-media img.post-image-torrette {
  object-position: center 18%;
  transform: scale(0.88);
  transform-origin: center;
}
.post-item:hover .post-media img {
  transform: scale(1.035);
}
.post-item:hover .post-media img.post-image-torrette {
  transform: scale(0.93);
}
.post-media img.post-image-ossigeno {
  object-position: center 16%;
}
.post-date {
  position: absolute;
  left: 0.65rem;
  bottom: 0.65rem;
  max-width: calc(100% - 2rem);
  padding: 0.14rem 0.55rem 0.2rem;
  border-radius: 8px;
  background: #fff;
  color: #080808;
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}
.post-body {
  display: flex;
  min-height: 140px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 0.25rem 0.25rem;
}
.post-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.28rem, 1.8vw, 1.55rem);
  font-weight: 700;
  color: #000;
  line-height: 1.24;
  letter-spacing: 0;
}
.post-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 104px;
  min-height: 42px;
  padding: 0.65rem 0.95rem;
  border-radius: 8px;
  background: #000;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
  transition: background 0.25s ease, transform 0.25s ease;
}
.post-item:hover .post-cta {
  background: var(--rust);
  transform: translateY(-2px);
}
.hidden-post {
  display: none !important;
}
.show-more-wrap {
  max-width: 1040px;
  margin: 2.2rem auto 0;
  padding: 0;
  text-align: center;
}
.show-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-width: 220px;
  padding: 0.95rem 1.4rem;
  border-radius: 10px;
  border: 1px solid #000;
  background: #000;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
}
.show-more-btn:hover {
  background: var(--rust);
  color: #fff;
  border-color: var(--rust);
  transform: translateY(-1px);
}

/* ABOUT */
#about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
}
.about-photo {
  position: relative;
  overflow: hidden;
  min-height: 480px;
}
.about-photo-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 40% 55%, #6a8050 0%, transparent 55%),
    radial-gradient(ellipse at 80% 78%, #9aaa70 0%, transparent 48%),
    radial-gradient(ellipse at 18% 18%, #4a5e38 0%, transparent 42%),
    linear-gradient(
      135deg,
      #5a7040 0%,
      #8a9a60 40%,
      #b8c890 68%,
      #8a9a60 100%
    );
  filter: saturate(0.58) brightness(0.72);
}
.about-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    transparent 58%,
    rgba(242, 237, 226, 0.96) 100%
  );
}
.about-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 4;
  animation: kenburns 22s ease-in-out infinite alternate;
  transform-origin: center;
}
@keyframes kenburns {
  from { transform: scale(1) translate(0, 0); }
  to   { transform: scale(1.08) translate(-1.5%, 1%); }
}
.papaveri-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}
.about-content {
  background: var(--cream);
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.2rem;
  position: relative;
  z-index: 2;
}
.about-title {
  font-family: var(--hand);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  color: var(--rust);
  line-height: 1;
}
.about-bio {
  font-size: 0.91rem;
  line-height: 1.82;
  color: var(--muted);
  font-weight: 300;
}
.about-bio strong {
  color: var(--dark);
  font-weight: 600;
}
.tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.4rem;
}
.tag {
  font-family: var(--sketch);
  font-size: 0.92rem;
  padding: 0.25rem 0.78rem;
  background: var(--warm);
  border: 1.5px solid var(--sand);
  border-radius: 30px;
  color: var(--dark);
  transition: all 0.2s;
  cursor: default;
}
.tag:hover {
  background: var(--rust);
  border-color: var(--rust);
  color: #fff;
}

/* QUOTE */
#quote {
  background: var(--warm);
  padding: 4rem 3rem;
  text-align: center;
  position: relative;
}
#quote::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 5px;
  background: linear-gradient(
    to right,
    transparent,
    var(--sand),
    transparent
  );
}
.quote-bird {
  margin: 0 auto 1rem;
  width: 48px;
  height: 38px;
  opacity: 0.28;
}
.quote-text {
  font-family: var(--sketch);
  font-size: clamp(1.15rem, 2.8vw, 1.6rem);
  font-weight: 600;
  color: var(--dark);
  max-width: 660px;
  margin: 0 auto 1.5rem;
  line-height: 1.5;
}
.quote-cta {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rust);
  text-decoration: none;
  border-bottom: 2px solid var(--rust);
  padding-bottom: 2px;
  transition:
    color 0.2s,
    border-color 0.2s;
}
.quote-cta:hover {
  color: var(--rust2);
  border-color: var(--rust2);
}
.cta-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--rust);
  border-radius: 50%;
  margin-left: 5px;
  vertical-align: middle;
}

/* FOOTER */
footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.55);
  padding: 2.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-logo {
  font-family: var(--hand);
  font-size: 1.8rem;
  color: #fff;
  text-decoration: none;
}
.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.footer-links a {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.48);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: #fff;
}

/* SOCIAL */
.social-links {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}
.social-title {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  margin-right: 0.35rem;
}
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  height: 38px;
  padding: 0 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  transition: background 0.2s, color 0.2s, transform 0.2s, border-color 0.2s;
}
.social-btn:hover {
  background: var(--rust);
  border-color: var(--rust);
  color: #fff;
  transform: translateY(-2px);
}
.social-btn svg {
  width: 17px;
  height: 17px;
  display: block;
}
.social-btn span {
  line-height: 1;
}

/* SHARE BUTTON */
.share-btn {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.08);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.share-btn:hover {
  background: var(--rust);
  color: #fff;
  transform: translateY(-2px);
}

/* LEGAL LINKS */
.legal-section {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0 3rem 2rem;
  background: var(--dark);
}
.legal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.64);
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
.legal-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
  transform: translateY(-2px);
}

/* REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-d1 {
  transition-delay: 0.1s;
}
.reveal-d2 {
  transition-delay: 0.22s;
}
.reveal-d3 {
  transition-delay: 0.34s;
}
.reveal-d4 {
  transition-delay: 0.46s;
}

.cursor {
  animation: blink 1s infinite;
}
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

@media (max-width: 1100px) {
  .posts-container {
    max-width: 680px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  nav {
    padding: 1rem 1.5rem;
  }
  .hero-image-wrap {
    width: 65%;
    right: -5%;
    top: 18%;
  }
  .hero-content {
    padding: 0 1.5rem;
  }
  #intro,
  #topics {
    padding: 3rem 1.5rem;
  }
  .topics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .topic-card {
    min-height: 140px;
  }
  #about {
    grid-template-columns: 1fr;
  }
  .about-photo {
    min-height: 260px;
  }
  .about-content {
    padding: 2.5rem 1.5rem;
  }
  #blog {
    padding: 3.5rem 1rem 4rem;
  }
  .posts-container {
    padding: 0;
    grid-template-columns: 1fr;
  }
  .post-item {
    min-height: auto;
  }
  .post-body {
    min-height: 135px;
  }
  .post-cta {
    min-width: 104px;
    min-height: 42px;
    font-size: 0.72rem;
  }
  footer {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .topics-grid {
    grid-template-columns: 1fr;
  }
  #blog {
    padding-inline: 0.65rem;
  }
  .post-item {
    gap: 1rem;
    padding: 0.8rem;
    border-radius: 8px;
  }
  .post-media {
    border-radius: 7px;
  }
  .post-date {
    left: 0.75rem;
    bottom: 0.75rem;
    padding: 0.18rem 0.7rem 0.23rem;
    border-radius: 9px;
  }
  .post-body {
    min-height: 130px;
    padding: 0 0.25rem 0.25rem;
  }
  .post-title {
    font-size: clamp(1.35rem, 7vw, 1.8rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-image-wrap {
    opacity: 1;
    animation: none;
    filter: none;
    transform: none;
  }
}
