/* =====================================================================
   RODITOR & PHILADELPHIA - stile del sito (Helix Ultimate)
   File: templates/shaper_helixultimate/css/custom.css
   Helix lo carica automaticamente per tutti gli stili (IT ed EN).
   ===================================================================== */

/* ---------- 1. Colori e misure (modificabili qui) ---------- */
:root {
  --rp-blue:        #2E9FDC;   /* azzurro del logo, leggermente piu' saturo */
  --rp-blue-dark:   #1B7FB8;   /* hover / link */
  --rp-navy:        #0F2A3F;   /* barra superiore e footer */
  --rp-navy-2:      #16384F;
  --rp-ink:         #1C2730;   /* testo principale */
  --rp-muted:       #5E6E7C;   /* testo secondario */
  --rp-line:        #E3E9EE;   /* bordi */
  --rp-soft:        #F4F7FA;   /* sfondi chiari di sezione */
  --rp-radius:      10px;
  --rp-shadow:      0 2px 10px rgba(15, 42, 63, .06);
  --rp-shadow-hover:0 14px 34px rgba(15, 42, 63, .12);
  --rp-ease:        .25s ease;
  --rp-font-head:   "Barlow", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --rp-font-body:   "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- 2. Tipografia ---------- */
body {
  font-family: var(--rp-font-body);
  color: var(--rp-ink);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6,
.article-header h1, .article-header h2, .page-header h1 {
  font-family: var(--rp-font-head);
  color: var(--rp-navy);
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.2;
}
h1 { font-size: clamp(2rem, 1.4rem + 2vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
h3 { font-size: 1.35rem; }
a { color: var(--rp-blue-dark); transition: color var(--rp-ease); }
a:hover, a:focus { color: var(--rp-blue); }
::selection { background: var(--rp-blue); color: #fff; }

/* ---------- 3. Barra superiore ---------- */
#sp-top-bar {
  background: var(--rp-navy);
  color: rgba(255,255,255,.75);
  font-size: 13px;
  padding: 6px 0;
}
#sp-top-bar a, #sp-top-bar .sp-contact-info li, #sp-top-bar .social-icons a { color: rgba(255,255,255,.8); }
#sp-top-bar a:hover, #sp-top-bar .social-icons a:hover { color: #fff; }
#sp-top-bar .social-icons li { margin-right: 14px; }

/* ---------- 4. Header e menu ---------- */
#sp-header {
  background: #fff;
  box-shadow: 0 1px 0 var(--rp-line);
  transition: box-shadow var(--rp-ease);
}
#sp-header.header-sticky { box-shadow: 0 6px 24px rgba(15,42,63,.08); }
#sp-header .logo img { max-height: 52px; width: auto; }

.sp-megamenu-parent > li > a,
.sp-megamenu-parent > li > span {
  font-family: var(--rp-font-head);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--rp-navy);
  position: relative;
  padding: 0 14px;
}
.sp-megamenu-parent > li > a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 16px;
  height: 2px;
  background: var(--rp-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--rp-ease);
}
.sp-megamenu-parent > li:hover > a,
.sp-megamenu-parent > li.active > a { color: var(--rp-blue-dark); }
.sp-megamenu-parent > li:hover > a::after,
.sp-megamenu-parent > li.active > a::after { transform: scaleX(1); }

/* sottomenu */
.sp-megamenu-parent .sp-dropdown .sp-dropdown-inner {
  border-radius: var(--rp-radius);
  box-shadow: var(--rp-shadow-hover);
  border: 1px solid var(--rp-line);
  padding: 10px 0;
}
.sp-megamenu-parent .sp-dropdown li.sp-menu-item > a { color: var(--rp-ink); padding: 8px 20px; }
.sp-megamenu-parent .sp-dropdown li.sp-menu-item > a:hover { color: var(--rp-blue-dark); background: var(--rp-soft); }

/* selettore lingua: bandierine affiancate */
.mod-languages ul.lang-inline { display: flex; gap: 8px; margin: 0; padding: 0; }
.mod-languages ul.lang-inline li { margin: 0; opacity: .55; transition: opacity var(--rp-ease); }
.mod-languages ul.lang-inline li.lang-active,
.mod-languages ul.lang-inline li:hover { opacity: 1; }
.mod-languages img { border-radius: 2px; }

/* ---------- 5. Titolo pagina e contenitore ---------- */
#sp-main-body { padding: 60px 0 80px; }
.page-header, .com-content-category-blog > .page-header { margin-bottom: 30px; border: 0; }
.category-desc, .base-desc { color: var(--rp-muted); font-size: 1.05rem; max-width: 860px; }
.category-desc h2, .base-desc h2 { color: var(--rp-navy); margin-bottom: .5em; }

/* ---------- 6. Pulsanti ---------- */
.btn, .btn-paste, .readmore .btn, .sppb-btn {
  border-radius: 6px;
  font-family: var(--rp-font-head);
  font-weight: 600;
  letter-spacing: .02em;
  transition: all var(--rp-ease);
}
.btn-primary, .sppb-btn-primary {
  background: var(--rp-blue); border-color: var(--rp-blue); color: #fff;
}
.btn-primary:hover, .sppb-btn-primary:hover {
  background: var(--rp-blue-dark); border-color: var(--rp-blue-dark); color: #fff;
  transform: translateY(-1px); box-shadow: 0 8px 20px rgba(46,159,220,.3);
}
.btn-paste, .btn-paste:hover {
  display: inline-block;
  background: var(--rp-navy);
  color: #fff !important;
  padding: 12px 28px;
  font-size: 15px;
  text-decoration: none;
  margin: 0 12px 10px 0;
}
.btn-paste:hover { background: var(--rp-blue); transform: translateY(-1px); }

/* ---------- 7. Blog e categorie: griglia di card ---------- */
.com-content-category-blog .article-list > .row { row-gap: 30px; }
.com-content-category-blog .article-list > .row > [class*="col-"] { display: flex; }
.com-content-category-blog .article-list > .row > [class*="col-"] > .article {
  width: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--rp-line);
  border-radius: var(--rp-radius);
  overflow: hidden;
  padding: 0 0 24px;
  box-shadow: var(--rp-shadow);
  transition: transform var(--rp-ease), box-shadow var(--rp-ease);
}
.com-content-category-blog .article-list > .row > [class*="col-"] > .article:hover {
  transform: translateY(-4px);
  box-shadow: var(--rp-shadow-hover);
}
.com-content-category-blog .article > *:not(.article-intro-image) { padding-left: 24px; padding-right: 24px; }
.com-content-category-blog .article-intro-image { float: none; margin: 0 0 20px; overflow: hidden; }
.com-content-category-blog .article-intro-image img {
  width: 100%; height: 220px; object-fit: cover; display: block;
  transition: transform .5s ease;
}
.com-content-category-blog .article:hover .article-intro-image img { transform: scale(1.04); }
.com-content-category-blog .article h2 { font-size: 1.3rem; margin: 0 0 10px; }
.com-content-category-blog .article h2 a { color: var(--rp-navy); text-decoration: none; }
.com-content-category-blog .article h2 a:hover { color: var(--rp-blue-dark); }
.com-content-category-blog .article p { color: var(--rp-muted); font-size: .95rem; }
.com-content-category-blog .readmore { margin-top: auto; }
.com-content-category-blog .readmore a,
.com-content-category-blog .readmore .btn {
  background: none; border: 0; padding: 0;
  color: var(--rp-blue-dark);
  font-family: var(--rp-font-head);
  font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: 14px;
}
.com-content-category-blog .readmore a::after { content: " \2192"; transition: margin var(--rp-ease); }
.com-content-category-blog .readmore a:hover::after { margin-left: 4px; }
.com-content-category-blog .pagination { margin-top: 40px; justify-content: center; }

