/* ============================================================
   PHILAFER — sistema di design
   ============================================================ */

:root {
  --bordeaux: #6B1E2E;
  --bordeaux-dark: #4A1220;
  --bordeaux-light: #8B2E42;
  --gold: #C9A84C;
  --gold-light: #E8C97A;
  --gold-pale: #F5E8C0;
  --cream: #FAF6EE;
  --cream-dark: #F0E8D4;
  --ink: #1A1210;
  --ink-light: #3D2B25;
  --gray: #8A7E78;
  --gray-light: #D4CCC4;
  --white: #FFFDF8;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --display: 'Cinzel', Georgia, serif;
  --sans: 'Jost', -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

/* ------------------------------------------------------------
   Base
   ------------------------------------------------------------ */

body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-light);
  background: var(--cream);
}

h1, h2, h3, h4,
.entry-title,
.woocommerce-loop-product__title {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.65rem); }

a { color: var(--bordeaux); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover, a:focus { color: var(--bordeaux-light); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.phil-wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ------------------------------------------------------------
   Home a larghezza piena
   GeneratePress usa flex su .site-content per contenuto+sidebar:
   sulla home le sezioni devono impilarsi, non affiancarsi.
   ------------------------------------------------------------ */

body.philafer-full .site-content { display: block; }
body.philafer-full .content-area,
body.philafer-full #primary {
  width: 100%;
  max-width: none;
  padding: 0;
  float: none;
}
body.philafer-full .site-main { margin: 0; }
body.philafer-full .inside-article,
body.philafer-full .entry-content { margin: 0; padding: 0; }
body.philafer-full .entry-header,
body.philafer-full .page-header { display: none; }

/* GeneratePress limita #page a larghezza fissa: sulla home
   le sezioni devono occupare tutta la finestra. L'ID serve
   per avere la precedenza sulle regole del tema padre. */
body.philafer-full #page,
body.philafer-full .site.grid-container,
body.philafer-full .container.grid-container {
  max-width: 100%;
  width: 100%;
  padding: 0;
  margin: 0;
}
body.philafer-full .site-content { padding: 0; }

/* Filetto decorativo con rombo centrale, ripreso dal marchio */
.phil-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin: 0 auto 2.5rem;
  max-width: 14rem;
  color: var(--gold);
}
.phil-rule::before,
.phil-rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.45;
}
.phil-rule i {
  width: 7px; height: 7px;
  transform: rotate(45deg);
  background: currentColor;
}

/* ------------------------------------------------------------
   Testata — due fasce: logo e azioni sopra, menu sotto
   ------------------------------------------------------------ */

.phil-topbar {
  background: var(--bordeaux-dark);
  color: rgba(245,232,192,.85);
  font-size: .72rem;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.phil-topbar .phil-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .6rem 1.4rem;
  padding-block: .62rem;
  flex-wrap: wrap;
}
/* senza i link a destra il messaggio sta centrato */
.phil-topbar--solo { justify-content: center; text-align: center; }
.phil-topbar a { color: inherit; text-decoration: none; }
.phil-topbar a:hover { color: var(--gold-light); }

.phil-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--gray-light);
  transition: box-shadow .2s ease;
}
/* la barra di amministrazione di WordPress occupa i primi pixel */
body.admin-bar .phil-head { top: 32px; }
@media (max-width: 782px) { body.admin-bar .phil-head { top: 46px; } }

/* scorrendo si compatta e stacca un'ombra */
.phil-head.is-stuck { box-shadow: 0 6px 20px rgba(26,18,16,.07); }
.phil-head.is-stuck .phil-head__top-inner { padding-block: .8rem; }
.phil-head.is-stuck .phil-logo__img { height: clamp(34px, 5vw, 42px); }
.phil-head.is-stuck .phil-logo__sub { display: none; }
.phil-head.is-stuck .phil-logo__mark { height: 40px; }
.phil-head.is-stuck .phil-nav__list a { padding-block: .7rem; }
.phil-head__top-inner,
.phil-logo__mark,
.phil-logo__img { transition: padding .2s ease, height .2s ease; }

.phil-head__top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.3rem;
}

.phil-logo { text-decoration: none; line-height: 1; display: flex; align-items: center; gap: .85rem; }
.phil-logo--img { display: block; }

/* monogramma a sinistra della scritta: una piccola targa */
.phil-logo__mark {
  display: block;
  flex: none;
  width: auto;
  height: clamp(44px, 6vw, 58px);
  border-radius: 2px;
  box-shadow: 0 2px 6px rgba(26,18,16,.18);
}
.phil-logo__testo { display: block; }

/* logo caricato: lo stemma parla da solo, il sottotitolo lo accompagna */
.phil-logo__img {
  display: block;
  width: auto;
  height: clamp(42px, 6.5vw, 58px);
}
.phil-logo--img .phil-logo__sub {
  margin-top: .5rem;
  margin-left: .22rem;
  letter-spacing: .26em;
}
.phil-logo b {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.3rem, 3.4vw, 1.85rem);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--bordeaux);
}
.phil-logo__sub {
  display: block;
  font-size: .56rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: .42rem;
}

