/* TOP ITALIA — Sezioni home */
.tihp-how, .tihp-zone, .tihp-faq { font-family: 'Poppins', sans-serif; }
.tihp-title { text-align: center; margin-bottom: 36px; }
.tihp-title__k { display: block; font-family: var(--ti-font-display, Georgia, serif); font-style: italic; color: #7fae3f; font-size: 1.3rem; }
.tihp-title__h { font-family: 'Poppins', sans-serif !important; font-weight: 800 !important; font-size: 2rem !important; text-transform: uppercase; color: #2c2117 !important; margin: 2px 0 0 !important; letter-spacing: .5px; }
.tihp-title__h.tihp-left { text-align: left; }
.tihp-dots { display: flex; gap: 5px; justify-content: center; margin-top: 10px; }
.tihp-dots i { width: 6px; height: 6px; border-radius: 50%; background: #a51e22; display: block; }
.tihp-btn { display: inline-flex; align-items: center; gap: 8px; background: #a51e22; color: #fff !important; padding: 13px 26px; border-radius: 40px; font-weight: 600; font-size: 15px; text-decoration: none !important; box-shadow: 0 8px 20px rgba(145,0,0,.22); transition: background .2s, transform .2s; }
.tihp-btn:hover { background: #7c1518; transform: translateY(-2px); }

/* come funziona */
.tihp-how { padding: 64px 0 20px; }
.tihp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; position: relative; }
.tihp-steps::before { content: ""; position: absolute; top: 58px; left: 16%; right: 16%; border-top: 2px dashed #d8c9a8; z-index: 0; }
.tihp-step { position: relative; z-index: 1; background: #fff; border: 1px solid #e0d6bd; border-radius: 20px; padding: 32px 26px 28px; text-align: center; box-shadow: 0 10px 30px rgba(39,10,7,.05); }
.tihp-step__n { position: absolute; top: 16px; left: 18px; font-weight: 800; font-size: 13px; color: #a51e22; background: #fbeceb; border-radius: 20px; padding: 2px 10px; }
.tihp-step__i { width: 64px; height: 64px; border-radius: 50%; background: #a51e22; display: inline-flex; align-items: center; justify-content: center; margin: 6px auto 16px; box-shadow: 0 0 0 8px #fbeceb; }
.tihp-step__i svg { width: 28px; height: 28px; stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tihp-step__t { font-family: 'Poppins', sans-serif !important; font-weight: 700 !important; font-size: 18px !important; color: #2c2117 !important; margin: 0 0 8px !important; }
.tihp-step__d { color: #6b6355; font-size: 14.5px; line-height: 1.6; margin: 0; }

/* zone di consegna */
.tihp-zone { padding: 64px 0; }
.tihp-zone__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center; background: #fff; border: 1px solid #e0d6bd; border-radius: 24px; padding: 40px 44px; box-shadow: 0 14px 40px rgba(39,10,7,.06); }
.tihp-zone__d { color: #6b6355; font-size: 15px; line-height: 1.65; margin: 12px 0 18px; }
.tihp-chips { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tihp-chips li { background: #F4F0DF; border: 1px solid #e0d6bd; color: #3a2a1e; font-size: 13.5px; font-weight: 500; padding: 6px 14px; border-radius: 30px; }
.tihp-zone__map svg { width: 100%; height: auto; display: block; }
.tihp-pl { fill: #fbeceb; stroke: #a51e22; stroke-width: 2; stroke-linejoin: round; }
.tihp-city__dot { fill: #a51e22; stroke: #fff; stroke-width: 2; }
.tihp-city__pulse { fill: #a51e22; opacity: .25; transform-box: fill-box; transform-origin: center; animation: tihpPulse 2.4s ease-out infinite; }
.tihp-city text { font-family: 'Poppins', sans-serif; font-size: 12px; font-weight: 600; fill: #2c2117; paint-order: stroke; stroke: #fbeceb; stroke-width: 3px; }
@keyframes tihpPulse { 0% { transform: scale(.6); opacity: .45; } 100% { transform: scale(2.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tihp-city__pulse { animation: none; } }

/* domande frequenti */
.tihp-faq { padding: 20px 0 72px; }
.tihp-faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 44px; align-items: start; }
.tihp-faq__side { position: sticky; top: 150px; }
.tihp-faq__side p { color: #6b6355; font-size: 15px; line-height: 1.65; margin: 12px 0 22px; }
.tihp-q { background: #fff; border: 1px solid #e0d6bd; border-radius: 16px; margin-bottom: 12px; overflow: hidden; transition: box-shadow .2s; }
.tihp-q[open] { box-shadow: 0 10px 30px rgba(39,10,7,.07); border-color: #e6c9c3; }
.tihp-q summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 600; font-size: 15.5px; color: #2c2117; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.tihp-q summary::-webkit-details-marker { display: none; }
.tihp-q summary i { width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; background: #fbeceb; position: relative; transition: background .2s, transform .25s; }
.tihp-q summary i::before, .tihp-q summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: #a51e22; transform: translate(-50%, -50%); border-radius: 2px; }
.tihp-q summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .25s; }
.tihp-q[open] summary { color: #a51e22; }
.tihp-q[open] summary i { background: #a51e22; }
.tihp-q[open] summary i::before, .tihp-q[open] summary i::after { background: #fff; }
.tihp-q[open] summary i::after { transform: translate(-50%, -50%) rotate(0deg); }
.tihp-q p { margin: 0; padding: 0 22px 20px; color: #5b4f44; font-size: 14.5px; line-height: 1.7; }

/* striscia marchi (modulo Impostazioni tema) */
.ti-brands { background: #fff !important; border-top: 1px solid #e0d6bd !important; border-bottom: 1px solid #e0d6bd !important; padding: 26px 0 !important; margin: 40px 0 0 !important; }
.ti-brands__row { gap: 12px 44px !important; justify-content: center !important; }
.ti-brands__name { font-family: 'Poppins', sans-serif !important; font-weight: 800 !important; font-size: 18px !important; letter-spacing: 1.5px; text-transform: uppercase; color: #b3a58a !important; transition: color .2s; }
.ti-brands__name:hover { color: #a51e22 !important; }

@media (max-width: 991px) {
  .tihp-steps { grid-template-columns: 1fr; gap: 16px; }
  .tihp-steps::before { display: none; }
  .tihp-zone__grid, .tihp-faq__grid { grid-template-columns: 1fr; padding: 26px 22px; gap: 22px; }
  .tihp-faq__grid { padding: 0; }
  .tihp-faq__side { position: static; }
  .tihp-title__h { font-size: 1.45rem !important; }
  .tihp-how, .tihp-zone { padding: 40px 0 10px; }
}

/* ---- v1.0.1: zone di consegna in stile "area clienti" (rosso + tenda) ---- */
.tihp-zone__grid {
  position: relative; overflow: hidden; border: 0; color: #fff;
  background: radial-gradient(circle at 80% 25%, #c62b2b 0%, #a51e22 45%, #7c1518 100%);
  padding: 64px 48px 46px; box-shadow: 0 18px 50px rgba(124,21,24,.25);
}
.tihp-zone__grid::after {
  content: "TOP"; position: absolute; left: -24px; bottom: -70px; font-family: 'Poppins', sans-serif; font-size: 240px; font-weight: 800;
  line-height: 1; letter-spacing: -8px; color: rgba(255,255,255,.06); pointer-events: none;
}
.tihp-awning { position: absolute; top: 0; left: 0; right: 0; display: flex; gap: 3px; z-index: 2; }
.tihp-awning i { flex: 1; height: 24px; border-radius: 0 0 40px 40px; background: #f3ead3; display: block; }
.tihp-awning i:nth-child(even) { background: #e0685a; }
.tihp-zone__text, .tihp-zone__map { position: relative; z-index: 1; }
.tihp-zone .tihp-title__k { color: #ffcf6b; }
.tihp-zone .tihp-title__h { color: #fff !important; }
.tihp-zone__d { color: #fbe3d8; }
.tihp-zone .tihp-chips li { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.28); color: #fff; }
.tihp-zone .tihp-btn { background: #fff; color: #a51e22 !important; box-shadow: 0 8px 22px rgba(0,0,0,.2); }
.tihp-zone .tihp-btn:hover { background: #ffcf6b; color: #7c1518 !important; }
.tihp-zone .tihp-pl { fill: rgba(255,255,255,.12); stroke: #fff; stroke-width: 2; }
.tihp-zone .tihp-city__dot { fill: #ffcf6b; stroke: #7c1518; stroke-width: 2; }
.tihp-zone .tihp-city__pulse { fill: #ffcf6b; opacity: .35; }
.tihp-zone .tihp-city text { fill: #fff; stroke: #8f1a1e; stroke-width: 3px; paint-order: stroke; font-size: 12.5px; }
@media (max-width: 991px) {
  .tihp-zone__grid { padding: 52px 22px 28px; }
  .tihp-zone__grid::after { font-size: 160px; bottom: -50px; }
  .tihp-awning i { height: 18px; }
}

/* ---- v1.1.0: vetrine per reparto (riga orizzontale con la miniatura prodotto del tema) ---- */
.tihp-scs { font-family: 'Poppins', sans-serif; padding: 48px 0 8px; }
.tihp-sc { padding: 0 0 44px; }
.tihp-sc + .tihp-sc { padding-top: 8px; }
.tihp-sc__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 18px; }
.tihp-title.tihp-title--row { text-align: left; margin-bottom: 0; min-width: 0; }
.tihp-title--row .tihp-title__h { font-size: 1.75rem !important; line-height: 1.15; }
.tihp-title--row .tihp-dots { justify-content: flex-start; }
.tihp-sc__tools { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* pulsante "Vedi tutti" */
.tihp-sc__all { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px 9px 20px; border: 2px solid #a51e22; border-radius: 40px; background: transparent; color: #a51e22 !important; font-weight: 600; font-size: 14.5px; line-height: 1; text-decoration: none !important; white-space: nowrap; transition: background .2s, color .2s, box-shadow .2s, transform .2s; }
.tihp-sc__all svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.tihp-sc__count { display: inline-block; min-width: 26px; padding: 4px 8px; border-radius: 20px; background: #fbeceb; color: #a51e22; font-size: 12px; font-weight: 700; text-align: center; transition: background .2s, color .2s; }
.tihp-sc__all:hover, .tihp-sc__all:focus-visible { background: #a51e22; color: #fff !important; box-shadow: 0 8px 20px rgba(145,0,0,.22); transform: translateY(-1px); }
.tihp-sc__all:hover .tihp-sc__count, .tihp-sc__all:focus-visible .tihp-sc__count { background: rgba(255,255,255,.2); color: #fff; }
.tihp-sc__all:hover svg { transform: translateX(3px); }

/* frecce (solo desktop / puntatore preciso) */
.tihp-sc__arrow { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #e0d6bd; background: #fff; color: #a51e22; display: inline-flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; box-shadow: 0 4px 14px rgba(39,10,7,.06); transition: background .2s, color .2s, border-color .2s, opacity .2s; }
.tihp-sc__arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.tihp-sc__arrow:hover:not(:disabled) { background: #a51e22; border-color: #a51e22; color: #fff; }
.tihp-sc__arrow:disabled { opacity: .35; cursor: default; box-shadow: none; }
.tihp-sc--static .tihp-sc__arrow { display: none; }

/* riga scorrevole */
.tihp-showcase { position: relative; }
.tihp-showcase__track {
  display: flex !important; flex-wrap: nowrap !important; gap: 18px; margin: 0 -6px !important; padding: 8px 6px 26px !important;
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory; scroll-padding: 0 6px; scroll-behavior: smooth;
  scrollbar-width: none; -ms-overflow-style: none;
}
.tihp-showcase__track::-webkit-scrollbar { display: none; height: 0; width: 0; }
.tihp-showcase__track:focus-visible { outline: 2px solid #e0614f; outline-offset: 2px; border-radius: 18px; }
.tihp-showcase__track > * {
  flex: 0 0 calc((100% - 54px) / 4) !important; width: calc((100% - 54px) / 4) !important; max-width: none !important; min-width: 200px;
  margin: 0 !important; padding: 0 !important; scroll-snap-align: start; float: none !important;
}
.tihp-showcase__track .product-miniature { height: 100%; margin: 0 !important; }
.tihp-showcase__track > * > .product-miniature, .tihp-showcase__track > .product-miniature { width: 100%; }

@media (max-width: 991px) {
  .tihp-scs { padding-top: 36px; }
  .tihp-sc { padding-bottom: 32px; }
  .tihp-title--row .tihp-title__h { font-size: 1.4rem !important; }
  .tihp-showcase__track > * { flex-basis: calc((100% - 36px) / 3) !important; width: calc((100% - 36px) / 3) !important; min-width: 180px; }
}
@media (max-width: 767px), (hover: none) {
  .tihp-sc__arrow { display: none; }
}
@media (max-width: 575px) {
  .tihp-sc__head { align-items: flex-end; flex-wrap: nowrap; }
  .tihp-title--row .tihp-title__h { font-size: 1.2rem !important; }
  .tihp-title--row .tihp-title__k { font-size: 1.1rem; }
  .tihp-sc__all { padding: 7px 8px 7px 14px; font-size: 13px; }
  .tihp-sc__all svg { display: none; }
  .tihp-showcase__track { gap: 14px; scroll-snap-type: x proximity; }
  .tihp-showcase__track > * { flex-basis: calc((100% - 14px) / 1.6) !important; width: calc((100% - 14px) / 1.6) !important; min-width: 150px; }
}
@media (prefers-reduced-motion: reduce) { .tihp-showcase__track { scroll-behavior: auto; } }
