@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&family=EB+Garamond:ital,wght@0,400;0,500;1,400&display=swap');

/* ═══════════════════════════════════════
   VARIABILI
═══════════════════════════════════════ */
:root {
  --orange:  #FF6B35;
  --pink:    #FF85A1;
  --yellow:  #FFD166;
  --teal:    #06D6A0;
  --purple:  #9B5DE5;
  --dark:    #2A1F14;
  --cream:   #FFFCF8;
  --border:  rgba(42,31,20,0.09);
  --text-mid:   #6B5B4B;
  --text-light: #A8957E;
}

/* ═══════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--dark);
  background-color: var(--cream);
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23f0c8b0' fill-opacity='0.45'%3E%3Ccircle cx='20' cy='20' r='4'/%3E%3Ccircle cx='30' cy='15' r='4'/%3E%3Ccircle cx='40' cy='20' r='4'/%3E%3Ccircle cx='30' cy='28' r='6'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px;
  line-height: 1.7;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

/* ═══════════════════════════════════════
   LANDING — schermo pieno, gatto in background
═══════════════════════════════════════ */
.landing {
  position: relative;
  height: 100vh;
  min-height: 560px;
  max-height: 860px;
  overflow: hidden;
  background: linear-gradient(135deg, #FF6B35 0%, #FF85A1 55%, #FFD166 100%);
}

.landing-paw {
  position: absolute;
  opacity: .09;
  font-size: 110px;
  user-select: none;
  pointer-events: none;
  z-index: 0;
}

/* nav in cima */
.landing-nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.5rem;
  z-index: 10;
  background: linear-gradient(to bottom, rgba(42,31,20,.35) 0%, transparent 100%);
}

.landing-nav-logo {
  font-family: 'Fredoka One', cursive;
  font-size: 1.15rem;
  color: white;
  text-decoration: none;
  text-shadow: 1px 2px 0 rgba(0,0,0,.1);
}

.landing-nav-links { display: flex; gap: 0; list-style: none; }

.landing-nav-links a {
  color: rgba(255,255,255,.9);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 500;
  padding: .4rem .9rem;
  border-radius: 20px;
  transition: background .18s;
}
.landing-nav-links a:hover { background: rgba(255,255,255,.2); }

/* gatto — sfondo che riempie tutta la landing */
.landing-img {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.landing-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 10%;  /* mostra testa + busto */
}

/* testo — centrato in basso con overlay */
.landing-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 5;
  padding: 5rem 2.5rem 2.8rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(to top,
    rgba(42,31,20,.80) 0%,
    rgba(42,31,20,.55) 35%,
    transparent 65%);
}

.landing-eyebrow {
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #FF6B35;
  background: rgba(255,255,255,.92);
  padding: .3rem .8rem;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: .9rem;
}

.landing-title {
  font-family: 'Fredoka One', cursive;
  font-size: 4.2rem;
  color:#FFD166;
  line-height: 1.1;
  text-shadow: 2px 4px 12px rgba(0,0,0,.4);
  margin-bottom: .65rem;
}

.landing-desc {
  font-size: .88rem;
  color: rgba(255,255,255,.95);
  font-weight: 400;
  line-height: 1.75;
  margin-bottom: 1.6rem;
  max-width: 480px;
  text-shadow: 0 1px 6px rgba(0,0,0,.3);
}

.cta-wrap { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }

.cta-btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-size: .84rem;
  padding: .6rem 1.3rem;
  border-radius: 12px;
  transition: transform .15s, box-shadow .15s;
  cursor: pointer;
  border: none;
  font-family: 'DM Sans', sans-serif;
  white-space: nowrap;
}

.cta-primary { background: white; color: var(--orange); box-shadow: 3px 3px 0 rgba(0,0,0,.15); }
.cta-primary:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 rgba(0,0,0,.15); }
.cta-secondary { background: rgba(255,255,255,.2); color: white; border: 2px solid rgba(255,255,255,.5); }
.cta-secondary:hover { background: rgba(255,255,255,.3); }