.phil-actions { display: flex; align-items: center; gap: 1.5rem; }
.phil-cart {
  position: relative;
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.phil-cart:hover { color: var(--bordeaux); }
.phil-cart i {
  position: absolute;
  top: -.72em; right: -1.15em;
  display: grid;
  place-items: center;
  min-width: 1.5em; height: 1.5em;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  font-style: normal;
  font-size: .62rem;
  letter-spacing: 0;
}
.phil-btn--sm {
  padding: .62em 1.4em;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* fascia del menu */
.phil-nav { border-top: 1px solid var(--cream-dark); }
.phil-nav__list {
  display: flex;
  justify-content: center;
  gap: clamp(.9rem, 2.4vw, 2.4rem);
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.phil-nav__list a {
  display: block;
  font-size: .76rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding: .95rem 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.phil-nav__list a:hover,
.phil-nav__list .current-menu-item > a {
  color: var(--bordeaux);
  border-bottom-color: var(--gold);
}

/* menu a tendina */
.phil-nav__list li { position: relative; }
.phil-has-sub > a::after {
  content: '';
  display: inline-block;
  width: 5px; height: 5px;
  margin-left: .55em;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.phil-sub {
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  min-width: 15rem;
  margin: 0; padding: .5rem 0;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-top: 2px solid var(--gold);
  box-shadow: 0 10px 28px rgba(26,18,16,.09);
  opacity: 0;
  visibility: hidden;
  transition: opacity .16s ease;
}
.phil-has-sub:hover > .phil-sub,
.phil-has-sub:focus-within > .phil-sub { opacity: 1; visibility: visible; }
.phil-sub a {
  padding: .6rem 1.3rem;
  border-bottom: 0;
  letter-spacing: .1em;
  text-transform: none;
  font-size: .85rem;
}
.phil-sub a:hover { background: var(--cream); color: var(--bordeaux); }

/* panino, nascosto da schermo largo */
.phil-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  padding: 0;
  border: 1px solid var(--gray-light);
  background: transparent;
  cursor: pointer;
}
.phil-burger span {
  display: block;
  width: 20px; height: 1px;
  margin-inline: auto;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}
.phil-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.phil-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.phil-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 480px) {
  .phil-logo { gap: .6rem; }
  .phil-logo__mark { height: 40px; }
  .phil-logo__sub { display: none; }
}

@media (max-width: 900px) {
  .phil-topbar .phil-wrap { justify-content: center; text-align: center; }
  .phil-burger { display: flex; }
  .phil-head__top-inner { gap: 1rem; }
  .phil-logo { margin-right: auto; margin-left: .4rem; }
  .phil-nav { display: none; }
  .phil-nav.is-open { display: block; }
  .phil-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .phil-nav__list li + li { border-top: 1px solid var(--cream-dark); }
  .phil-nav__list a { padding: .95rem .2rem; white-space: normal; border-bottom: 0; }
  /* su mobile il sottomenu si apre a scalino, senza tendina */
  .phil-sub {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    min-width: 0;
    border: 0;
    box-shadow: none;
    background: var(--cream);
    padding: 0;
  }
  .phil-sub li + li { border-top: 1px solid var(--cream-dark); }
  .phil-sub a { padding-left: 1.4rem; }
  .phil-has-sub > a::after { float: right; margin-top: .55em; }
}

@media (max-width: 560px) {
  .phil-topbar { font-size: .64rem; }
  .phil-topbar > .phil-wrap:not(.phil-topbar--solo) > span:first-child { display: none; }
  .phil-topbar--solo { letter-spacing: .08em; }
  .phil-cart { display: none; }
  .phil-actions { gap: .8rem; }
}

/* ------------------------------------------------------------
   Pulsanti
   ------------------------------------------------------------ */

.phil-btn,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt {
  display: inline-block;
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  padding: 0.85em 2em;
  border-radius: 0;
  border: 1px solid var(--bordeaux);
  background: var(--bordeaux);
  color: var(--white);
  transition: background .2s ease, color .2s ease;
}
.phil-btn:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
  background: var(--bordeaux-dark);
  border-color: var(--bordeaux-dark);
  color: var(--white);
}

.phil-btn--gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}
.phil-btn--gold:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--ink); }

.phil-btn--ghost {
  background: transparent;
  color: var(--bordeaux);
}
.phil-btn--ghost:hover { background: var(--bordeaux); color: var(--white); }

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */

.phil-hero {
  position: relative;
  background: var(--bordeaux-dark);
  background-image:
    radial-gradient(circle at 22% 30%, rgba(139,46,66,.85), transparent 55%),
    radial-gradient(circle at 78% 70%, rgba(74,18,32,.9), transparent 60%);
  color: var(--cream);
  overflow: hidden;
  padding-block: clamp(4rem, 10vw, 7.5rem) clamp(2.5rem, 5vw, 4rem);
}
/* timbro circolare sfumato: il tondo di un annullo postale */
.phil-hero::before {
  content: '';
  position: absolute;
  right: -6vw; top: 50%;
  width: min(46vw, 620px); aspect-ratio: 1;
  transform: translateY(-50%);
  border: 1px solid rgba(201,168,76,.16);
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 18px rgba(201,168,76,.05),
    inset 0 0 0 19px rgba(201,168,76,.13);
  pointer-events: none;
}
.phil-hero .phil-wrap { position: relative; z-index: 1; }

