/* SUPER PAV: one page. Stili propri del progetto, nessun foglio di tema.
   Colori ricavati dal logo, definiti come token su :root. */
:root {
    --rpg-accent: #D0A030;
    --rpg-accent-dark: #A87C1E;
    --rpg-secondary: #504058;
    --rpg-bg: #F5F3EF;
    --rpg-dark: #2B2E33;
    --rpg-text: #1C1C1C;
    --rpg-white: #FFFFFF;
    --rpg-header-h: 80px;
    --rpg-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    --rpg-font-title: 'Montserrat', system-ui, sans-serif;
    --rpg-font-text: 'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--rpg-header-h); }

body {
    margin: 0;
    background: var(--rpg-bg);
    color: var(--rpg-text);
    font-family: var(--rpg-font-text);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--rpg-font-title); font-weight: 700; line-height: 1.2; margin: 0 0 0.5em; }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
h2::after { content: ""; display: block; width: 56px; height: 4px; margin-top: 12px; background: var(--rpg-accent); transform-origin: left; }
p { margin: 0 0 1em; }
address { font-style: normal; margin-bottom: 1em; }

.rpg_container { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.rpg_skip { position: absolute; left: -9999px; }
.rpg_skip:focus { left: 16px; top: 16px; z-index: 200; padding: 8px 12px; background: var(--rpg-accent); color: var(--rpg-text); }
.rpg_text_link { color: var(--rpg-secondary); text-decoration: underline; text-decoration-color: var(--rpg-accent); text-underline-offset: 3px; text-decoration-thickness: 2px; }

.rpg_eyebrow {
    margin: 0 0 8px; font-family: var(--rpg-font-title); font-weight: 700; font-size: 0.78rem;
    letter-spacing: 0.14em; text-transform: uppercase; color: var(--rpg-secondary);
}
.rpg_eyebrow_light { color: var(--rpg-accent); }


/* Pulsanti */
.rpg_btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 13px 24px; border: 2px solid transparent; border-radius: 4px;
    font-family: var(--rpg-font-title); font-weight: 700; font-size: 0.95rem;
    text-decoration: none; cursor: pointer;
    transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--rpg-ease), box-shadow 0.25s;
}
.rpg_btn_accent { background: var(--rpg-accent); color: var(--rpg-text); }
.rpg_btn_accent:hover, .rpg_btn_accent:focus-visible { background: var(--rpg-accent-dark); box-shadow: 0 10px 24px rgba(208, 160, 48, 0.35); }
.rpg_btn_outline { border-color: var(--rpg-white); color: var(--rpg-white); background: transparent; }
.rpg_btn_outline:hover, .rpg_btn_outline:focus-visible { background: var(--rpg-white); color: var(--rpg-dark); }
/* Effetto magnetico: JavaScript sposta il pulsante verso il puntatore */
.rpg_magnetic { transform: translate(var(--mx, 0px), var(--my, 0px)); }

/* Header fisso: barra di servizio (solo desktop) + riga con logo, menu e pulsante.
   Scorrendo la barra di servizio si chiude e la riga principale si abbassa. */
.rpg_header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; flex-direction: column;
    background: rgba(255, 255, 255, 0.97); border-bottom: 1px solid #e9e5de;
    transition: transform 0.35s var(--rpg-ease), box-shadow 0.3s;
}
@supports (backdrop-filter: blur(10px)) {
    .rpg_header { background: rgba(255, 255, 255, 0.88); backdrop-filter: saturate(1.4) blur(10px); }
}
.rpg_header.is-scrolled { box-shadow: 0 8px 28px rgba(20, 24, 31, 0.08); }
/* Con il menu aperto niente sfocatura: backdrop-filter farebbe restare il pannello fisso dentro l'header */
.rpg_header.is-open { background: var(--rpg-white); backdrop-filter: none; }