/* onda separatrice */
.wave-sep { width: 100%; display: block; height: 38px; margin: 0; line-height: 0; }

/* ═══════════════════════════════════════
   NEWSLETTER — protagonista della home
═══════════════════════════════════════ */
.newsletter-hero {
  padding: 4rem 2rem 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.newsletter-hero .nl-icon {
  font-size: 2.6rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 2px 6px rgba(255,107,53,.25));
}

.newsletter-hero .nl-title {
  font-family: 'Fredoka One', cursive;
  font-size: 2.2rem;
  color: var(--dark);
  margin-bottom: .7rem;
  line-height: 1.2;
}

.newsletter-hero .nl-subtitle {
  font-size: 1.05rem;
  color: var(--text-mid);
  font-weight: 300;
  line-height: 1.8;
  max-width: 480px;
  margin-bottom: 2.2rem;
}

.newsletter-hero .nl-form {
  display: flex;
  gap: .55rem;
  width: 100%;
  max-width: 440px;
  background: white;
  border: 1.5px solid rgba(255,107,53,.2);
  border-radius: 14px;
  padding: .45rem .45rem .45rem 1.1rem;
  box-shadow: 0 4px 24px rgba(255,107,53,.1);
}

.newsletter-hero .nl-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem;
  color: var(--dark);
  outline: none;
  min-width: 0;
}

.newsletter-hero .nl-input::placeholder { color: var(--text-light); }

