/*
 * Rivera Magos Magazine - Editorial design V2
 * Il foglio e' caricato dopo style.css del child theme.
 * Non modifica gli stili di PrestaShop e non richiede JS, plugin o font esterni.
 */
:root {
  --rme-navy:#112c3b;
  --rme-ink:#183743;
  --rme-gold:#c4a16b;
  --rme-gold-light:#e3c995;
  --rme-teal:#215c6b;
  --rme-cream:#faf8f3;
  --rme-muted:#637680;
  --rme-border:#e3e8e8;
  --rme-serif:Georgia,"Iowan Old Style","Palatino Linotype","Book Antiqua",serif;
}
body.rm-site { color:var(--rme-ink); background:#fff; }
body.rm-site .rm-wrap { max-width:1180px; }
body.rm-site .rm-announcement {
  background:#102c3b; color:#e9d4b3; font-size:10px;
  letter-spacing:.17em; padding:9px 14px; text-transform:uppercase;
}
body.rm-site .rm-header { box-shadow:0 4px 24px rgba(17,44,59,.055); }
body.rm-site .rm-menu a { letter-spacing:.025em; }
body.rm-site .rm-menu a:hover { color:var(--rme-teal); }
body.rm-site .rm-menu a[aria-current="page"] { color:var(--rme-navy); }
body.rm-site a:focus-visible { outline:3px solid var(--rme-gold); outline-offset:3px; }

/* Editorial masthead: un hero raffinato e compatto, non una landing commerciale. */
.rm-ed-hero {
  isolation:isolate; overflow:hidden; position:relative; color:#fff;
  background:linear-gradient(113deg,#0d2839 0%,#173c4c 63%,#20495a 100%);
  border-bottom:4px solid var(--rme-gold);
}
.rm-ed-hero:before {
  content:""; position:absolute; inset:0; z-index:-1;
  background:radial-gradient(circle at 82% 42%,rgba(223,184,113,.105),transparent 34%),
    linear-gradient(105deg,transparent 62%,rgba(255,255,255,.026) 62.1%,transparent 62.35%);
  pointer-events:none;
}
.rm-ed-hero-inner {
  display:grid; grid-template-columns:minmax(0,1.6fr) minmax(225px,.8fr);
  min-height:326px; gap:46px; align-items:center; padding-block:43px 46px;
}
.rm-ed-hero-copy { position:relative; z-index:1; }
.rm-ed-kicker {
  margin:0 0 18px!important; color:var(--rme-gold-light)!important;
  font-size:10px!important; line-height:1.65!important; font-weight:800;
  letter-spacing:.17em; text-transform:uppercase;
}
.rm-ed-kicker span:first-child { margin-right:7px; font-size:14px; }
.rm-ed-kicker-divider { padding-inline:8px; opacity:.62; }
body.rm-site .rm-ed-hero h1 {
  max-width:720px; margin:0 0 17px; color:#fff;
  font:400 clamp(35px,4.15vw,57px)/1.105 var(--rme-serif);
  letter-spacing:-.029em; text-wrap:balance;
}
body.rm-site .rm-ed-hero-subtitle {
  max-width:590px; margin:0!important; color:#dde7e9!important;
  font-size:16px; line-height:1.7;
}
.rm-ed-hero-action {
  color:var(--rme-gold-light)!important; display:inline-flex; align-items:center; gap:13px;
  padding:15px 0 6px; margin-top:13px; font-size:12px; letter-spacing:.10em;
  font-weight:850; text-transform:uppercase; border-bottom:1px solid rgba(227,201,149,.65);
}
.rm-ed-hero-action:hover { color:#fff!important; text-decoration:none; }
.rm-ed-hero-action span { font-size:19px; line-height:1; }
.rm-ed-hero-symbol { position:relative; display:grid; place-items:center;
  width:min(100%,280px); aspect-ratio:1; justify-self:center; opacity:.97;
}
.rm-ed-orbit { position:absolute; inset:10%; border:1px solid rgba(227,201,149,.30); border-radius:50%; }
.rm-ed-orbit-one:before, .rm-ed-orbit-one:after { content:""; position:absolute; width:5px; height:5px; background:var(--rme-gold); transform:rotate(45deg); }
.rm-ed-orbit-one:before { top:13%; left:13%; } .rm-ed-orbit-one:after { right:13%; bottom:13%; }
.rm-ed-orbit-two { inset:20%; border-style:dashed; opacity:.45; }
.rm-ed-symbol-star { position:absolute; top:4%; color:var(--rme-gold-light); font-size:24px; }
.rm-ed-symbol-rm { color:#f8f0df; margin-top:-16px; font:400 79px/1 var(--rme-serif); letter-spacing:-.13em; padding-right:.13em; text-shadow:0 4px 35px #0e283b77; }
.rm-ed-symbol-label { position:absolute; bottom:10%; font-size:9px; letter-spacing:.22em; font-weight:800; color:var(--rme-gold-light); }

/* Sezioni e gerarchia editoriale */
.rm-ed-page { padding-top:45px; padding-bottom:62px; }
.rm-ed-section-heading { display:flex; justify-content:space-between; align-items:end; gap:20px; margin:0 0 23px; }
.rm-ed-section-label, .rm-ed-shop-label {
  display:block; color:#8a6d41; font-size:10px; line-height:1.45;
  font-weight:850; letter-spacing:.17em; text-transform:uppercase;
}
body.rm-site .rm-ed-section-heading h2 {
  margin:5px 0 0; color:var(--rme-navy);
  font:400 clamp(29px,3.2vw,39px)/1.18 var(--rme-serif);
  letter-spacing:-.02em;
}
.rm-ed-period { color:var(--rme-gold); }
.rm-ed-section-aside { color:#839199; font-size:12px; letter-spacing:.012em; padding-bottom:4px; text-align:right; }
.rm-ed-featured-section { margin-bottom:53px; }
.rm-ed-featured {
  display:grid; grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr);
  min-height:390px; border:1px solid #e1e7e8; background:var(--rme-cream);
  border-radius:3px; overflow:hidden; box-shadow:0 15px 42px rgba(19,48,58,.075);
}
.rm-ed-featured-image, .rm-ed-story-image { position:relative; display:block; overflow:hidden; background:#e7eced; }
.rm-ed-featured-image { min-height:385px; }
.rm-ed-featured-image img, .rm-ed-story-image img { display:block; width:100%; height:100%; object-fit:cover; transition:transform .45s ease; }
.rm-ed-featured-image:hover img, .rm-ed-story-image:hover img { transform:scale(1.035); }
.rm-ed-featured-text { padding:clamp(27px,3.8vw,48px); align-self:center; }
.rm-ed-featured-eyebrow { color:#866333; font-size:10px; letter-spacing:.14em; font-weight:850; }
.rm-ed-featured-eyebrow span { margin-right:7px; font-size:14px; color:var(--rme-gold); }
.rm-ed-post-meta { color:#71828a; font-size:10px; font-weight:850; text-transform:uppercase; letter-spacing:.105em; line-height:1.6; }
.rm-ed-featured-text .rm-ed-post-meta { margin-top:22px; }
.rm-ed-post-meta span { padding-inline:5px; color:var(--rme-gold); }
body.rm-site .rm-ed-featured h3 { margin:10px 0 17px; font:400 clamp(26px,2.65vw,37px)/1.19 var(--rme-serif); letter-spacing:-.024em; text-wrap:balance; }
.rm-ed-featured h3 a, .rm-ed-story-card h3 a { color:var(--rme-navy); }
.rm-ed-featured h3 a:hover, .rm-ed-story-card h3 a:hover { color:var(--rme-teal); text-decoration:none; }
.rm-ed-featured-text p { font-size:15px; line-height:1.8; color:#50646c; margin:0 0 21px; }
.rm-ed-read-link { display:inline-flex; align-items:center; gap:10px; font-size:12px; font-weight:850; color:var(--rme-teal); letter-spacing:.055em; border-bottom:1px solid var(--rme-gold); padding-bottom:5px; }
.rm-ed-read-link:hover { color:var(--rme-navy); text-decoration:none; }
.rm-ed-read-link span { font-size:16px; }

/* Placeholder visuali tipografici: mai fotografie di prodotto spacciate per cover. */
.rm-ed-image-fallback {
  position:absolute; inset:0; overflow:hidden; display:flex; flex-direction:column;
  align-items:center; justify-content:center; gap:6px; text-align:center;
  background:radial-gradient(circle at 75% 19%,rgba(234,200,144,.13),transparent 39%),linear-gradient(130deg,#173d50,#0e2a3a);
  color:#f7ebd8; font:400 27px/1.2 var(--rme-serif); letter-spacing:.085em;
}
.rm-ed-image-fallback:before { content:""; position:absolute; inset:13%; border:1px solid rgba(227,201,149,.29); pointer-events:none; }
.rm-ed-image-fallback:after { content:""; position:absolute; width:145px; height:145px; border:1px solid rgba(227,201,149,.2); border-radius:50%; transform:rotate(-15deg); }
.rm-ed-fallback-star { font-size:34px; color:#d9b47c; margin-bottom:10px; }
.rm-ed-image-fallback small { font:800 10px/1.4 system-ui,sans-serif; letter-spacing:.2em; color:#dfc6a0; }
.rm-ed-image-fallback-small { font-size:20px; }
.rm-ed-image-fallback-small .rm-ed-fallback-star { font-size:25px; margin-bottom:4px; }

/* Ultime storie: griglia curata, scalabile ai 90+ articoli futuri. */
.rm-ed-latest-section { margin:0 0 25px; }
.rm-ed-latest-heading { margin-bottom:23px; }
.rm-ed-story-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,275px),1fr)); gap:24px; }
.rm-ed-story-card { border:1px solid var(--rme-border); background:#fff; display:flex; flex-direction:column; box-shadow:0 5px 22px rgba(17,44,59,.048); transition:box-shadow .2s,transform .2s; min-width:0; }
.rm-ed-story-card:hover { transform:translateY(-3px); box-shadow:0 12px 30px rgba(17,44,59,.1); }
.rm-ed-story-image { aspect-ratio:16/10; flex-shrink:0; }
.rm-ed-story-body { padding:24px 23px 25px; display:flex; flex-direction:column; align-items:start; flex:1; }
body.rm-site .rm-ed-story-card h3 { font:400 25px/1.23 var(--rme-serif); letter-spacing:-.016em; margin:10px 0 13px; text-wrap:balance; }
.rm-ed-story-body p { flex:1; font-size:14px; color:#5c6e76; line-height:1.75; margin:0 0 22px; }
.rm-ed-pagination { margin:26px 0 0; }
.rm-ed-pagination .nav-links { display:flex; gap:10px; flex-wrap:wrap; justify-content:center; }
.rm-ed-pagination .page-numbers { border:1px solid #d8e2e4; padding:9px 13px; font-size:13px; border-radius:3px; color:var(--rme-ink); }
.rm-ed-pagination .page-numbers.current { background:var(--rme-navy); border-color:var(--rme-navy); color:white; }

/* Ponte verso PrestaShop, senza widget o checkout esterni. */
.rm-ed-shop-banner { margin-top:58px; display:grid; grid-template-columns:63px 1fr auto; gap:23px; align-items:center; padding:32px 35px; border:1px solid #e4e1d8; border-left:4px solid var(--rme-gold); background:var(--rme-cream); }
.rm-ed-shop-monogram { width:58px; aspect-ratio:1; display:grid; place-items:center; color:#9f7a43; font-size:32px; border:1px solid #dbc8aa; border-radius:50%; }
body.rm-site .rm-ed-shop-banner h2 { margin:5px 0; font:400 30px/1.2 var(--rme-serif); color:var(--rme-navy); }
.rm-ed-shop-banner p { margin:0; font-size:13px; color:#60727a; line-height:1.7; }
.rm-ed-shop-button { display:inline-flex; gap:12px; align-items:center; justify-content:center; background:var(--rme-navy); color:#fff!important; font-size:12px; font-weight:800; padding:14px 18px; min-height:44px; white-space:nowrap; }
.rm-ed-shop-button:hover { text-decoration:none; background:#205367; }
.rm-ed-empty { padding:50px 20px; border:1px solid var(--rme-border); text-align:center; }
.rm-ed-empty h2 { font:400 30px var(--rme-serif); }

/* Lettura articolo: ritmo tipografico, immagini ampie e contenuto intatto. */
.rm-ed-single-wrap { padding-bottom:55px; }
body.rm-site .rm-ed-breadcrumbs { display:flex; flex-wrap:wrap; align-items:center; gap:10px; max-width:980px; margin:0 auto; padding:26px 0 5px; font-size:12px; color:#84939b; }
.rm-ed-breadcrumbs a { color:#3d6878; font-weight:700; }
.rm-ed-breadcrumbs span[aria-hidden] { color:#c5b28e; }
body.rm-site .rm-ed-article { width:min(100%,795px); margin:27px auto 10px; }
.rm-ed-article-heading { text-align:left; }
.rm-ed-article-kicker { color:#967346; text-transform:uppercase; font-size:11px; letter-spacing:.15em; font-weight:850; }
.rm-ed-article-kicker span { color:var(--rme-gold); margin-right:7px; }
body.rm-site .rm-ed-article h1 { font:400 clamp(37px,5vw,58px)/1.12 var(--rme-serif); color:var(--rme-navy); letter-spacing:-.035em; margin:16px 0 22px; text-wrap:balance; }
body.rm-site .rm-ed-article-deck { font-size:19px; line-height:1.75; color:#526a75; padding:0; margin:0 0 20px; max-width:760px; }
.rm-ed-byline { display:flex; flex-wrap:wrap; gap:9px; align-items:center; padding:15px 0 23px; border-top:1px solid var(--rme-border); color:#6e808a; font-size:11px; font-weight:750; letter-spacing:.045em; }
.rm-ed-byline span:first-child { color:#466475; }
.rm-ed-article-cover { width:100%; max-width:100%; margin:9px auto 36px; overflow:hidden; border:0; border-radius:2px; background:#f3f6f7; }
.rm-ed-article-cover img { display:block; width:100%; height:auto; max-height:465px; object-fit:contain; padding:0; }
body.rm-site .rm-ed-content { color:#2a3e47; font-size:17px; line-height:1.86; }
body.rm-site .rm-ed-content > p { font-size:17px; line-height:1.9; margin-bottom:23px; }
body.rm-site .rm-ed-content h2 { color:var(--rme-navy); font:400 clamp(26px,3vw,32px)/1.23 var(--rme-serif); margin:49px 0 20px; }
body.rm-site .rm-ed-content h2:after { background:var(--rme-gold); width:53px; height:2px; margin-top:13px; }
body.rm-site .rm-ed-content h3 { color:var(--rme-navy); font:500 23px/1.3 var(--rme-serif); margin:33px 0 15px; }
body.rm-site .rm-ed-content blockquote { border-left:3px solid var(--rme-gold); background:#faf8f3; margin:29px 0; padding:18px 23px; font:italic 21px/1.6 var(--rme-serif); color:#405866; }
body.rm-site .rm-ed-content .rm-toc { border-radius:2px; border-left:4px solid var(--rme-gold); background:#f6f8f8; padding:24px 28px; margin:34px 0; }
body.rm-site .rm-ed-content .rm-takeaways { border-radius:3px; background:var(--rme-cream); border-color:#e9dcc8; }
body.rm-site .rm-ed-content .rm-feature { border-radius:3px; background:#f8faf9; }
body.rm-site .rm-ed-content a { text-underline-offset:3px; }
body.rm-site .rm-ed-content img { max-width:100%; height:auto; }
body.rm-site .rm-ed-content figure { max-width:100%; margin-inline:auto; }
body.rm-site .rm-ed-content ul, body.rm-site .rm-ed-content ol { padding-left:24px; }

/* Tre proposte: design differenziato ma stessa struttura esistente. */
body.rm-site .rm-ed-content .rm-products { background:#f8f9f8; border:1px solid #e1e8e7; border-top:3px solid var(--rme-gold); padding:27px; border-radius:3px; margin:48px 0; }
body.rm-site .rm-ed-content .rm-products > h2 { margin:0 0 9px; font:400 29px/1.2 var(--rme-serif); }
body.rm-site .rm-ed-content .rm-products > h2:after { display:none; }
body.rm-site .rm-ed-content .rm-product-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:13px; }
body.rm-site .rm-ed-content .rm-product { border-radius:3px; padding:14px; box-shadow:none; transition:transform .2s; }
body.rm-site .rm-ed-content .rm-product:hover { transform:translateY(-2px); }
body.rm-site .rm-ed-content .rm-product:nth-child(1) { border-top:4px solid var(--rme-gold); }
body.rm-site .rm-ed-content .rm-product:nth-child(2) { border-top:4px solid #5d8794; }
body.rm-site .rm-ed-content .rm-product:nth-child(3) { border:1px solid #183a4b; border-top:4px solid var(--rme-gold); background:var(--rme-navy); }
body.rm-site .rm-ed-content .rm-product:nth-child(3) h3 { color:#fff; }
body.rm-site .rm-ed-content .rm-product:nth-child(3) p { color:#d2dfe3; }
body.rm-site .rm-ed-content .rm-product:nth-child(3) .rm-button { background:var(--rme-gold-light); color:#172d39!important; }
body.rm-site .rm-ed-content .rm-product h3 { font:700 15px/1.42 system-ui,sans-serif; letter-spacing:0; }
body.rm-site .rm-ed-content .rm-product h3:after { display:none; }
body.rm-site .rm-ed-content .rm-product p { font-size:13px; line-height:1.55; }
.rm-ed-article-end { display:flex; justify-content:center; align-items:center; gap:16px; color:#9a835c; padding:28px 0 37px; font:italic 18px var(--rme-serif); }
.rm-ed-article-end span:first-child, .rm-ed-article-end span:last-child { font-style:normal; font-size:11px; }

/* Collegamenti editoriali verso altri articoli, non prodotti inventati. */
.rm-ed-related { border-top:1px solid var(--rme-border); padding:36px 0 7px; }
body.rm-site .rm-ed-related h2 { font:400 31px/1.2 var(--rme-serif); margin:8px 0 24px; color:var(--rme-navy); }
.rm-ed-related-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.rm-ed-related-item { position:relative; min-height:142px; background:var(--rme-cream); border:1px solid var(--rme-border); padding:23px 34px 22px 21px; text-decoration:none!important; display:flex; flex-direction:column; gap:10px; }
.rm-ed-related-kicker { font-size:10px; color:#9a7543; font-weight:850; letter-spacing:.09em; text-transform:uppercase; }
.rm-ed-related-item strong { color:var(--rme-navy); font:400 21px/1.32 var(--rme-serif); }
.rm-ed-related-item:hover { border-color:var(--rme-gold); }
.rm-ed-related-arrow { position:absolute; right:15px; bottom:19px; color:var(--rme-teal); }
body.rm-site .rm-footer { margin-top:0; background:#142f3e; border-top:3px solid var(--rme-gold); }

/* Responsive: mobile-first experience senza nuove librerie. */
@media(max-width:1050px) {
  .rm-ed-story-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .rm-ed-featured { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
  .rm-ed-featured-text { padding:30px; }
}
@media(max-width:760px) {
  body.rm-site .rm-menu .rm-wrap { display:flex; flex-wrap:nowrap; overflow-x:auto; gap:21px; -webkit-overflow-scrolling:touch; scrollbar-width:thin; }
  body.rm-site .rm-menu a { flex:none; font-size:11px; }
  .rm-ed-hero-inner { min-height:0; grid-template-columns:1fr; padding-block:46px 51px; }
  .rm-ed-hero-symbol { display:none; }
  .rm-ed-featured { grid-template-columns:1fr; }
  .rm-ed-featured-image { min-height:0; aspect-ratio:16/10; }
  .rm-ed-section-aside { display:none; }
  .rm-ed-shop-banner { grid-template-columns:50px 1fr; padding:25px 22px; gap:15px; }
  .rm-ed-shop-monogram { width:48px; }
  .rm-ed-shop-button { grid-column:1/-1; justify-self:start; }
}
@media(max-width:560px) {
  .rm-ed-hero-inner { padding-block:38px 46px; }
  body.rm-site .rm-ed-hero h1 { font-size:39px; }
  body.rm-site .rm-ed-hero-subtitle { font-size:15px; }
  .rm-ed-page { padding-top:34px; padding-bottom:40px; }
  .rm-ed-featured-section { margin-bottom:39px; }
  .rm-ed-featured-text { padding:25px 23px 29px; }
  body.rm-site .rm-ed-featured h3 { font-size:29px; }
  .rm-ed-story-grid, .rm-ed-related-grid { grid-template-columns:1fr; gap:18px; }
  .rm-ed-story-body { padding:22px; }
  .rm-ed-story-image { aspect-ratio:16/9; }
  .rm-ed-shop-banner { margin-top:40px; }
  body.rm-site .rm-ed-single-wrap .rm-ed-breadcrumbs { padding-top:19px; }
  body.rm-site .rm-ed-article { margin-top:21px; }
  body.rm-site .rm-ed-article h1 { font-size:39px; }
  body.rm-site .rm-ed-article-deck { font-size:17px; }
  .rm-ed-byline { font-size:10px; }
  body.rm-site .rm-ed-content, body.rm-site .rm-ed-content > p { font-size:16px; }
  body.rm-site .rm-ed-content .rm-toc { padding:19px; }
  body.rm-site .rm-ed-content .rm-product-grid { grid-template-columns:1fr; }
  body.rm-site .rm-ed-content .rm-products { padding:17px; }
  body.rm-site .rm-ed-content .rm-product { display:flex; }
}
@media(max-width:360px) {
  body.rm-site .rm-ed-hero h1 { font-size:34px; }
  body.rm-site .rm-ed-article h1 { font-size:33px; }
  .rm-ed-shop-banner { grid-template-columns:1fr; }
}
@media(prefers-reduced-motion:reduce) {
  .rm-ed-featured-image img, .rm-ed-story-image img, .rm-ed-story-card, body.rm-site .rm-ed-content .rm-product { transition:none; }
  .rm-ed-featured-image:hover img, .rm-ed-story-image:hover img, .rm-ed-story-card:hover { transform:none; }
}