.phil-hero__text { max-width: 44rem; }

.phil-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: .9rem;
  font-size: .72rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.8rem;
}
.phil-hero__eyebrow i { width: 2.4rem; height: 1px; background: currentColor; }

.phil-hero h1 { color: var(--cream); max-width: 16ch; margin-bottom: 1.5rem; }
.phil-hero h1 em { font-style: italic; color: var(--gold-light); }

.phil-hero p {
  max-width: 46ch;
  font-size: 1.04rem;
  color: rgba(250,246,238,.8);
  margin-bottom: 2.4rem;
}
.phil-hero__ctas { display: flex; flex-wrap: wrap; gap: 1rem; }
.phil-hero__ctas .phil-btn--ghost { color: var(--gold-light); border-color: rgba(201,168,76,.55); }
.phil-hero__ctas .phil-btn--ghost:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }

.phil-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: clamp(1.6rem, 4.5vw, 3.6rem);
  margin-top: clamp(3rem, 8vw, 6rem);
  padding-top: 2rem;
  border-top: 1px solid rgba(201,168,76,.22);
  text-align: right;
}
.phil-stats b {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 400;
  color: var(--gold-light);
  line-height: 1;
}
.phil-stats span {
  display: block;
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(250,246,238,.55);
  margin-top: .5rem;
}

/* fascia delle garanzie sotto l'hero */
.phil-band { background: var(--bordeaux); color: rgba(245,232,192,.9); }
.phil-band .phil-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.2rem, 5vw, 4rem);
  padding-block: 1.05rem;
  font-size: .73rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.phil-band span { display: flex; align-items: center; gap: .7rem; }
.phil-band span + span::before {
  content: '';
  width: 5px; height: 5px;
  transform: rotate(45deg);
  background: var(--gold);
  margin-right: .3rem;
}

/* ------------------------------------------------------------
   Sezioni
   ------------------------------------------------------------ */

.phil-section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.phil-section--cream { background: var(--cream); }
.phil-section--white { background: var(--white); }

.phil-section__head { text-align: center; margin-bottom: 3rem; }
.phil-section__head p {
  max-width: 56ch;
  margin-inline: auto;
  color: var(--gray);
}

/* ------------------------------------------------------------
   Griglia delle aree — il bento della home
   ------------------------------------------------------------ */

.phil-areas {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--gray-light);
  border: 1px solid var(--gray-light);
}
@media (max-width: 900px) { .phil-areas { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .phil-areas { grid-template-columns: 1fr; } }

.phil-area {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 230px;
  padding: 1.6rem;
  background: var(--white);
  text-decoration: none;
  overflow: hidden;
  transition: background .25s ease;
}
.phil-area:hover { background: var(--cream-dark); }

.phil-area__img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.42;
  transition: opacity .25s ease, transform .5s ease;
}
/* velo chiaro dal basso: i conteggi restano leggibili sopra qualsiasi francobollo */
.phil-area::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--white) 8%, rgba(255,253,248,.72) 48%, rgba(255,253,248,.15) 100%);
}
.phil-area:hover .phil-area__img { opacity: 0.55; transform: scale(1.04); }

.phil-area__count {
  position: relative;
  z-index: 1;
  font-family: var(--serif);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--gold);
}
.phil-area__name {
  position: relative;
  z-index: 1;
  font-family: var(--display);
  font-size: 1.02rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin-top: 0.55rem;
}
.phil-area__go {
  position: relative;
  z-index: 1;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  color: var(--bordeaux);
  margin-top: 0.7rem;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .25s ease, transform .25s ease;
}
.phil-area:hover .phil-area__go,
.phil-area:focus-visible .phil-area__go { opacity: 1; transform: none; }

/* ------------------------------------------------------------
   Ricerca sopra il catalogo
   ------------------------------------------------------------ */

.phil-search {
  display: flex;
  gap: 0;
  margin: 0 0 2.2rem;
  border: 1px solid var(--gray-light);
  background: var(--white);
}
.phil-search input[type="search"] {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: .95rem 1.2rem;
  font-family: var(--sans);
  font-size: .95rem;
  color: var(--ink);
}
.phil-search input[type="search"]:focus { outline: none; }
.phil-search:focus-within { border-color: var(--gold); }
.phil-search input::placeholder { color: var(--gray); }
.phil-search button {
  flex-shrink: 0;
  border: 0;
  background: var(--bordeaux);
  color: var(--white);
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 0 2rem;
  cursor: pointer;
}
.phil-search button:hover { background: var(--bordeaux-dark); }

.phil-vuoto {
  max-width: 44ch;
  margin: 1rem auto 4rem;
  text-align: center;
  color: var(--gray);
  font-size: 1.02rem;
  line-height: 1.7;
}

.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ------------------------------------------------------------
   Catalogo e schede prodotto in griglia
   ------------------------------------------------------------ */