.rpg_topbar { display: none; overflow: hidden; max-height: 40px; background: var(--rpg-secondary); color: rgba(255, 255, 255, 0.85); font-size: 0.8rem; transition: max-height 0.35s var(--rpg-ease); }
.rpg_header.is-scrolled .rpg_topbar { max-height: 0; }
.rpg_topbar_inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; max-width: 1140px; height: 40px; margin: 0 auto; padding: 0 16px; }
.rpg_topbar ul { display: flex; gap: 24px; margin: 0; padding: 0; list-style: none; }
.rpg_topbar li { display: flex; align-items: center; gap: 8px; }
.rpg_topbar svg { width: 14px; height: 14px; fill: none; stroke: var(--rpg-accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rpg_topbar a { color: rgba(255, 255, 255, 0.92); text-decoration: none; transition: color 0.2s; }
.rpg_topbar a:hover, .rpg_topbar a:focus-visible { color: var(--rpg-accent); }
.rpg_topbar_links li + li { padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, 0.25); }

.rpg_header_inner {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    width: 100%; height: 80px; max-width: 1140px; margin: 0 auto; padding: 0 16px;
    transition: height 0.3s var(--rpg-ease);
}
.rpg_header.is-scrolled .rpg_header_inner { height: 64px; }
.rpg_logo { position: relative; z-index: 2; display: flex; align-items: center; gap: 14px; text-decoration: none; }
.rpg_logo img { height: 56px; width: auto; transition: height 0.3s var(--rpg-ease); }
.rpg_header.is-scrolled .rpg_logo img { height: 44px; }
.rpg_logo_claim {
    display: none; padding-left: 14px; border-left: 2px solid var(--rpg-accent);
    font-family: var(--rpg-font-title); font-weight: 700; font-size: 0.68rem; line-height: 1.45;
    letter-spacing: 0.12em; text-transform: uppercase; color: var(--rpg-secondary);
}

.rpg_menu_toggle {
    position: relative; z-index: 2;
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 10px; background: none; border: 0; cursor: pointer;
}
.rpg_menu_toggle span { display: block; height: 2px; background: var(--rpg-secondary); transition: transform 0.3s var(--rpg-ease), opacity 0.3s; }
.rpg_header.is-open .rpg_menu_toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.rpg_header.is-open .rpg_menu_toggle span:nth-child(2) { opacity: 0; }
.rpg_header.is-open .rpg_menu_toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menu compresso: pannello a tutto schermo, voci numerate che entrano a cascata */
.rpg_nav {
    display: none; position: fixed; inset: 0; padding-top: 80px;
    background: var(--rpg-white); overflow-y: auto;
}
.rpg_header.is-open .rpg_nav { display: block; animation: rpg_fade 0.35s var(--rpg-ease) both; }
.rpg_nav_list { list-style: none; margin: 0; padding: 24px 16px; display: flex; flex-direction: column; gap: 4px; }
.rpg_header.is-open .rpg_nav_list > li { animation: rpg_nav_in 0.5s var(--rpg-ease) both; animation-delay: calc(0.08s + var(--i, 0) * 0.06s); }
.rpg_nav_link {
    display: flex; align-items: baseline; gap: 14px; padding: 16px 0; border-bottom: 1px solid #e6e2dc;
    color: var(--rpg-secondary); font-family: var(--rpg-font-title); font-weight: 700; font-size: 1.35rem; text-decoration: none;
    transition: color 0.25s;
}
.rpg_nav_num { flex: 0 0 22px; font-variant-numeric: tabular-nums; font-size: 0.75rem; letter-spacing: 0.08em; color: var(--rpg-accent); }
.rpg_nav_link.is-active { color: var(--rpg-accent-dark); }
.rpg_nav_call_m { margin-top: 28px; }
.rpg_nav_call_m .rpg_btn { width: 100%; padding: 16px; font-size: 1.05rem; border-radius: 999px; }
.rpg_nav_info { margin: 18px 0 0; text-align: center; font-size: 0.95rem; color: #555; line-height: 1.7; }
.rpg_nav_info a { color: var(--rpg-secondary); font-weight: 700; }
/* Pulsante Chiama nell'header: su mobile compatto, a sinistra dell'hamburger */
.rpg_header_call {
    position: relative; z-index: 2; order: 1; margin-left: auto;
    display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px;
    font-size: 0.8rem; border-radius: 999px; white-space: nowrap;
}
.rpg_menu_toggle { order: 2; }
.rpg_header.is-open .rpg_header_call { visibility: hidden; }
.rpg_header_call svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes rpg_nav_in { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }

/* Hero */
.rpg_hero {
    position: relative; display: flex; flex-direction: column; overflow: hidden;
    min-height: 90vh; min-height: 90svh; padding-top: var(--rpg-header-h);
    background: var(--rpg-dark) var(--rpg-hero-img, none) center calc(50% + var(--rpg-parallax, 0px)) / cover no-repeat;
    color: var(--rpg-white);
    animation: rpg_zoom 16s ease-out both;
}
.rpg_hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(43, 46, 51, 0.82) 0%, rgba(43, 46, 51, 0.55) 60%, rgba(43, 46, 51, 0.35) 100%); }
.rpg_hero_content { position: relative; flex: 1; display: flex; align-items: center; min-width: 0; }
.rpg_hero_inner { position: relative; width: 100%; min-width: 0; max-width: 1140px; margin: 0 auto; padding: 48px 16px; }
.rpg_hero_title { color: var(--rpg-white); font-size: clamp(2rem, 5.5vw, 3.6rem); max-width: 30ch; }
.rpg_word_accent { color: var(--rpg-accent); }
.rpg_word { display: inline-block; opacity: 0; transform: translateY(0.6em); animation: rpg_word 0.8s var(--rpg-ease) forwards; animation-delay: calc(0.15s + var(--i) * 0.09s); }
.rpg_hero_sub { max-width: 60ch; margin-bottom: 28px; font-size: clamp(1rem, 2.2vw, 1.15rem); }
.rpg_hero_actions { display: flex; flex-wrap: wrap; gap: 12px; }
.rpg_hero_phone { margin: 24px 0 0; font-size: 0.95rem; }
.rpg_hero_phone a { color: var(--rpg-white); font-weight: 700; text-decoration-color: var(--rpg-accent); text-decoration-thickness: 2px; }
.rpg_intro { opacity: 0; animation: rpg_fade 0.9s var(--rpg-ease) forwards; animation-delay: 0.9s; }
.rpg_hero_sub.rpg_intro { animation-delay: 1.05s; }
.rpg_hero_actions.rpg_intro { animation-delay: 1.2s; }
.rpg_hero_phone.rpg_intro { animation-delay: 1.35s; }