/* ---------- 8. Elenco sottocategorie (Dischi / Buffs) ---------- */
.com-content-categories__items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}
.com-content-categories__item {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--rp-line);
  border-radius: var(--rp-radius);
  overflow: hidden;
  box-shadow: var(--rp-shadow);
  transition: transform var(--rp-ease), box-shadow var(--rp-ease);
}
.com-content-categories__item:hover { transform: translateY(-4px); box-shadow: var(--rp-shadow-hover); }
.com-content-categories__item > img { order: -1; width: 100%; height: 220px; object-fit: cover; display: block; }
.com-content-categories__item-title-wrapper { padding: 22px 24px 0; }
.com-content-categories__item-title a {
  font-family: var(--rp-font-head);
  font-size: 1.3rem; font-weight: 600;
  color: var(--rp-navy); text-decoration: none;
}
.com-content-categories__item-title a:hover { color: var(--rp-blue-dark); }
.com-content-categories__description { padding: 8px 24px 24px; color: var(--rp-muted); font-size: .95rem; }
.com-content-categories__description h2 { display: none; }

/* ---------- 9. Pagina articolo / prodotto ---------- */
.article-details .article-header h1 { margin-bottom: 20px; }
.article-details [itemprop="articleBody"] { font-size: 1.02rem; }
.article-details [itemprop="articleBody"] > p,
.article-details [itemprop="articleBody"] > ul,
.article-details [itemprop="articleBody"] > ol { max-width: 900px; }
.article-details [itemprop="articleBody"] img { border-radius: 6px; }
.article-details [itemprop="articleBody"] ul li::marker { color: var(--rp-blue); }
.article-details [itemprop="articleBody"] table {
  width: 100%; border-collapse: collapse; margin: 20px 0;
  font-size: .95rem; border: 1px solid var(--rp-line); border-radius: var(--rp-radius); overflow: hidden;
}
.article-details [itemprop="articleBody"] th { background: var(--rp-navy); color: #fff; font-weight: 600; }
.article-details [itemprop="articleBody"] th,
.article-details [itemprop="articleBody"] td { padding: 10px 14px; border-bottom: 1px solid var(--rp-line); }
.article-details [itemprop="articleBody"] tr:nth-child(even) td { background: var(--rp-soft); }

/* foto affiancate dentro i paragrafi */
.article-details [itemprop="articleBody"] p img { display: inline-block; vertical-align: top; margin: 5px; }
.article-details [itemprop="articleBody"] p:has(> img) { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: none; }
.article-details [itemprop="articleBody"] p:has(> img) img { margin: 0; flex: 0 1 238px; height: auto; }

/* link "Scarica la scheda (PDF)" */
.allegato a, a[href$=".pdf"]:not(.btn-paste):not(.btn) {
  font-weight: 600;
}
.allegato a::before { content: "\2193  "; }

/* condivisione social sotto il titolo: piu' discreta */
.article-details .article-social-share { opacity: .7; }

/* ---------- 10. Contenuti importati dal vecchio sito (classi template "roditor") ---------- */
.left-paste { padding: 20px 24px 20px 0; overflow: hidden; border-right: 1px solid var(--rp-line); }
.left-paste img, .fullimage, .roditor-img, .roditor-article img { width: 100%; height: auto !important; max-width: 100%; border-radius: 6px; }
.left-paste img + img { margin-top: 15px; }
.divider { height: 25px; }
.nopadding { padding: 0 !important; }
.roditor-article { color: var(--rp-muted); line-height: 1.8; padding: 20px 10px 20px 30px; }
.roditor-article h1 {
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem);
  color: var(--rp-navy);
  border-bottom: 2px solid var(--rp-blue);
  display: inline-block;
  padding-bottom: 10px; margin-bottom: 20px;
  line-height: 1.25;
}
.roditor-article strong { color: var(--rp-ink); }
.roditor-text { padding: 20px 0; text-align: center; }
.roditor-text a { font-family: var(--rp-font-head); font-size: 1.3rem; font-weight: 600; color: var(--rp-navy); text-decoration: none; }
.roditor-text a:hover { color: var(--rp-blue-dark); }
.roditor-img { position: relative; overflow: hidden; border-radius: 6px; }
.img-overlay { position: absolute; inset: 0; background: var(--rp-navy); opacity: .15; transition: opacity var(--rp-ease); cursor: pointer; }
.img-overlay:hover { opacity: 0; }
div.itemListCategory {
  background: linear-gradient(135deg, var(--rp-navy) 0%, var(--rp-navy-2) 100%);
  padding: 50px 30px; text-align: center; border-radius: var(--rp-radius); margin: 20px 0 30px;
}
div.itemListCategory h2, .roditor-catdescri h2 { color: #fff; text-align: center; font-size: 1.6rem; }
.roditor-catdescri p { color: rgba(255,255,255,.75); line-height: 1.8; font-size: 1.05rem; max-width: 860px; margin: 0 auto; }

/* ---------- 11. Moduli e form (RSForm) ---------- */
.rsform input[type="text"], .rsform input[type="email"], .rsform input[type="tel"],
.rsform textarea, .rsform select, .form-control {
  border: 1px solid var(--rp-line);
  border-radius: 6px;
  padding: 12px 14px;
  transition: border-color var(--rp-ease), box-shadow var(--rp-ease);
}
.rsform input:focus, .rsform textarea:focus, .form-control:focus {
  border-color: var(--rp-blue);
  box-shadow: 0 0 0 3px rgba(46,159,220,.15);
  outline: 0;
}
.rsform .formRequired { color: var(--rp-blue-dark); }
.rsform .rsform-submit-button, .rsform button[type="submit"] {
  background: var(--rp-blue); border: 0; color: #fff;
  border-radius: 6px; padding: 12px 34px;
  font-family: var(--rp-font-head); font-weight: 600; letter-spacing: .03em; text-transform: uppercase;
}
.rsform .rsform-submit-button:hover, .rsform button[type="submit"]:hover { background: var(--rp-blue-dark); }

/* ---------- 12. Footer ---------- */
#sp-bottom {
  background: var(--rp-navy);
  color: rgba(255,255,255,.72);
  padding: 70px 0 40px;
  font-size: 14px;
}
#sp-bottom h2, #sp-bottom h3, #sp-bottom .sp-module-title {
  font-family: var(--rp-font-head);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: .02em;
  margin-bottom: 18px;
}
#sp-bottom a { color: rgba(255,255,255,.85); }
#sp-bottom a:hover { color: var(--rp-blue); }
#sp-bottom img { transition: transform var(--rp-ease); }
#sp-bottom a:hover img { transform: translateY(-3px); }
#sp-footer {
  background: #0A1F2F;
  color: rgba(255,255,255,.55);
  font-size: 13px;
  padding: 18px 0;
}
#sp-footer a { color: rgba(255,255,255,.75); }
#sp-footer a:hover { color: #fff; }
#sp-footer ul.menu { display: flex; gap: 20px; justify-content: flex-end; margin: 0; padding: 0; list-style: none; }

/* pulsante "torna su" */
.sp-scroll-up { background: var(--rp-blue); border-radius: 50%; box-shadow: var(--rp-shadow-hover); }
.sp-scroll-up:hover { background: var(--rp-blue-dark); }

/* ---------- 13. Responsive ---------- */
@media (max-width: 991px) {
  #sp-main-body { padding: 40px 0 60px; }
  #sp-footer ul.menu { justify-content: center; }
}
@media (max-width: 767px) {
  .left-paste { border-right: 0; padding-right: 0; }
  .roditor-article { padding: 15px 0; }
  .com-content-category-blog .article-intro-image img,
  .com-content-categories__item > img { height: 200px; }
}

/* ---------- 14. Accessibilita' e movimento ridotto ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