.woocommerce ul.products li.product {
  background: var(--white);
  border: 1px solid var(--gray-light);
  padding: 0;
  text-align: left;
  transition: border-color .2s ease;
}
.woocommerce ul.products li.product:hover { border-color: var(--gold); }

.woocommerce ul.products li.product a img {
  margin: 0;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: var(--cream);
  padding: 1.1rem;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 1.02rem;
  line-height: 1.3;
  padding: 0 1.1rem;
  margin-bottom: .4rem;
}
.woocommerce ul.products li.product .price {
  display: block;
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--bordeaux);
  padding: 0 1.1rem 1.1rem;
}
.woocommerce ul.products li.product .price del { color: var(--gray); font-size: .85em; }
.woocommerce ul.products li.product .price ins { text-decoration: none; }
.woocommerce ul.products li.product .button {
  display: block;
  margin: 0 1.1rem 1.1rem;
  text-align: center;
  padding: .8em .6em;
  font-size: .76rem;
  letter-spacing: .06em;
}

/* riga meta ricavata dai campi filatelici */
.phil-cardmeta {
  font-size: .74rem;
  letter-spacing: .1em;
  color: var(--gray);
  padding: 1rem 1.1rem 0;
}
.phil-cardmeta b { color: var(--bordeaux); font-weight: 400; }

.woocommerce span.onsale,
.phil-badge {
  background: var(--gold);
  color: var(--ink);
  font-family: var(--sans);
  font-size: .68rem;
  letter-spacing: .12em;
  font-weight: 400;
  border-radius: 0;
  padding: .3em 1em;
  min-height: 0;
  min-width: 0;
  line-height: 1.7;
}

/* ------------------------------------------------------------
   Scheda prodotto
   ------------------------------------------------------------ */

.woocommerce div.product .product_title {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin-bottom: .8rem;
}
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  font-family: var(--serif);
  font-size: 2.1rem;
  color: var(--bordeaux);
}
.woocommerce div.product .woocommerce-product-gallery {
  background: var(--white);
  border: 1px solid var(--gray-light);
  padding: 1.4rem;
}

/* scheda filatelica: solo i campi valorizzati */
.phil-specs {
  margin: 1.8rem 0;
  border-top: 1px solid var(--gray-light);
}
.phil-specs div {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: .72rem 0;
  border-bottom: 1px solid var(--gray-light);
}
.phil-specs dt {
  font-size: .78rem;
  letter-spacing: .12em;
  color: var(--gray);
  margin: 0;
}
.phil-specs dd {
  margin: 0;
  text-align: right;
  color: var(--ink);
  font-weight: 400;
}
.phil-specs .phil-specs__hl dd {
  font-family: var(--serif);
  font-size: 1.24rem;
  color: var(--bordeaux);
}

.phil-unique {
  display: inline-block;
  margin-bottom: 1.2rem;
  padding: .45em 1.1em;
  border: 1px solid var(--gold);
  background: var(--gold-pale);
  color: var(--ink);
  font-size: .78rem;
  letter-spacing: .1em;
}

.woocommerce div.product .woocommerce-tabs ul.tabs { padding-left: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { border-color: var(--gray-light); }
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin: 0 2rem 0 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  font-family: var(--sans);
  font-size: .9rem;
  letter-spacing: .08em;
  color: var(--gray);
  padding: .8rem 0;
  border-bottom: 2px solid transparent;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: var(--bordeaux);
  border-bottom-color: var(--gold);
}

/* ------------------------------------------------------------
   Pagina Chi siamo
   ------------------------------------------------------------ */

.phil-hero--corto { padding-block: clamp(3rem, 7vw, 5rem); }
.phil-hero--corto h1 { margin-bottom: 0; max-width: 24ch; }
.phil-hero--corto::before { right: -14vw; width: min(36vw, 420px); opacity: .55; }

.phil-prosa { max-width: 46rem; }
.phil-prosa h2 { text-align: center; margin-bottom: 1.8rem; }

.phil-lead {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  line-height: 1.5;
  color: var(--ink);
  text-align: center;
}

.phil-siamo { list-style: none; margin: 0 0 2.4rem; padding: 0; }
.phil-siamo li {
  padding: .85rem 0;
  border-bottom: 1px solid var(--gray-light);
  font-size: 1.02rem;
}
.phil-siamo li:first-child { border-top: 1px solid var(--gray-light); }
.phil-siamo b { font-weight: 400; color: var(--bordeaux); }

.phil-chiusa {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  line-height: 1.45;
  text-align: center;
  color: var(--ink);
  margin: 0;
}
.phil-chiusa em { color: var(--gold); font-style: italic; }

/* cronologia */
.phil-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  background: var(--gray-light);
  border: 1px solid var(--gray-light);
}
.phil-timeline li {
  background: var(--white);
  padding: 1.8rem 1.4rem;
}
.phil-timeline b {
  display: block;
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
  margin-bottom: .7rem;
}
.phil-timeline span { display: block; color: var(--gray); font-size: .95rem; line-height: 1.5; }

/* contatti su due colonne */
.phil-contatti {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(2rem, 6vw, 4.5rem);
}
.phil-contatti h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-bottom: 1.2rem; }
.phil-contatti address { font-style: normal; line-height: 1.8; margin-bottom: 1.2rem; }
.phil-contatti p { margin-bottom: 1.1rem; }
.phil-muted { color: var(--gray); font-size: .9rem; }