/* Striscia scorrevole sotto la hero */
.rpg_ticker { overflow: hidden; background: var(--rpg-accent); color: var(--rpg-text); padding: 14px 0; white-space: nowrap; }
.rpg_ticker_track { display: inline-flex; animation: rpg_ticker 38s linear infinite; }
.rpg_ticker span { font-family: var(--rpg-font-title); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.85rem; padding: 0 28px; }
.rpg_ticker span::after { content: "◆"; margin-left: 56px; font-size: 0.6rem; opacity: 0.6; }

/* Animazione: posa della resina */
.rpg_floor_anim { position: relative; z-index: 1; height: 120px; margin-top: auto; overflow: hidden; background: var(--rpg-dark); transform: perspective(600px) rotateX(35deg); }
.rpg_floor_base { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, #3a3d42 0 2px, transparent 2px 80px), #44474c; }
.rpg_floor_resin { position: absolute; inset: 0; width: 0; background: linear-gradient(180deg, #9aa3ab, #6e7780); animation: rpg_spread 4s ease-in-out infinite; }
.rpg_floor_trowel { position: absolute; top: 10%; left: 0; width: 14px; height: 80%; background: var(--rpg-accent); border-radius: 3px; box-shadow: 0 0 12px rgba(208, 160, 48, 0.6); animation: rpg_trowel 4s ease-in-out infinite; }
.rpg_floor_shine { position: absolute; inset: 0; background: linear-gradient(110deg, transparent 40%, rgba(255, 255, 255, 0.45) 50%, transparent 60%); transform: translateX(-100%); animation: rpg_shine 4s ease-in-out infinite; }

/* Sezioni */
.rpg_section { padding: 72px 0; }
.rpg_section_white { background: var(--rpg-white); }
.rpg_section_alt { background: var(--rpg-bg); }

.rpg_about_grid { display: grid; gap: 56px; align-items: center; }
.rpg_about_grid p { font-size: 1.02rem; }
.rpg_services_band { margin-top: 56px; padding: 32px; border-radius: 8px; background: var(--rpg-dark); color: var(--rpg-white); }
.rpg_services_band .rpg_eyebrow { color: var(--rpg-accent); }
.rpg_services_band h3 { margin: 4px 0 20px; color: var(--rpg-white); }
.rpg_services_list { display: grid; grid-template-columns: 1fr; gap: 12px 24px; margin: 0; padding: 0; list-style: none; line-height: 1.5; }
.rpg_services_list li { position: relative; padding-left: 22px; }
.rpg_services_list li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 8px; height: 8px; border-radius: 2px; background: var(--rpg-accent); }
@media (min-width: 600px) { .rpg_services_list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .rpg_services_list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rpg_mezzi { margin-top: 64px; }
.rpg_mezzi h3 { margin: 8px 0 24px; }
.rpg_mezzi_grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.rpg_mezzo { min-width: 0; padding: 24px; background: var(--rpg-white); border-radius: 8px; border-top: 3px solid var(--rpg-accent); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); }
.rpg_mezzo h4 { margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid #e4e1dc; font-family: var(--rpg-font-title); font-size: 1rem; text-transform: uppercase; letter-spacing: 0.04em; }
.rpg_mezzo ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: 0.95rem; line-height: 1.5; }
.rpg_mezzo li { position: relative; padding-left: 22px; }
.rpg_mezzo li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 8px; height: 8px; border-radius: 2px; background: var(--rpg-accent); }
@media (min-width: 760px) { .rpg_mezzi_grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rpg_stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 28px 0 0; }
.rpg_stats div { padding: 14px 12px; background: var(--rpg-bg); border-left: 3px solid var(--rpg-accent); }
.rpg_stats dt { font-size: 0.78rem; color: #555; line-height: 1.3; }
.rpg_stats dd { margin: 6px 0 0; font-family: var(--rpg-font-title); font-weight: 700; font-size: 2rem; color: var(--rpg-secondary); }

.rpg_archive { display: grid; grid-template-columns: repeat(2, minmax(0, 240px)); justify-content: center; gap: 20px 16px; margin: 0; padding: 8px 0; list-style: none; }
.rpg_archive li:last-child { grid-column: 1 / -1; justify-self: center; width: min(100%, 240px); }
.rpg_archive figure { position: relative; width: 100%; margin: 0; padding: 10px 10px 36px; background: var(--rpg-white); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18); transition: transform 0.5s var(--rpg-ease), box-shadow 0.5s; }
.rpg_archive li:nth-child(1) figure { --r: -3deg; }
.rpg_archive li:nth-child(2) figure { --r: 2deg; }
.rpg_archive li:nth-child(3) figure { --r: -1.5deg; }
.rpg_archive figure { transform: rotate(var(--r)); }
.rpg_archive figure:hover { transform: rotate(0deg) scale(1.05); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25); }
.rpg_archive img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: #e4e1dc; }

