/* =========================== Presicce Pro Loco — custom.css (bordeaux edition) Palette più calda, font moderno, header/hero rifiniti =========================== */ /* ---- Google Font via @import (ok anche così; vedi nota 2 per enqueue migliore) ---- */
@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700&display=swap"); /* ---- Tokens / Palette ---- */
:root {
  /* Bordeaux → Rosso Presicce → Sabbie calde → Bianco caldo */
  --brand: #9c1120; /* bordeaux */
  --brand-strong: #c1121f; /* rosso Presicce */
  --brand-dark: #750b15; /* hover/focus scuro */
  --accent: #eadbd3; /* sabbia calda */
  --accent-2: #f8f4f2; /* sabbia chiarissima */
  --bg: #fbf8f6; /* bianco caldo (non puro) */
  --txt: #0f0f0f;
  --muted: #6b7280;
  --card: #ffffff;
  --border: #e7e2da;
  --radius: 16px;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.07);
  --max: 1200px;
  --navH: 74px;
} /* ---- Base ---- */
html {
  scroll-behavior: smooth;
}
body{
  background:
    radial-gradient(1200px 600px at 8% -8%, rgba(156,17,32,.05), transparent 55%),
    linear-gradient(180deg, #F6ECEF 0%, #FBF8F6 100%); /* bordeaux chiarissimo -> bianco caldo */
  color:var(--txt);
  font:16px/1.65 "Manrope", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
.container {
  max-width: var(--max);
  margin: auto;
  padding: clamp(16px, 3vw, 32px);
}
.muted {
  color: color-mix(in oklab, var(--muted) 85%, #000);
} /* Tag stile pill bordeaux con più opacità */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--brand) 16%, white);
  color: color-mix(in oklab, var(--brand) 85%, black);
  border: 1px solid color-mix(in oklab, var(--brand) 30%, var(--border));
} /* sezioni alternate per ritmo */
.section:nth-of-type(even) {
  background: var(--accent-2);
  border-radius: 22px;
}
/* Carte e alternanza (coerenti con lo sfondo) */
.container.section{
  background:#FFFEFD;
  border:1px solid var(--border);
  border-radius:20px;
  box-shadow:0 10px 28px rgba(0,0,0,.05);
}
.section:nth-of-type(even){
  background:#F5EAEE;  /* sabbia-rosa con un filo di bordeaux */
  border:1px solid var(--border);
  border-radius:20px;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .inside-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
} /* logo più grande */
.site-header .site-logo img {
  max-height: 64px;
  width: auto;
  transition: 0.2s;
}
@media (max-width: 768px) {
  .site-header .site-logo img {
    max-height: 46px;
  }
} /* Header “glass” in Home */
.page-template-page-home-presicce .site-header {
  background: color-mix(in oklab, var(--bg) 18%, transparent);
  backdrop-filter: blur(10px);
  box-shadow: none;
  border-bottom: 1px solid color-mix(in oklab, var(--border) 45%, transparent);
} /* Header solido altrove */
body:not(.page-template-page-home-presicce) .site-header {
  background: color-mix(in oklab, var(--bg) 90%, white);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid var(--border);
} /* Nascondi completamente i menu GP (come richiesto) */
.main-navigation,
.secondary-navigation {
  display: none !important;
} /* sicurezza: niente sidebar/menu pagine */
.sidebar,
.is-left-sidebar,
.widget_pages {
  display: none !important;
} /* ---- Hero (centrato, overlay più pieno, kicker meno trasparente) ---- */
.page-template-page-home-presicce .hero {
  position: relative;
  border-radius: 28px;
  color: #fff;
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  background: transparent;
  overflow: hidden;
  isolation: isolate;
}
.page-template-page-home-presicce .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.28),
      rgba(0, 0, 0, 0.45)
    ),
    /* rosso → scuro, più leggibile */
      var(--hero, url("/wp-content/uploads/home/hero.jpg")) center/cover
      no-repeat;
  opacity: 0.97;
}
.page-template-page-home-presicce .hero .content {
  padding: clamp(24px, 4vw, 54px);
  max-width: 880px;
  margin-inline: auto;
}
.page-template-page-home-presicce .kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 8px 12px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.page-template-page-home-presicce .pill {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #fff;
}
.page-template-page-home-presicce h1 {
  margin: 12px 0 10px;
  font-size: clamp(34px, 5.6vw, 60px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.28);
}
.page-template-page-home-presicce .hero p {
  margin: 0 0 20px;
  max-width: 60ch;
  opacity: 0.98;
  font-size: clamp(16px, 2.2vw, 20px);
  color: #f3f3f3;
}
.page-template-page-home-presicce .cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.page-template-page-home-presicce section[id] {
  scroll-margin-top: calc(var(--navH) + 12px);
} /* ---- Sezioni / Griglie / Cards ---- */
.page-template-page-home-presicce .section {
  padding: clamp(30px, 4vw, 60px) 0;
}
.page-template-page-home-presicce .section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.page-template-page-home-presicce .section h2 {
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: clamp(22px, 3.2vw, 32px);
  margin: 0;
  color: color-mix(in oklab, var(--txt) 92%, black);
}
.page-template-page-home-presicce .grid {
  display: grid;
  gap: 18px;
}
@media (min-width: 720px) {
  .page-template-page-home-presicce .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.page-template-page-home-presicce .card {
  background: var(--card);
  border: 1px solid color-mix(in oklab, var(--border) 70%, white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: 0.2s;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.page-template-page-home-presicce .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.1);
}
.page-template-page-home-presicce .cover {
  aspect-ratio: 16/9;
  object-fit: cover;
  width: 100%;
}
.page-template-page-home-presicce .body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.page-template-page-home-presicce .meta {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}
.page-template-page-home-presicce .meta .dot {
  width: 6px;
  height: 6px;
  background: var(--brand-strong);
  border-radius: 50%;
}
.page-template-page-home-presicce .card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
} /* Strip info */
.page-template-page-home-presicce .strip {
  background: var(--accent);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: center;
} /* ---- Bottoni ---- */
.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--brand-strong);
  color: #fff;
  border: 1px solid color-mix(in oklab, var(--brand-strong) 20%, var(--border));
  font-weight: 700;
  transition: 0.2s;
}
.btn:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}
.btn:focus-visible {
  outline: 3px solid color-mix(in oklab, var(--brand-strong) 30%, transparent);
  outline-offset: 2px;
}
.btn-outline {
  background: transparent;
  color: var(--brand-strong);
  border: 1px solid color-mix(in oklab, var(--brand-strong) 25%, var(--border));
}
.btn-outline:hover {
  background: color-mix(in oklab, var(--brand-strong) 10%, transparent);
} /* Anti-drag / anti-select */
img,
picture,
svg,
video {
  -webkit-user-drag: none;
  user-select: none;
} /* Overlay “trasparente” sopra le immagini delle card e in galleria */
img.cover,
.page-template-page-home-presicce .grid img,
.page-archivio-eventi .grid img {
  pointer-events: none; /* disattiva click destro direttamente sull'immagine */
}