.phil-rule--sx { margin: 0 0 1.4rem; justify-content: flex-start; max-width: 5rem; }
.phil-rule--sx::before { display: none; }

/* ------------------------------------------------------------
   Pagina Contatti
   ------------------------------------------------------------ */

.phil-contact {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 2fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.phil-contact h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 1rem; }
.phil-contact address { font-style: normal; line-height: 1.8; margin-bottom: 1.6rem; }

.phil-recapiti { margin: 0 0 2rem; }
.phil-recapiti div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem 0;
  border-bottom: 1px solid var(--gray-light);
}
.phil-recapiti div:first-child { border-top: 1px solid var(--gray-light); }
.phil-recapiti dt {
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gray);
  align-self: center;
}
.phil-recapiti dd { margin: 0; text-align: right; color: var(--ink); overflow-wrap: anywhere; }

/* mappa: copertina finché non si accetta il caricamento */
.phil-map {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--cream-dark);
  border: 1px solid var(--gray-light);
  overflow: hidden;
}
.phil-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.phil-map__cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  text-align: center;
  /* reticolo leggero, evoca una carta topografica */
  background-image:
    linear-gradient(rgba(201,168,76,.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,.14) 1px, transparent 1px);
  background-size: 34px 34px;
}
.phil-map__cover p { margin: 0; font-family: var(--serif); font-size: 1.25rem; line-height: 1.4; color: var(--ink); }
.phil-map__cover p b { font-weight: 600; }
.phil-map__cover small { max-width: 34ch; font-size: .78rem; color: var(--gray); line-height: 1.5; }

.phil-map__pin {
  width: 22px; height: 22px;
  background: var(--bordeaux);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 0 0 6px rgba(107,30,46,.15);
}

/* rassicurazioni d'acquisto */
.phil-garanzie {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  background: var(--gray-light);
  border: 1px solid var(--gray-light);
}
.phil-garanzie > div { background: var(--white); padding: 1.8rem 1.6rem; }
.phil-garanzie h3 {
  font-family: var(--display);
  font-size: .9rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--bordeaux);
  margin: 0 0 .9rem;
}
.phil-garanzie p { margin: 0; }