/* Filtri servizi */
.rpg_filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; }
.rpg_filter {
    padding: 10px 16px; border: 2px solid var(--rpg-secondary); border-radius: 999px; background: transparent;
    color: var(--rpg-secondary); font: 700 0.85rem var(--rpg-font-title); cursor: pointer;
    transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.rpg_filter:hover { border-color: var(--rpg-accent); }
.rpg_filter[aria-pressed="true"] { background: var(--rpg-secondary); color: var(--rpg-white); border-color: var(--rpg-secondary); }

/* Card servizi con luce che segue il puntatore */
.rpg_cards { display: grid; grid-template-columns: 1fr; gap: 20px; margin: 28px 0 0; padding: 0; list-style: none; }
.rpg_card {
    position: relative; overflow: hidden; padding: 24px; background: var(--rpg-white); border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06); transition: transform 0.3s var(--rpg-ease), box-shadow 0.3s;
}
.rpg_card::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.3s;
    background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(208, 160, 48, 0.22), transparent 70%);
}
.rpg_card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12); }
.rpg_card:hover::before { opacity: 1; }
.rpg_card[hidden] { display: none; }
.rpg_card:not([hidden]) { animation: rpg_pop 0.5s var(--rpg-ease) both; }
.rpg_card_icon { display: block; width: 44px; height: 44px; position: relative; }
.rpg_card_icon svg { width: 100%; height: 100%; fill: none; stroke: var(--rpg-accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.5s var(--rpg-ease); }
.rpg_card:hover .rpg_card_icon svg { transform: rotate(-12deg) scale(1.1); }
.rpg_card h4 { position: relative; margin: 14px 0 6px; font-size: 1.05rem; }
.rpg_card p { position: relative; margin: 0; font-size: 0.95rem; color: #3d3d3d; }

/* Lavori: card orizzontali, foto e testo alternati */
.rpg_works { display: grid; gap: 28px; margin: 32px 0 0; padding: 0; list-style: none; }
.rpg_work_card { display: grid; grid-template-columns: 1fr; min-height: 100%; background: var(--rpg-white); border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); overflow: hidden; min-width: 0; }
.rpg_work_card_media { position: relative; min-width: 0; }
.rpg_work_card_media img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #e4e1dc; }
.rpg_work_card_placeholder { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 4 / 3; background: var(--rpg-bg); color: #555; font-family: var(--rpg-font-title); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; }
.rpg_work_card_body { display: flex; flex-direction: column; gap: 8px; padding: 20px; min-width: 0; }
.rpg_work_card_body h3 { margin: 0; }
.rpg_work_card_actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.rpg_work_card_actions .rpg_btn { flex: 1 1 160px; text-align: center; cursor: pointer; }
.rpg_work_card .is-disabled { opacity: 0.45; pointer-events: none; }
@media (min-width: 600px) {
    .rpg_works { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
    .rpg_works { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .rpg_works.rpg_works_4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 760px) {
    .rpg_work_card_body { padding: 28px; }
}
/* Lavori: carosello a scorrimento (3 card su desktop, 2 su tablet, 1 su mobile) */
.rpg_carousel { position: relative; margin: 32px 0 0; }
.rpg_works.rpg_carousel_track {
    display: flex; gap: 28px; margin: 0; padding: 4px 4px 24px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.rpg_carousel_track::-webkit-scrollbar { display: none; }
.rpg_carousel_slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; }
.rpg_carousel_nav { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.rpg_carousel_btn {
    width: 44px; height: 44px; border: 0; border-radius: 50%; cursor: pointer;
    background: var(--rpg-accent); color: var(--rpg-text); font: 700 1.6rem/1 var(--rpg-font-title);
    transition: opacity 0.3s, transform 0.3s var(--rpg-ease);
}
.rpg_carousel_btn:hover:not(:disabled) { transform: scale(1.08); }
.rpg_carousel_btn:disabled { opacity: 0.35; cursor: default; }
.rpg_carousel.is-static .rpg_carousel_nav { display: none; }
@media (min-width: 600px) {
    .rpg_carousel_slide { flex-basis: calc((100% - 28px) / 2); }
}
@media (min-width: 900px) {
    .rpg_carousel_slide { flex-basis: calc((100% - 56px) / 3); }
}
@media (prefers-reduced-motion: reduce) {
    .rpg_works.rpg_carousel_track { scroll-behavior: auto; }
}
.rpg_work {
    display: grid; overflow: hidden; background: var(--rpg-white); border-radius: 10px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08); transition: transform 0.35s var(--rpg-ease), box-shadow 0.35s;
}
.rpg_work:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(0, 0, 0, 0.14); }
.rpg_work_media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #e4e1dc; transition: transform 0.6s var(--rpg-ease); }
.rpg_work_body { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 24px; }
.rpg_work_body h3 { margin: 0; font-size: 1.25rem; color: var(--rpg-secondary); }
.rpg_work_body .rpg_eyebrow { margin: 0; }
.rpg_work_num { display: block; margin-bottom: 8px; font-family: var(--rpg-font-title); font-weight: 700; font-size: 2.6rem; line-height: 1; color: var(--rpg-accent); }
@media (min-width: 760px) {
    .rpg_work { grid-template-columns: 1.15fr 1fr; }
    .rpg_work_rev { grid-template-columns: 1fr 1.15fr; }
    .rpg_work_rev .rpg_work_media { order: 2; }
    .rpg_work_body { padding: 40px; }
    .rpg_work_media img { aspect-ratio: auto; height: 100%; min-height: 300px; }
}

/* Lavori (galleria precedente, non più usata) */
.rpg_gallery { display: grid; grid-template-columns: 1fr; gap: 20px; margin: 32px 0 0; padding: 0; list-style: none; }
.rpg_gallery_item { margin: 0; }
.rpg_gallery_link { position: relative; display: block; overflow: hidden; border-radius: 4px; cursor: zoom-in; }
.rpg_gallery_item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #e4e1dc; transition: transform 0.6s var(--rpg-ease), filter 0.6s; }
.rpg_gallery_link::after {
    content: "+"; position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%;
    display: grid; place-items: center; background: var(--rpg-accent); color: var(--rpg-text); font: 700 1.4rem/1 var(--rpg-font-title);
    transform: scale(0); transition: transform 0.35s var(--rpg-ease);
}
.rpg_gallery_link:hover img, .rpg_gallery_link:focus-visible img { transform: scale(1.06); filter: saturate(1.1); }
.rpg_gallery_link:hover::after, .rpg_gallery_link:focus-visible::after { transform: scale(1); }
.rpg_gallery_item figcaption { padding-top: 10px; font-size: 0.92rem; color: #333; }

/* Mezzi e attrezzature */
.rpg_fleet { display: grid; gap: 20px; margin: 32px 0 0; }
.rpg_fleet_card { padding: 24px; background: var(--rpg-bg); border-radius: 10px; border-top: 4px solid var(--rpg-accent); }
.rpg_fleet_card h3 { font-size: 1.1rem; color: var(--rpg-secondary); margin-bottom: 12px; }
.rpg_fleet_card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 0.95rem; }
.rpg_fleet_card li { padding-left: 18px; position: relative; }
.rpg_fleet_card li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 8px; height: 8px; border-radius: 50%; background: var(--rpg-accent); }

/* Lavori in corso */
.rpg_inprogress { display: grid; gap: 14px; margin: 32px 0 0; padding: 0; list-style: none; }
.rpg_inprogress li { padding: 18px 20px 18px 24px; background: var(--rpg-white); border-left: 4px solid var(--rpg-accent); border-radius: 8px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); }
.rpg_inprogress strong { display: block; font-family: var(--rpg-font-title); font-size: 1rem; color: var(--rpg-secondary); margin-bottom: 2px; }

@media (min-width: 900px) {
    .rpg_fleet { grid-template-columns: repeat(3, 1fr); }
    .rpg_inprogress { grid-template-columns: 1fr 1fr; }
}

/* Certificazioni */
.rpg_cert_banner { margin: 32px 0 0; padding: 16px; background: var(--rpg-white); border-radius: 8px; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07); }
.rpg_cert_banner img { width: 100%; height: auto; }
.rpg_badges { display: grid; grid-template-columns: 1fr; gap: 20px; margin: 32px 0 0; padding: 0; list-style: none; }
/* Badge in stile float-badge di rpgmultimedia: carta bianca, icona in riquadro, titolo e sottotitolo */
.rpg_badge {
    position: relative; display: flex; align-items: center; gap: 12px; padding: 13px 16px;
    background: var(--rpg-white); border-radius: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s var(--rpg-ease), box-shadow 0.4s;
}
.rpg_badge:hover { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(0, 0, 0, 0.12); }
.rpg_badge_ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--rpg-accent); }
.rpg_badge_ic svg { width: 18px; height: 18px; fill: none; stroke: var(--rpg-text); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.rpg_badge strong { display: block; margin-bottom: 2px; font-family: var(--rpg-font-title); font-size: 0.95rem; color: var(--rpg-secondary); }
.rpg_badge small { display: block; font-size: 0.78rem; line-height: 1.3; color: #555; }

/* Contatti */
.rpg_contacts_grid { display: grid; grid-template-columns: 1fr; gap: 32px; margin-top: 32px; }
.rpg_contacts_grid h3 { font-size: 1.05rem; color: var(--rpg-secondary); margin-bottom: 6px; }
.rpg_phone_big { font-family: var(--rpg-font-title); font-weight: 700; font-size: 1.7rem; }
.rpg_phone_big a { color: var(--rpg-secondary); text-decoration: none; }
.rpg_map { margin-top: 32px; }
.rpg_map iframe { display: block; width: 100%; height: 360px; border: 0; border-radius: 6px; background: #e4e1dc; }


.rpg_contacts_intro, .rpg_section_intro { max-width: 60ch; margin: 24px 0 0; font-size: 1.02rem; color: #3d3d3d; }

/* Contatti: una card per sede, con mappa incorporata */
.rpg_offices { display: grid; grid-template-columns: 1fr; gap: 24px; margin: 32px 0 0; }
.rpg_office { display: flex; flex-direction: column; overflow: hidden; background: var(--rpg-white); border-radius: 8px; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07); }
.rpg_office_body { padding: 24px; }
.rpg_office h3 { margin-bottom: 4px; font-size: 1.15rem; color: var(--rpg-secondary); }
.rpg_office_name { margin-bottom: 16px; font-weight: 700; font-size: 0.95rem; }
.rpg_office_list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.rpg_office_list li { display: flex; align-items: flex-start; gap: 10px; }
.rpg_office_list svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 4px; fill: none; stroke: var(--rpg-accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rpg_office_list a { color: var(--rpg-text); font-weight: 500; text-decoration-color: var(--rpg-accent); text-underline-offset: 3px; }
.rpg_office_map iframe { display: block; width: 100%; height: 240px; border: 0; background: #e4e1dc; }
.rpg_contacts_note { margin-top: 24px; font-size: 0.9rem; color: #555; }

/* Footer: stesso schema delle schede di contatto (sedi, certificazioni, copyright) */
.rpg_footer { background: var(--rpg-dark); color: #E9E6E1; font-size: 0.92rem; }
.rpg_footer a { color: #E9E6E1; }
.rpg_footer_grid { display: grid; grid-template-columns: 1fr; gap: 32px; padding: 56px 16px; }
.rpg_footer_grid > div { line-height: 1.75; }
.rpg_footer_title { margin-bottom: 10px; font-family: var(--rpg-font-title); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rpg-accent); }
.rpg_footer_logo { display: inline-block; padding: 8px; margin-bottom: 12px; background: var(--rpg-white); border-radius: 4px; }
.rpg_footer_logo img { width: auto; height: 48px; }
.rpg_footer_name { margin-bottom: 4px; font-family: var(--rpg-font-title); font-weight: 700; }
.rpg_copy_links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; }
.rpg_copy_links a { color: #E9E6E1; text-decoration: underline; text-underline-offset: 3px; }
.rpg_copy_links .rpg_powered_by {
    display: inline-flex; align-items: center; gap: 5px; margin: 0; padding: 4px 8px;
    font-size: 11px; line-height: 1.2; color: rgba(0, 0, 0, 0.65); text-decoration: none;
    background: #FFFFFF; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15), 0 1px 1px -1px rgba(0, 0, 0, 0.15);
    transition: background-color 0.2s;
}
.rpg_copy_links .rpg_powered_by:hover { background: #DDDDDD; }
.rpg_copy_links .rpg_powered_by img { width: 14px; height: 14px; }
.rpg_copyright { padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.82rem; color: #A9A6A1; text-align: center; }

/* Lightbox con navigazione */
.rpg_lightbox { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 94vh; overflow: visible; }
.rpg_lightbox[open] { animation: rpg_fade 0.3s var(--rpg-ease) both; }
.rpg_lightbox::backdrop { background: rgba(20, 22, 25, 0.92); }
.rpg_lightbox img { max-width: 96vw; max-height: 86vh; width: auto; height: auto; margin: 0 auto; }
.rpg_lightbox_btn {
    position: absolute; width: 44px; height: 44px; border: 0; border-radius: 50%; cursor: pointer;
    background: var(--rpg-accent); color: var(--rpg-text); font: 700 1.5rem/1 var(--rpg-font-title);
}
.rpg_lightbox_close { top: 8px; right: 8px; }
.rpg_lightbox_prev { top: 50%; left: 8px; transform: translateY(-50%); }
.rpg_lightbox_next { top: 50%; right: 8px; transform: translateY(-50%); }
.rpg_lightbox_count { position: absolute; left: 0; bottom: -28px; color: #ddd; font-size: 0.85rem; }

/* Comparsa allo scroll: attiva solo con JavaScript */
.rpg_js .rpg_reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--rpg-ease), transform 0.8s var(--rpg-ease); transition-delay: var(--d, 0ms); }
.rpg_js .rpg_reveal.is-visible { opacity: 1; transform: none; }
.rpg_js .rpg_card.rpg_reveal.is-visible { transform: none; }

/* Varianti di entrata (data-reveal): stato iniziale finché l'elemento non è visibile */
.rpg_js .rpg_reveal[data-reveal="left"]:not(.is-visible) { transform: translateX(-48px); }
.rpg_js .rpg_reveal[data-reveal="right"]:not(.is-visible) { transform: translateX(48px); }
.rpg_js .rpg_reveal[data-reveal="zoom"]:not(.is-visible) { transform: scale(0.92) translateY(16px); }
.rpg_js .rpg_reveal[data-reveal="pop"]:not(.is-visible) { transform: scale(0.7); }
.rpg_js .rpg_reveal[data-reveal="drop"]:not(.is-visible) { transform: translateY(-60px) rotate(-10deg) scale(0.9); }
.rpg_js .rpg_reveal[data-reveal="pop"] { transition-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1); }
.rpg_js .rpg_reveal[data-reveal="drop"] { transition-duration: 1s; transition-timing-function: cubic-bezier(0.34, 1.4, 0.64, 1); }

/* Titoli: la barretta sotto l'h2 si allunga quando il titolo entra */
.rpg_js h2::after { transition: transform 0.9s var(--rpg-ease) 0.25s; }
.rpg_js h2.rpg_reveal:not(.is-visible)::after,
.rpg_js .rpg_reveal:not(.is-visible) h2::after { transform: scaleX(0); }

/* Eyebrow: le lettere si avvicinano mentre compare */
.rpg_js .rpg_eyebrow.rpg_reveal { transition-property: opacity, transform, letter-spacing; }
.rpg_js .rpg_eyebrow.rpg_reveal:not(.is-visible) { letter-spacing: 0.4em; }

/* Card lavori: la foto si svela da sinistra e si "assesta" con un leggero zoom */
.rpg_js .rpg_reveal .rpg_work_card_media { clip-path: inset(0 0 0 0); transition: clip-path 1.1s var(--rpg-ease); transition-delay: calc(var(--d, 0ms) + 150ms); }
.rpg_js .rpg_reveal:not(.is-visible) .rpg_work_card_media { clip-path: inset(0 100% 0 0); }
.rpg_js .rpg_reveal .rpg_work_card_media img { transition: transform 1.6s var(--rpg-ease); transition-delay: calc(var(--d, 0ms) + 150ms); }
.rpg_js .rpg_reveal:not(.is-visible) .rpg_work_card_media img { transform: scale(1.18); }

/* Foto d'archivio: il parallasse usa "translate" per non toccare rotazione e comparsa */
.rpg_archive li { will-change: translate; }

/* Keyframes */
@keyframes rpg_word { to { opacity: 1; transform: none; } }
@keyframes rpg_fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rpg_pop { from { opacity: 0; transform: scale(0.96) translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes rpg_zoom { from { background-size: 112% auto; } to { background-size: 100% auto; } }
@keyframes rpg_ticker { to { transform: translateX(-50%); } }
@keyframes rpg_spread { 0% { width: 0; } 60%, 100% { width: 100%; } }
@keyframes rpg_trowel { 0% { left: 0; } 60% { left: calc(100% - 14px); } 61%, 100% { left: calc(100% - 14px); opacity: 0; } }
@keyframes rpg_shine { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* Tablet e desktop */
@media (min-width: 600px) {
    .rpg_gallery { grid-template-columns: repeat(2, 1fr); }
    .rpg_badges { grid-template-columns: repeat(3, 1fr); }
    .rpg_cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 700px) {
    .rpg_contacts_grid { grid-template-columns: 1fr 1fr; }
    .rpg_footer_grid { grid-template-columns: 1fr 1fr; }
    .rpg_footer_legale { white-space: nowrap; }
}
@media (min-width: 1180px) {
    .rpg_logo_claim { display: block; }
}
@media (min-width: 900px) {
    .rpg_menu_toggle, .rpg_nav_call_m { display: none; }
    :root { --rpg-header-h: 120px; }
    html { scroll-padding-top: 72px; }
    .rpg_topbar { display: block; }
    .rpg_header_call { order: 0; margin-left: 0; gap: 8px; padding: 11px 22px; font-size: 0.88rem; }
    .rpg_header_call:hover, .rpg_header_call:focus-visible { transform: translateY(-1px); }
    .rpg_nav { position: static; display: block; margin-left: auto; padding: 0; background: none; overflow: visible; }
    .rpg_header.is-open .rpg_nav { animation: none; }
    .rpg_nav_list { flex-direction: row; align-items: center; gap: 4px; padding: 0; }
    .rpg_header.is-open .rpg_nav_list > li { animation: none; }
    .rpg_nav_num { display: none; }
    /* Voci in maiuscolo con sottolineatura oro che si allunga da sinistra (hover e sezione attiva) */
    .rpg_nav_link {
        position: relative; padding: 10px 12px; border-bottom: 0;
        font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rpg-text);
    }
    .rpg_nav_link::after {
        content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px;
        background: var(--rpg-accent); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--rpg-ease);
    }
    .rpg_nav_link:hover, .rpg_nav_link:focus-visible, .rpg_nav_link.is-active { color: var(--rpg-secondary); }
    .rpg_nav_link:hover::after, .rpg_nav_link:focus-visible::after, .rpg_nav_link.is-active::after { transform: scaleX(1); }
    .rpg_about_grid { grid-template-columns: 1fr 1fr; gap: 88px; }
    .rpg_offices { grid-template-columns: 1fr 1fr; }
    .rpg_footer_grid { grid-template-columns: 1fr 1fr auto; }
    .rpg_cards { grid-template-columns: repeat(3, 1fr); }
    .rpg_gallery { grid-template-columns: repeat(3, 1fr); }
    .rpg_section { padding: 96px 0; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
    .rpg_word, .rpg_intro { opacity: 1; transform: none; }
    .rpg_ticker_track { animation: none; }
    .rpg_js .rpg_reveal { opacity: 1; transform: none; }
    .rpg_js .rpg_reveal[data-reveal]:not(.is-visible) { transform: none; }
    .rpg_js .rpg_reveal:not(.is-visible) h2::after, .rpg_js h2.rpg_reveal:not(.is-visible)::after { transform: none; }
    .rpg_js .rpg_reveal:not(.is-visible) .rpg_work_card_media { clip-path: none; }
    .rpg_js .rpg_reveal:not(.is-visible) .rpg_work_card_media img { transform: none; }
    .rpg_archive li { translate: none !important; }
    .rpg_floor_resin { width: 100%; }
    .rpg_magnetic { transform: none; }
}