.newsletter-hero .nl-btn {
  padding: .65rem 1.5rem;
  background: var(--orange);
  color: white;
  border: none;
  border-radius: 10px;
  font-family: 'Fredoka One', cursive;
  font-size: 1rem;
  letter-spacing: .3px;
  cursor: pointer;
  transition: background .2s, transform .15s;
  white-space: nowrap;
}
.newsletter-hero .nl-btn:hover { background: #e85c25; transform: scale(1.03); }

.newsletter-note {
  margin-top: 1rem;
  font-size: .75rem;
  color: var(--text-light);
}

/* ═══════════════════════════════════════
   NEWSLETTER (pagine interne — compatta)
═══════════════════════════════════════ */
.newsletter { padding: 2.5rem 0 3.5rem; }

.nl-box {
  background: linear-gradient(135deg, #FFF5F0 0%, #FFF0F4 100%);
  border: 1px solid rgba(255,107,53,.18);
  border-radius: 20px;
  padding: 2.4rem;
  text-align: center;
}

.nl-icon  { font-size: 1.8rem; margin-bottom: .7rem; }
.nl-title { font-family: 'Fredoka One', cursive; font-size: 1.5rem; color: var(--dark); margin-bottom: .45rem; }
.nl-desc  { font-size: .88rem; color: var(--text-mid); font-weight: 300; margin-bottom: 1.3rem; }

.nl-form  { display: flex; gap: .5rem; max-width: 360px; margin: 0 auto; }

.nl-input {
  flex: 1; padding: .62rem 1rem;
  border: 1px solid rgba(255,107,53,.25); border-radius: 10px;
  background: white; font-family: 'DM Sans', sans-serif;
  font-size: .88rem; color: var(--dark); outline: none;
}
.nl-input:focus { border-color: var(--orange); }

.nl-btn {
  padding: .62rem 1.3rem; background: var(--orange); color: white;
  border: none; border-radius: 10px; font-family: 'DM Sans', sans-serif;
  font-size: .88rem; font-weight: 500; cursor: pointer; transition: background .2s;
}
.nl-btn:hover { background: #D4522A; }

/* ═══════════════════════════════════════
   HEADER INTERNO (pagine non-home)
═══════════════════════════════════════ */
.site-header {
  background: linear-gradient(135deg, #FF6B35 0%, #FF85A1 55%, #FFD166 100%);
  padding: 0 2.5rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  min-height: 110px;
}

.header-paw { position: absolute; opacity: .1; font-size: 90px; user-select: none; pointer-events: none; }

.header-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem 0 1.3rem;
  position: relative;
  z-index: 1;
}

.site-title {
  font-family: 'Fredoka One', cursive;
  font-size: 1.9rem;
  color: #FFD166;
  text-shadow: 2px 3px 0 rgba(0,0,0,.12);
  text-decoration: none;
  display: block;
}

.site-tagline { font-size: .8rem; color: rgba(255,255,255,.85); font-weight: 300; margin-top: .12rem; }

.header-cat {
  height: 110px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  object-position: bottom center;
  display: block;
  position: relative;
  z-index: 1;
  align-self: flex-end;
}

.site-nav { background: var(--dark); display: flex; padding: 0 2.5rem; }

.site-nav a {
  color: var(--yellow);
  text-decoration: none;
  font-weight: 500;
  font-size: .82rem;
  padding: .7rem .95rem;
  display: block;
  letter-spacing: .3px;
  transition: background .2s, color .2s;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover  { background: var(--orange); color: white; }
.site-nav a.active { color: white; border-bottom-color: var(--orange); }

/* ═══════════════════════════════════════
   CONTAINER
═══════════════════════════════════════ */
.container { max-width: 720px; margin: 0 auto; padding: 0 2rem; }

/* ═══════════════════════════════════════
   CATEGORIE
═══════════════════════════════════════ */
.categories { padding: 2.8rem 0; }

.section-label {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 1.3rem;
}

.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }

.cat-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.3rem 1.1rem;
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
  text-decoration: none;
  color: var(--dark);
  display: block;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(42,31,20,.08); }
.cat-card.c-orange { border-top: 3px solid var(--orange); }
.cat-card.c-pink   { border-top: 3px solid var(--pink); }
.cat-card.c-teal   { border-top: 3px solid var(--teal); }

.cat-icon { font-size: 1.4rem; margin-bottom: .5rem; }
.cat-name { font-family: 'Fredoka One', cursive; font-size: 1rem; margin-bottom: .25rem; }
.cat-desc { font-size: .78rem; color: var(--text-light); font-weight: 300; line-height: 1.5; }

/* ═══════════════════════════════════════
   LISTA POST
═══════════════════════════════════════ */
.posts-section { padding: 0 0 3.5rem; }
.posts-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1.2rem; }
.view-all { font-size: .82rem; color: var(--orange); text-decoration: none; font-weight: 500; }
.view-all:hover { text-decoration: underline; }

.post-item {
  display: flex;
  gap: 1.4rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: opacity .2s;
  align-items: flex-start;
  text-decoration: none;
  color: var(--dark);
}
.post-item:hover { opacity: .7; }
.post-item:first-child { border-top: 1px solid var(--border); }

.pill {
  flex-shrink: 0;
  margin-top: .25rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: .22rem .75rem;
  border-radius: 20px;
  min-width: 76px;
  text-align: center;
  border: 2px solid var(--dark);
}
.pill-orange { background: var(--orange); color: white; }
.pill-pink   { background: var(--pink);   color: white; }
.pill-teal   { background: var(--teal);   color: var(--dark); }
.pill-purple { background: var(--purple); color: white; }
.pill-yellow { background: var(--yellow); color: var(--dark); }

.post-content { flex: 1; }
.post-title   { font-family: 'Fredoka One', cursive; font-size: 1.1rem; color: var(--dark); line-height: 1.35; margin-bottom: .38rem; }
.post-excerpt { font-size: .88rem; color: var(--text-mid); font-weight: 300; line-height: 1.7; margin-bottom: .45rem; }
.post-date    { font-size: .73rem; color: var(--text-light); }

/* ═══════════════════════════════════════
   PAGE HEADER
═══════════════════════════════════════ */
.page-head { padding: 2.5rem 0 1.5rem; }
.breadcrumb { font-size: .74rem; color: var(--text-light); margin-bottom: .75rem; }
.breadcrumb a { color: var(--orange); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.page-title { font-family: 'Fredoka One', cursive; font-size: 1.9rem; color: var(--dark); line-height: 1.2; margin-bottom: .45rem; }
.page-subtitle { font-size: .9rem; color: var(--text-mid); font-weight: 300; }

/* ═══════════════════════════════════════
   SINGLE POST
═══════════════════════════════════════ */
.single-head { padding: 2.5rem 0 1.5rem; border-bottom: 1px solid var(--border); }
.single-pill { display: inline-block; margin-bottom: .9rem; }
.single-title { font-family: 'Fredoka One', cursive; font-size: 2rem; line-height: 1.2; margin-bottom: .55rem; color: var(--dark); }
.single-meta  { font-size: .76rem; color: var(--text-light); }

.article-body {
  padding: 2rem 0 3.5rem;
  font-family: 'EB Garamond', serif;
  font-size: 1.18rem;
  line-height: 1.88;
  color: #2f2f2f;
}
.article-body p  { margin-bottom: 1.3rem; }
.article-body h2 { font-family: 'Fredoka One', cursive; font-size: 1.5rem; margin: 2rem 0 .8rem; color: var(--dark); }
.article-body h3 { font-family: 'Fredoka One', cursive; font-size: 1.2rem; margin: 1.5rem 0 .6rem; color: var(--dark); }
.article-body blockquote { border-left: 3px solid var(--orange); padding-left: 1.2rem; color: var(--text-mid); font-style: italic; margin: 1.5rem 0; }

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
.site-footer {
  background: linear-gradient(135deg, #FF6B35 0%, #FF85A1 55%, #FFD166 100%);
  border-top: 3px solid var(--dark);
  padding: 1.4rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .8rem;
}
.footer-logo  { font-family: 'Fredoka One', cursive; font-size: 1.05rem; color: white; text-shadow: 1px 2px 0 rgba(0,0,0,.12); }
.footer-copy  { font-size: .76rem; color: rgba(255,255,255,.75); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: .76rem; color: rgba(255,255,255,.85); text-decoration: none; }
.footer-links a:hover { color: white; }

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 768px) {
  .landing {
    height: 100dvh;
    min-height: 100dvh;
    max-height: none;
  }
  .landing-nav {
    flex-wrap: nowrap;
    padding: .7rem 1rem;
    gap: .5rem;
  }
  .landing-nav-logo { font-size: .95rem; white-space: nowrap; }
  .landing-nav-links { gap: 0; flex-shrink: 0; }
  .landing-nav-links a { font-size: .72rem; padding: .3rem .45rem; }
  .landing-text {
    padding: 3.5rem 1.4rem 2rem;
  }
  .landing-title { font-size: 2.4rem; }
  .cat-grid { grid-template-columns: 1fr; }
  .site-header { min-height: 80px; }
  .header-cat  { height: 80px; max-width: 90px; }
  .site-title  { font-size: 1.5rem; }
  .site-nav { padding: 0 1rem; overflow-x: auto; }
  .container { padding: 0 1.2rem; }
  .newsletter-hero { padding: 3rem 1.2rem 4rem; }
  .newsletter-hero .nl-title { font-size: 1.8rem; }
  .newsletter-hero .nl-form { flex-direction: column; padding: .8rem; }
  .newsletter-hero .nl-btn { width: 100%; text-align: center; }
  .site-footer { padding: 1.2rem; flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}


/* ═══════════════════════════════════════
   ABOUT PAGE
═══════════════════════════════════════ */
.about-hero {
  margin: 0 0 2.5rem;
  border-radius: 20px;
  overflow: hidden;
  max-height: 420px;
}

.about-hero img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center top;
}

.about-body {
  font-family: 'EB Garamond', serif;
  font-size: 1.15rem;
  line-height: 1.85;
  color: #2f2f2f;
  margin-bottom: 3rem;
}

.about-body p { margin-bottom: 1.2rem; }

.about-gallery { padding: 0 0 3.5rem; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-item {
  border-radius: 14px;
  overflow: hidden;
  background: white;
  border: 1px solid var(--border);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform .3s;
}

.gallery-item:hover img { transform: scale(1.04); }

.gallery-caption {
  font-size: .78rem;
  color: var(--text-light);
  padding: .5rem .8rem;
  text-align: center;
}

@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .about-hero img { height: 280px; }
}