.phil-pay { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.phil-pay li {
  font-size: .8rem;
  letter-spacing: .04em;
  padding: .3em .8em;
  border: 1px solid var(--gold);
  color: var(--ink-light);
  white-space: nowrap;   /* l'etichetta non va mai a capo a metà */
}

.phil-editor { margin-top: 1rem; }

@media (max-width: 900px) {
  .phil-contact { grid-template-columns: 1fr; }
  .phil-map { aspect-ratio: 1 / 1; }
}

/* ------------------------------------------------------------
   Programma Phedeltà
   ------------------------------------------------------------ */

/* riquadro di richiamo (pagina Contatti) */
.phil-phedelta {
  position: relative;
  margin-top: clamp(2rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(1.8rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(2rem, 5vw, 3.4rem);
  background: var(--bordeaux-dark);
  background-image: radial-gradient(circle at 15% 20%, rgba(139,46,66,.85), transparent 60%);
  color: rgba(250,246,238,.82);
  overflow: hidden;
}
.phil-phedelta::after {            /* cornice interna oro, come un passepartout */
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(201,168,76,.3);
  pointer-events: none;
}
.phil-phedelta .phil-hero__eyebrow { margin-bottom: 1rem; }
.phil-phedelta h2 { color: var(--cream); margin: 0 0 1rem; }
.phil-phedelta h2 em { color: var(--gold-light); font-style: italic; }
.phil-phedelta p { margin: 0 0 1.6rem; max-width: 44ch; }
.phil-phedelta .phil-btn { position: relative; z-index: 1; }

/* i tre livelli */
.phil-livelli {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: center;
}
.phil-livello b {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: .85rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-top: .9rem;
}
.phil-livello small { display: block; font-size: .8rem; line-height: 1.5; margin-top: .3rem; }

.phil-medaglia {
  display: grid;
  place-items: center;
  width: clamp(64px, 8vw, 88px);
  aspect-ratio: 1;
  margin-inline: auto;
  border-radius: 50%;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 600;
  color: var(--ink);
  box-shadow: inset 0 0 0 4px rgba(255,255,255,.35), inset 0 0 0 5px rgba(0,0,0,.12), 0 6px 16px rgba(0,0,0,.25);
}
.phil-livello--argento .phil-medaglia { background: radial-gradient(circle at 35% 30%, #F4F4F2, #B9B9B6 55%, #8E8E8B); }
.phil-livello--oro     .phil-medaglia { background: radial-gradient(circle at 35% 30%, #F6E29A, var(--gold) 55%, #9C7E2E); }
.phil-livello--platino .phil-medaglia { background: radial-gradient(circle at 35% 30%, #FFFFFF, #DCDDE0 55%, #A9ADB3); }

/* stessi livelli su fondo chiaro (pagina del regolamento) */
.phil-livelli--chiaro { margin: 2.4rem 0; text-align: left; gap: 1px; background: var(--gray-light); border: 1px solid var(--gray-light); }
.phil-livelli--chiaro .phil-livello { background: var(--white); padding: 1.8rem 1.4rem; text-align: center; }
.phil-livelli--chiaro .phil-livello b { color: var(--bordeaux); }
.phil-livelli--chiaro .phil-livello small { font-size: .9rem; color: var(--ink-light); margin-top: .6rem; }
.phil-livelli--chiaro strong { font-weight: 500; color: var(--ink); }

.phil-avviso {
  margin: 0 0 3rem;
  padding: 1rem 1.3rem;
  border-left: 3px solid var(--bordeaux);
  background: var(--cream);
  color: var(--ink);
}
.phil-avviso b { font-weight: 500; color: var(--bordeaux); }

.phil-regole { margin: 0 0 2.4rem; padding-left: 1.4rem; }
.phil-regole li { padding: .5rem 0 .5rem .4rem; }
.phil-regole li::marker { font-family: var(--serif); color: var(--gold); font-size: 1.15rem; }
.phil-regole b { font-weight: 500; color: var(--ink); }

.phil-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.12rem;
  line-height: 1.6;
  color: var(--ink-light);
  border-top: 1px solid var(--gray-light);
  padding-top: 1.6rem;
  margin-bottom: 2rem;
}
.phil-note p { margin: 0; }
.phil-azioni { display: flex; flex-wrap: wrap; gap: 1rem; margin: 0; }

@media (max-width: 900px) {
  .phil-phedelta { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .phil-livelli--chiaro { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .phil-phedelta .phil-livelli { gap: .5rem; }
  .phil-phedelta .phil-livello small { font-size: .72rem; }
}

/* ------------------------------------------------------------
   Chi siamo: il sito negli anni
   ------------------------------------------------------------ */

.phil-storia {
  list-style: none;
  margin: clamp(2.4rem, 5vw, 3.6rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1.4rem, 3vw, 2.4rem);
}
.phil-storia figure { margin: 0; }
.phil-storia img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--white);
  padding: 6px;
  border: 1px solid var(--gray-light);
  box-shadow: 0 10px 24px rgba(26,18,16,.12);
}
.phil-storia figcaption { margin-top: 1rem; text-align: center; }

/* l'anno sopra una barra sfumata, come nel vecchio materiale */
.phil-storia figcaption b {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--bordeaux);
  padding-bottom: .5rem;
  border-bottom: 3px solid;
  border-image: linear-gradient(90deg, var(--gray-light), var(--gold), var(--gray-light)) 1;
}
.phil-storia figcaption span {
  display: block;
  margin-top: .6rem;
  font-size: .88rem;
  line-height: 1.5;
  color: var(--ink-light);
}

/* ------------------------------------------------------------
   Prodotti correlati
   ------------------------------------------------------------ */

.phil-correlati { margin-top: clamp(2.6rem, 6vw, 4rem); }
.phil-correlati > h2 { text-align: center; margin-bottom: 2rem; }

.phil-correlati__tutti { margin: 1.6rem 0 0; text-align: center; }
.phil-correlati__tutti a {
  font-family: var(--display);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bordeaux);
  border-bottom: 1px solid var(--gold);
  padding-bottom: .3rem;
}
.phil-correlati__tutti a:hover { color: var(--bordeaux-light); }

/* nessun altro pezzo nella categoria */
.phil-correlati--vuoto { text-align: center; }
.phil-correlati__nota {
  max-width: 44ch;
  margin: 0 auto 1.6rem;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  line-height: 1.5;
  color: var(--ink);
}
.phil-correlati__nota b { font-weight: 600; color: var(--bordeaux); }
.phil-correlati--vuoto .phil-azioni { justify-content: center; }

/* ------------------------------------------------------------
   Phedeltà: stelle e pannello dell'area riservata
   ------------------------------------------------------------ */

.phil-stelle { color: var(--gold); letter-spacing: .12em; white-space: nowrap; }

/* pastiglia con stelle e livello, accanto al nome del cliente */
.phil-badge {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  padding: .2em .8em;
  border: 1px solid var(--gold);
  border-radius: 2em;
  background: var(--cream);
  color: var(--bordeaux);
  line-height: 1.7;
}
.phil-badge__nome {
  font-family: var(--display);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.phil-badge--oro     { background: rgba(201,168,76,.14); }
.phil-badge--platino { background: rgba(26,18,16,.06); border-color: var(--gray); }

.phil-intestazione-cliente {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .7rem;
  margin: 0 0 1.4rem;
}
.phil-intestazione-cliente__nome {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  color: var(--ink);
}
.phil-livello .phil-stelle { display: block; margin-top: .6rem; font-size: 1rem; }

.phil-fedelta {
  margin: 0 0 2.4rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  background: var(--bordeaux-dark);
  background-image: radial-gradient(circle at 12% 18%, rgba(139,46,66,.85), transparent 62%);
  color: rgba(250,246,238,.82);
  position: relative;
}
.phil-fedelta::after {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(201,168,76,.28);
  pointer-events: none;
}
.phil-fedelta > * { position: relative; z-index: 1; }

.phil-fedelta__testa {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.phil-fedelta__occhiello {
  margin: 0 0 .4rem;
  font-family: var(--display);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
}
.phil-fedelta__livello {
  margin: 0;
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--cream);
}
.phil-fedelta__livello .phil-stelle { font-size: 1.2em; color: var(--gold-light); }

.phil-fedelta__sconto { margin: 0; text-align: right; line-height: 1.2; }
.phil-fedelta__sconto b {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--gold-light);
}
.phil-fedelta__sconto small { font-size: .74rem; letter-spacing: .06em; }

.phil-fedelta__spesa { margin: 0 0 .8rem; font-size: .95rem; }
.phil-fedelta__spesa b, .phil-fedelta__manca b { color: var(--cream); }
.phil-fedelta__spesa .woocommerce-Price-amount { color: var(--cream); }

.phil-fedelta__barra {
  height: 8px;
  background: rgba(250,246,238,.16);
  overflow: hidden;
  margin-bottom: .7rem;
}
.phil-fedelta__barra span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}
.phil-fedelta__manca { margin: 0; font-size: .92rem; }

.phil-fedelta__livelli {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(201,168,76,.28);
  text-align: center;
}
.phil-fedelta__livelli li {
  background: rgba(26,18,16,.35);
  padding: 1rem .6rem;
  opacity: .55;
}
.phil-fedelta__livelli li.is-raggiunto { opacity: 1; background: rgba(201,168,76,.12); }
.phil-fedelta__livelli b {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin: .4rem 0 .2rem;
}
.phil-fedelta__livelli small { font-size: .78rem; }
.phil-fedelta__livelli .woocommerce-Price-amount { color: inherit; }

.phil-fedelta__avviso {
  margin: 0 0 1rem;
  padding: .6rem .9rem;
  border-left: 2px solid var(--gold);
  background: rgba(201,168,76,.12);
  font-size: .9rem;
  color: var(--cream);
}
.phil-fedelta__nota { margin: 1.4rem 0 0; font-size: .82rem; line-height: 1.6; color: rgba(250,246,238,.62); }
.phil-fedelta__nota a { color: var(--gold-light); }

@media (max-width: 520px) {
  .phil-fedelta__livelli { grid-template-columns: 1fr; }
  .phil-fedelta__sconto { text-align: left; }
}

/* ------------------------------------------------------------
   Spedizioni e pagamenti
   ------------------------------------------------------------ */

.phil-condizioni { list-style: none; margin: 0; padding: 0; }
.phil-condizioni li {
  position: relative;
  padding: .9rem 0 .9rem 1.6rem;
  border-bottom: 1px solid var(--gray-light);
}
.phil-condizioni li:first-child { border-top: 1px solid var(--gray-light); }
.phil-condizioni li::before {
  content: '';
  position: absolute;
  left: 0; top: 1.5em;
  width: 6px; height: 6px;
  transform: rotate(45deg);
  background: var(--gold);
}

/* metodi di pagamento, numerati */
.phil-metodi {
  list-style: none;
  counter-reset: metodo;
  margin: 0 0 2.6rem;
  padding: 0;
}
.phil-metodi li {
  counter-increment: metodo;
  position: relative;
  padding: 1rem 0 1rem 3rem;
  border-bottom: 1px solid var(--gray-light);
}
.phil-metodi li:first-child { border-top: 1px solid var(--gray-light); }
.phil-metodi li::before {
  content: counter(metodo);
  position: absolute;
  left: 0; top: .95rem;
  display: grid;
  place-items: center;
  width: 2rem; height: 2rem;
  border: 1px solid var(--gold);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--bordeaux);
}
.phil-metodi b { display: block; font-weight: 500; color: var(--ink); }
.phil-metodi small {
  display: block;
  margin-top: .3rem;
  font-size: .85rem;
  color: var(--gray);
  overflow-wrap: anywhere;
}

/* tariffe di spedizione */
.phil-tariffe {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.6rem;
}
.phil-tariffe th,
.phil-tariffe td {
  padding: .85rem .2rem;
  border-bottom: 1px solid var(--gray-light);
  text-align: left;
  font-weight: 400;
}
.phil-tariffe tbody:first-of-type tr:first-child th { border-top: 1px solid var(--gray-light); }

/* intestazione di zona */
.phil-tariffe__zona th {
  padding-top: 1.6rem;
  border-bottom: 1px solid var(--gold);
  font-family: var(--display);
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--bordeaux);
}
.phil-tariffe tbody:first-of-type .phil-tariffe__zona th { padding-top: 0; }
.phil-tariffe td {
  text-align: right;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--bordeaux);
  white-space: nowrap;
}

.phil-nota-sped {
  font-size: .88rem;
  color: var(--gray);
  margin: 0 0 1.4rem;
}

.phil-gratis {
  margin: 0;
  padding: 1.1rem 1.4rem;
  background: var(--bordeaux);
  color: var(--cream);
  text-align: center;
  font-family: var(--display);
  font-size: clamp(.82rem, 2vw, 1rem);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.phil-foro {
  font-size: .9rem;
  color: var(--gray);
  border-left: 2px solid var(--gold);
  padding-left: 1rem;
  margin-bottom: 2rem;
}

/* ------------------------------------------------------------
   Note legali
   ------------------------------------------------------------ */

.phil-legale { font-size: .98rem; }
.phil-legale h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  margin: 3rem 0 1rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--gray-light);
  scroll-margin-top: 140px;          /* non finisce sotto la testata fissa */
}
.phil-legale h3 { font-size: 1.15rem; margin: 2rem 0 .6rem; }
.phil-legale h4 {
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink);
  margin: 1.4rem 0 .4rem;
}
.phil-legale ul, .phil-legale ol { padding-left: 1.3rem; }

.phil-indice {
  margin: 2.4rem 0 1rem;
  padding: 1.4rem 1.6rem;
  background: var(--cream);
  border-left: 3px solid var(--gold);
}
.phil-indice ol { margin: 0; padding-left: 1.2rem; columns: 2 18rem; column-gap: 2.5rem; }
.phil-indice li { padding: .2rem 0; break-inside: avoid; }
.phil-indice li::marker { color: var(--gold); font-family: var(--serif); }
.phil-indice a { text-decoration: none; }
.phil-indice a:hover { text-decoration: underline; }

/* ------------------------------------------------------------
   Indice del catalogo
   ------------------------------------------------------------ */

.phil-catindex {
  columns: 3 17rem;
  column-gap: clamp(1.8rem, 4vw, 3.4rem);
}
@media (max-width: 700px) { .phil-catindex { columns: 1; } }

.phil-cat {
  break-inside: avoid;
  margin-bottom: 2.4rem;
}
.phil-cat h2 {
  font-family: var(--display);
  font-size: .92rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--bordeaux);
  margin: 0 0 .9rem;
  padding-bottom: .55rem;
  border-bottom: 1px solid var(--gold);
}
.phil-cat h2 a { color: inherit; text-decoration: none; }
.phil-cat h2 a:hover { color: var(--bordeaux-light); }

.phil-cat ul { list-style: none; margin: 0; padding: 0; }
.phil-cat li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .6rem;
  padding: .3rem 0;
}
.phil-cat li a {
  color: var(--ink-light);
  text-decoration: none;
  font-size: .95rem;
}
.phil-cat li a:hover { color: var(--bordeaux); text-decoration: underline; text-underline-offset: 3px; }
.phil-cat li i {
  font-style: normal;
  font-size: .78rem;
  color: var(--gray);
  flex-shrink: 0;
}

/* ------------------------------------------------------------
   Piè di pagina
   ------------------------------------------------------------ */

.site-footer,
.site-footer .footer-widgets,
.site-info {
  background: var(--bordeaux-dark);
  color: rgba(250,246,238,.72);
}
.site-footer a, .site-info a { color: var(--gold-light); }
.site-footer a:hover, .site-info a:hover { color: var(--white); }
/* piè di pagina Philafer: una riga centrata, va a capo solo se serve */
.phil-footer { padding-block: 1.8rem; font-size: .82rem; line-height: 1.7; letter-spacing: .02em; }
.phil-footer a { text-decoration: none; }
.phil-footer a:hover { text-decoration: underline; }

.phil-footer__riga {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .3rem 0;
  text-align: center;
}
.phil-footer__riga li { white-space: nowrap; }
.phil-footer__riga li + li::before {
  content: '·';
  margin-inline: .75rem;
  color: var(--gold);
}

@media (max-width: 640px) {
  .phil-footer__riga { flex-direction: column; gap: .15rem; }
  .phil-footer__riga li + li::before { content: none; }
}

.site-footer .widget-title {
  font-family: var(--display);
  font-size: .82rem;
  letter-spacing: .18em;
  color: var(--gold);
}

/* ------------------------------------------------------------
   Rispetto delle preferenze di movimento
   ------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ------------------------------------------------------------
   Adattamento agli schermi piccoli
   ------------------------------------------------------------ */

img { max-width: 100%; height: auto; }

@media (max-width: 900px) {
  .phil-hero { padding-block: clamp(2.6rem, 9vw, 4.5rem) 2.2rem; }
  .phil-hero::before { right: -28vw; width: 75vw; opacity: .7; }
  .phil-hero h1 { max-width: none; }
  .phil-stats { justify-content: flex-start; text-align: left; }
  .phil-band .phil-wrap { gap: .6rem 1.4rem; font-size: .66rem; }
  .phil-band span + span::before { display: none; }
  .woocommerce ul.products[class*="columns-"] li.product { width: 48%; }
  .phil-specs div { gap: 1rem; }
}

@media (max-width: 560px) {
  .phil-hero__ctas { flex-direction: column; align-items: stretch; }
  .phil-hero__ctas .phil-btn { text-align: center; }
  .phil-stats { gap: 1.4rem 2rem; }
  .phil-stats > div { min-width: 40%; }
  .woocommerce ul.products[class*="columns-"] li.product { width: 100%; margin-right: 0; }
  .phil-section { padding-block: 2.6rem; }
  .phil-specs div { flex-direction: column; gap: .2rem; }
  .phil-specs dd { text-align: left; }
}
