/*
Theme Name: Restyle Italia
Theme URI: https://restyleitalia.it
Description: Tema WordPress custom per Restyle Italia — ristrutturazioni di interni di pregio a Roma.
Author: Restyle Italia
Author URI: https://restyleitalia.it
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: restyleitalia
*/

/* ===================================================
   RESTYLE ITALIA — Homepage V2
   =================================================== */

/* FONTS */
@font-face {
    font-family: 'Helvetica Now';
    src: url('fonts/HelveticaNowVar.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* RESET & VARIABLES */
html { scrollbar-gutter: stable; overflow-y: scroll; }
.ri-home *, .ri-home *::before, .ri-home *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --ri-black: #0a0a0a;
    --ri-white: #ffffff;
    --ri-cream: #f8f7f4;
    --ri-sand: #edeae4;
    --ri-grey: #999892;
    --ri-grey-dark: #5a5955;
    --ri-serif: 'abril-display', 'Georgia', serif;
    --ri-sans: 'Helvetica Now', 'Helvetica Neue', Arial, sans-serif;
    --ri-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ri-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

.ri-home {
    font-family: var(--ri-sans);
    color: var(--ri-black);
    background: var(--ri-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    line-height: 1.6;
}

.ri-home a { color: inherit; text-decoration: none; }
.ri-home img { display: block; max-width: 100%; }
.ri-home button { border: none; background: none; cursor: pointer; font-family: inherit; }

/* UTILITIES */
.ri-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(24px, 4vw, 72px);
}

.ri-label {
    font-family: var(--ri-sans);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ri-grey);
}

.ri-section-number {
    font-family: var(--ri-serif);
    font-size: 0.88rem;
    font-weight: 300;
    color: var(--ri-grey);
    display: inline-block;
    margin-right: 12px;
}

/* ===================================================
   HEADER — DESKTOP
   =================================================== */
.ri-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: background 0.5s var(--ri-ease), box-shadow 0.5s var(--ri-ease);
}

/* WordPress admin bar offset */
body.admin-bar .ri-header { top: 32px; }
@media (max-width: 782px) {
    body.admin-bar .ri-header { top: 46px; }
}
body.admin-bar .ri-mobile-menu { top: 32px; }
@media (max-width: 782px) {
    body.admin-bar .ri-mobile-menu { top: 46px; }
}

.ri-header--hero .ri-header-topbar { color: rgba(255,255,255,0.5); border-bottom-color: rgba(255,255,255,0.1); }
.ri-header--hero .ri-topbar-right a { color: rgba(255,255,255,0.5); }
.ri-header--hero .ri-topbar-right a:hover { color: var(--ri-white); }
.ri-header--hero .ri-logo { color: var(--ri-white); }
.ri-header--hero .ri-desktop-nav a { color: rgba(255,255,255,0.85); }
.ri-header--hero .ri-desktop-nav a .ri-nav-num { color: rgba(255,255,255,0.4); }
.ri-header--hero .ri-desktop-nav a::after { background: var(--ri-white); }
.ri-header--hero .ri-desktop-nav a:hover .ri-nav-num { color: var(--ri-white); }
.ri-header--hero .ri-header-cta { color: var(--ri-white); border-color: rgba(255,255,255,0.5); }
.ri-header--hero .ri-header-cta:hover { background: var(--ri-white); color: var(--ri-black); }
.ri-header--hero .ri-hamburger span { background: var(--ri-white); }

.ri-header.scrolled {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.ri-header.scrolled .ri-header-topbar { color: var(--ri-grey); border-bottom-color: rgba(0,0,0,0.06); }
.ri-header.scrolled .ri-topbar-right a { color: var(--ri-grey); }
.ri-header.scrolled .ri-topbar-right a:hover { color: var(--ri-black); }
.ri-header.scrolled .ri-logo { color: var(--ri-black) !important; }
.ri-header.scrolled .ri-desktop-nav a { color: var(--ri-black); }
.ri-header.scrolled .ri-desktop-nav a .ri-nav-num { color: var(--ri-grey); }
.ri-header.scrolled .ri-desktop-nav a::after { background: var(--ri-black); }
.ri-header.scrolled .ri-header-cta { color: var(--ri-black); border-color: var(--ri-black); }
.ri-header.scrolled .ri-header-cta:hover { background: var(--ri-black); color: var(--ri-white); }
.ri-header.scrolled .ri-hamburger span { background: var(--ri-black); }

.ri-header-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px clamp(24px, 4vw, 72px) 12px;
    max-width: 1400px;
    margin: 0 auto;
    font-size: 0.62rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--ri-grey);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: opacity 0.4s, height 0.4s, padding 0.4s, border-color 0.4s, color 0.4s;
}

.ri-header.scrolled .ri-header-topbar {
    height: 0;
    padding: 0 clamp(24px, 4vw, 72px);
    overflow: hidden;
    opacity: 0;
    border-color: transparent;
}

.ri-topbar-left span,
.ri-topbar-right a {
    transition: color 0.3s;
}

.ri-topbar-right {
    display: flex;
    gap: 24px;
}

.ri-topbar-right a:hover { color: var(--ri-black); }

.ri-header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(24px, 4vw, 72px);
    height: 64px;
    max-width: 1400px;
    margin: 0 auto;
}

.ri-logo {
    font-family: var(--ri-serif);
    font-size: 1.85rem;
    font-weight: 300;
    letter-spacing: 0.005em;
    white-space: nowrap;
    z-index: 110;
    transition: color 0.4s;
    text-decoration: none;
}
.ri-logo:hover { text-decoration: none; }

.ri-logo i { font-style: italic; font-weight: 300; }
.ri-logo b { font-weight: 600; }

.ri-desktop-nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.ri-desktop-nav a {
    font-family: var(--ri-sans);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding: 6px 0;
    transition: color 0.3s;
}

.ri-desktop-nav a .ri-nav-num {
    font-family: var(--ri-serif);
    font-size: 0.66rem;
    font-weight: 300;
    color: var(--ri-grey);
    transition: color 0.3s;
}

.ri-desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--ri-black);
    transition: width 0.5s var(--ri-ease);
}

.ri-desktop-nav a:hover::after { width: 100%; }
.ri-desktop-nav a:hover .ri-nav-num { color: var(--ri-black); }

.ri-header-cta {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    padding: 11px 28px;
    border: 1px solid var(--ri-black);
    transition: all 0.35s var(--ri-ease);
}

.ri-header-cta:hover {
    background: var(--ri-black);
    color: var(--ri-white);
}

/* ===================================================
   HEADER — MOBILE HAMBURGER
   =================================================== */
.ri-hamburger {
    display: none;
    width: 32px;
    height: 24px;
    position: relative;
    z-index: 110;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
}

.ri-hamburger span {
    display: block;
    height: 1.5px;
    background: var(--ri-black);
    border-radius: 1px;
    transition: all 0.45s var(--ri-ease);
    transform-origin: center;
}

.ri-hamburger span:nth-child(1) { width: 100%; }
.ri-hamburger span:nth-child(2) { width: 60%; }
.ri-hamburger span:nth-child(3) { width: 80%; }

.ri-hamburger.active span { background: var(--ri-black); }
.ri-hamburger.active span:nth-child(1) { width: 100%; transform: translateY(11px) rotate(45deg); }
.ri-hamburger.active span:nth-child(2) { width: 100%; opacity: 0; transform: translateX(20px); }
.ri-hamburger.active span:nth-child(3) { width: 100%; transform: translateY(-11px) rotate(-45deg); }

.ri-mobile-menu-close {
    position: absolute;
    top: 20px;
    right: clamp(24px, 4vw, 32px);
    z-index: 110;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.ri-mobile-menu-close svg { width: 22px; height: 22px; stroke: var(--ri-black); stroke-width: 1.5; }
.ri-mobile-menu-close:hover svg { stroke: var(--ri-grey-dark); }

/* ===================================================
   MOBILE FULLSCREEN MENU
   =================================================== */
.ri-mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 105;
    background: var(--ri-white);
    display: flex;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s var(--ri-ease), visibility 0.6s;
}

.ri-mobile-menu.open { opacity: 1; visibility: visible; }

.ri-mobile-menu-image {
    width: 40%;
    position: relative;
    overflow: hidden;
    display: none;
}

.ri-mobile-menu-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    transition: transform 1.2s var(--ri-ease);
}

.ri-mobile-menu.open .ri-mobile-menu-image img { transform: scale(1); }

.ri-mobile-menu-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px clamp(32px, 8vw, 80px);
    position: relative;
}

.ri-mobile-menu-nav { list-style: none; margin-bottom: 60px; }
.ri-mobile-menu-nav li { overflow: hidden; }

.ri-mobile-menu-nav a {
    display: flex;
    align-items: baseline;
    gap: 16px;
    font-family: var(--ri-serif);
    font-size: clamp(2.2rem, 5.5vw, 3.85rem);
    font-weight: 300;
    color: var(--ri-black);
    padding: 10px 0;
    transform: translateY(110%);
    transition: transform 0.6s var(--ri-ease-out), opacity 0.3s;
    opacity: 0.85;
    border-bottom: 1px solid var(--ri-sand);
}

.ri-mobile-menu-nav a:hover { opacity: 1; }

.ri-mobile-menu-nav a .ri-m-num {
    font-size: 0.7rem;
    font-family: var(--ri-sans);
    letter-spacing: 0.1em;
    color: var(--ri-grey);
    font-weight: 400;
    min-width: 24px;
}

.ri-mobile-menu.open .ri-mobile-menu-nav a { transform: translateY(0); }

.ri-mobile-menu-nav li:nth-child(1) a { transition-delay: 0.15s; }
.ri-mobile-menu-nav li:nth-child(2) a { transition-delay: 0.2s; }
.ri-mobile-menu-nav li:nth-child(3) a { transition-delay: 0.25s; }
.ri-mobile-menu-nav li:nth-child(4) a { transition-delay: 0.3s; }
.ri-mobile-menu-nav li:nth-child(5) a { transition-delay: 0.35s; }
.ri-mobile-menu-nav li:nth-child(6) a { transition-delay: 0.4s; }

.ri-mobile-menu-footer { display: flex; flex-wrap: wrap; gap: 40px; }

.ri-mobile-menu-footer-col h5 {
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ri-grey);
    margin-bottom: 12px;
}

.ri-mobile-menu-footer-col p,
.ri-mobile-menu-footer-col a {
    font-size: 0.85rem;
    color: var(--ri-grey-dark);
    font-weight: 300;
    line-height: 1.8;
    display: block;
}

.ri-mobile-menu-footer-col a:hover { color: var(--ri-black); }

body.ri-menu-open .ri-logo { color: var(--ri-black) !important; }
body.ri-menu-open .ri-hamburger span { background: var(--ri-black) !important; }

/* ===================================================
   HERO — FULLSCREEN
   =================================================== */
.ri-hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.ri-hero-slides { position: absolute; inset: 0; z-index: 1; }

.ri-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.6s ease-in-out, visibility 1.6s ease-in-out;
}

.ri-hero-slide.active { opacity: 1; visibility: visible; }

.ri-hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.78);
}

.ri-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(180deg,
            rgba(10,10,10,0.55) 0%,
            rgba(10,10,10,0.22) 40%,
            rgba(10,10,10,0.20) 55%,
            rgba(10,10,10,0.60) 100%
        );
}

.ri-hero-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(120px, 14vh, 180px) clamp(32px, 4vw, 72px) clamp(48px, 6vh, 72px);
    max-width: 1400px;
    margin: 0 auto;
    color: var(--ri-white);
}

.ri-hero-top { max-width: 700px; }

.ri-hero-label-top {
    font-family: var(--ri-sans);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.82);
    margin-bottom: 28px;
    text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}

.ri-hero-claim {
    font-family: var(--ri-serif);
    font-size: clamp(3.74rem, 7.5vw, 7.92rem);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -0.025em;
    color: var(--ri-white);
    margin-bottom: 28px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.25), 0 1px 4px rgba(0,0,0,0.15);
}

.ri-hero-claim i { font-style: italic; font-weight: 400; }

.ri-hero-subtitle {
    font-family: var(--ri-serif);
    font-size: clamp(1.19rem, 1.65vw, 1.54rem);
    font-weight: 400;
    font-style: italic;
    color: rgba(255,255,255,0.92);
    line-height: 1.6;
    max-width: 480px;
    text-shadow: 0 1px 10px rgba(0,0,0,0.3);
}

.ri-hero-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.ri-hero-labels { display: flex; gap: 48px; }

.ri-hero-label-item .ri-label {
    margin-bottom: 4px;
    color: rgba(255,255,255,0.45);
}

.ri-hero-label-item span {
    font-family: var(--ri-serif);
    font-size: 1.98rem;
    font-weight: 300;
    color: var(--ri-white);
}

.ri-scroll-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 500;
    color: rgba(255,255,255,0.45);
}

.ri-scroll-line {
    width: 32px;
    height: 1px;
    background: rgba(255,255,255,0.3);
    position: relative;
    overflow: hidden;
}

.ri-scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--ri-white);
    animation: riScrollPulse 2.5s ease-in-out infinite;
}

@keyframes riScrollPulse {
    0% { left: -100%; }
    50% { left: 0; }
    100% { left: 100%; }
}

.ri-hero-dots {
    position: absolute;
    bottom: clamp(48px, 6vh, 72px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: 10px;
}

.ri-hero-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.4s var(--ri-ease);
}

.ri-hero-dot.active {
    background: var(--ri-white);
    transform: scale(1.3);
}

/* ===================================================
   ABOUT
   =================================================== */
.ri-about {
    padding: clamp(80px, 12vw, 160px) 0;
}

.ri-about-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-bottom: 80px;
}

.ri-about-header-left .ri-label {
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ri-about-title {
    font-family: var(--ri-serif);
    font-size: clamp(2.2rem, 3.5vw, 3.74rem);
    font-weight: 300;
    line-height: 1.12;
    letter-spacing: -0.01em;
}

.ri-about-header-right {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.ri-about-text {
    font-size: 0.88rem;
    line-height: 1.8;
    color: var(--ri-grey-dark);
    font-weight: 300;
    max-width: 520px;
}

.ri-about-divider {
    width: 48px;
    height: 1px;
    background: var(--ri-black);
    margin: 32px 0;
}

.ri-about-text-italic {
    font-family: var(--ri-serif);
    font-size: 1.27rem;
    font-style: italic;
    font-weight: 300;
    line-height: 1.65;
    color: var(--ri-grey-dark);
}

.ri-about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--ri-sand);
    border-top: 1px solid var(--ri-sand);
    border-bottom: 1px solid var(--ri-sand);
}

.ri-stat {
    background: var(--ri-white);
    padding: 40px 32px;
}

.ri-stat-num {
    font-family: var(--ri-serif);
    font-size: 3.3rem;
    font-weight: 300;
    line-height: 1;
    margin-bottom: 8px;
}

.ri-stat-desc {
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ri-grey);
}

/* ===================================================
   SERVICES
   =================================================== */
.ri-services {
    padding: clamp(80px, 10vw, 140px) 0;
    background: var(--ri-cream);
}

.ri-services-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 72px;
}

.ri-services-title {
    font-family: var(--ri-serif);
    font-size: clamp(2.2rem, 3.3vw, 3.3rem);
    font-weight: 300;
    line-height: 1.15;
}

.ri-link-arrow {
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 3px;
    border-bottom: 1px solid var(--ri-black);
    transition: gap 0.35s var(--ri-ease);
    white-space: nowrap;
}

.ri-link-arrow:hover { gap: 14px; }
.ri-link-arrow svg { width: 14px; height: 14px; transition: transform 0.35s var(--ri-ease); }
.ri-link-arrow:hover svg { transform: translateX(2px); }

.ri-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.ri-service-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.ri-service-card-img {
    aspect-ratio: 3/4;
    overflow: hidden;
}

.ri-service-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.88);
    transition: transform 0.9s var(--ri-ease), filter 0.6s;
}

.ri-service-card:hover .ri-service-card-img img {
    transform: scale(1.06);
    filter: brightness(0.72);
}

.ri-service-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 36px 28px;
    background: linear-gradient(0deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0) 55%);
}

.ri-service-card-overlay .ri-label { color: rgba(255,255,255,0.55); margin-bottom: 8px; }

.ri-service-card-name {
    font-family: var(--ri-serif);
    font-size: 1.98rem;
    font-weight: 300;
    color: var(--ri-white);
    line-height: 1.2;
}

.ri-service-card-arrow {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.4s var(--ri-ease);
}

.ri-service-card:hover .ri-service-card-arrow { opacity: 1; transform: translateY(0); }
.ri-service-card-arrow svg { width: 16px; height: 16px; stroke: var(--ri-white); }

/* ===================================================
   WORKS
   =================================================== */
.ri-works {
    padding: clamp(80px, 12vw, 160px) 0;
}

.ri-works-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 72px;
}

.ri-works-title {
    font-family: var(--ri-serif);
    font-size: clamp(2.2rem, 3.3vw, 3.3rem);
    font-weight: 300;
    line-height: 1.15;
}

.ri-works-mosaic {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    align-items: start;
}

.ri-work-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.ri-work-item:nth-child(1) { grid-column: 1 / 8; }
.ri-work-item:nth-child(2) { grid-column: 8 / 13; }
.ri-work-item:nth-child(3) { grid-column: 1 / 5; }
.ri-work-item:nth-child(4) { grid-column: 5 / 13; }
.ri-work-item:nth-child(5) { grid-column: 1 / 7; }
.ri-work-item:nth-child(6) { grid-column: 7 / 13; }

.ri-work-item-img {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.ri-work-item:nth-child(2) .ri-work-item-img,
.ri-work-item:nth-child(3) .ri-work-item-img {
    aspect-ratio: 4/5;
}

.ri-work-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s var(--ri-ease);
}

.ri-work-item:hover .ri-work-item-img img { transform: scale(1.04); }

.ri-work-item-info {
    padding: 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.ri-work-item-name {
    font-family: var(--ri-serif);
    font-size: 1.21rem;
    font-weight: 400;
}

.ri-work-item-meta {
    font-size: 0.68rem;
    color: var(--ri-grey);
    font-weight: 400;
    letter-spacing: 0.02em;
}

/* ===================================================
   QUOTE
   =================================================== */
.ri-quote {
    padding: clamp(80px, 12vw, 140px) 0;
    background: var(--ri-black);
    color: var(--ri-white);
    text-align: center;
}

.ri-quote-text {
    font-family: var(--ri-serif);
    font-size: clamp(2.2rem, 4.4vw, 4.62rem);
    font-weight: 300;
    font-style: italic;
    line-height: 1.2;
    max-width: 880px;
    margin: 0 auto 28px;
}

.ri-quote .ri-label { color: rgba(255,255,255,0.3); }

/* ===================================================
   PRESS
   =================================================== */
.ri-press {
    padding: clamp(80px, 10vw, 140px) 0;
    background: var(--ri-cream);
}

.ri-press-top { margin-bottom: 56px; }

.ri-press-title {
    font-family: var(--ri-serif);
    font-size: clamp(1.98rem, 2.75vw, 2.86rem);
    font-weight: 300;
    margin-top: 20px;
}

.ri-press-logos {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 0;
    border-top: 1px solid var(--ri-sand);
    border-bottom: 1px solid var(--ri-sand);
    flex-wrap: wrap;
    gap: 24px 48px;
}

.ri-press-logo {
    font-family: var(--ri-serif);
    font-size: 1.54rem;
    font-weight: 400;
    color: var(--ri-grey);
    white-space: nowrap;
    transition: color 0.3s;
}

.ri-press-logo:hover { color: var(--ri-black); }
.ri-press-logo.it { font-style: italic; }
.ri-press-logo.san {
    font-family: var(--ri-sans);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.ri-press-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 56px;
}

.ri-press-card {
    border-top: 1px solid var(--ri-sand);
    padding-top: 28px;
}

.ri-press-card .ri-label { margin-bottom: 14px; }

.ri-press-card-title {
    font-family: var(--ri-serif);
    font-size: 1.21rem;
    font-weight: 400;
    line-height: 1.35;
    margin-bottom: 10px;
}

.ri-press-card-excerpt {
    font-size: 0.82rem;
    color: var(--ri-grey-dark);
    font-weight: 300;
    line-height: 1.7;
}

/* ===================================================
   NEWS
   =================================================== */
.ri-news {
    padding: clamp(80px, 12vw, 160px) 0;
}

.ri-news-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 64px;
}

.ri-news-title {
    font-family: var(--ri-serif);
    font-size: clamp(1.98rem, 2.75vw, 2.86rem);
    font-weight: 300;
    margin-top: 20px;
}

.ri-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.ri-news-card { cursor: pointer; }

.ri-news-card-img {
    aspect-ratio: 3/2;
    overflow: hidden;
    margin-bottom: 18px;
    background: var(--ri-cream);
}

.ri-news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ri-ease);
}

.ri-news-card:hover .ri-news-card-img img { transform: scale(1.04); }

.ri-news-card-date {
    font-size: 0.68rem;
    color: var(--ri-grey);
    font-weight: 400;
    margin-bottom: 8px;
}

.ri-news-card-title {
    font-family: var(--ri-serif);
    font-size: 1.21rem;
    font-weight: 400;
    line-height: 1.35;
    margin-bottom: 8px;
    transition: opacity 0.3s;
}

.ri-news-card:hover .ri-news-card-title { opacity: 0.7; }

.ri-news-card-excerpt {
    font-size: 0.82rem;
    color: var(--ri-grey-dark);
    font-weight: 300;
    line-height: 1.7;
}

/* ===================================================
   CONTACT
   =================================================== */
.ri-contact {
    padding: clamp(80px, 10vw, 140px) 0;
    background: var(--ri-cream);
}

.ri-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
}

.ri-contact-left .ri-label { margin-bottom: 28px; display: flex; align-items: center; gap: 8px; }

.ri-contact-heading {
    font-family: var(--ri-serif);
    font-size: clamp(2.2rem, 3.3vw, 3.3rem);
    font-weight: 300;
    line-height: 1.12;
    margin-bottom: 28px;
}

.ri-contact-subtitle {
    font-family: var(--ri-serif);
    font-style: italic;
    font-size: 1.21rem;
    font-weight: 300;
    color: var(--ri-grey-dark);
    line-height: 1.6;
    max-width: 380px;
}

.ri-contact-details {
    margin-top: 56px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.ri-contact-detail .ri-label { margin-bottom: 6px; }

.ri-contact-detail a {
    font-family: var(--ri-serif);
    font-size: 1.21rem;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.ri-contact-detail a:hover { border-bottom-color: var(--ri-black); }

.ri-contact-form { padding-top: 12px; }

.ri-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.ri-form-field { margin-bottom: 28px; }

.ri-form-field label {
    display: block;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ri-grey);
    margin-bottom: 10px;
}

.ri-form-field input,
.ri-form-field textarea,
.ri-form-field select {
    width: 100%;
    padding: 12px 0;
    font-family: var(--ri-sans);
    font-size: 0.88rem;
    font-weight: 300;
    border: none;
    border-bottom: 1px solid var(--ri-sand);
    background: transparent;
    outline: none;
    transition: border-color 0.3s;
    color: var(--ri-black);
    -webkit-appearance: none;
}

.ri-form-field input:focus,
.ri-form-field textarea:focus,
.ri-form-field select:focus {
    border-bottom-color: var(--ri-black);
}

.ri-form-field textarea { resize: vertical; min-height: 90px; }

.ri-form-field input::placeholder,
.ri-form-field textarea::placeholder {
    color: var(--ri-grey);
}

.ri-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--ri-sans);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    padding: 16px 40px;
    background: var(--ri-black);
    color: var(--ri-white);
    border: 1px solid var(--ri-black);
    cursor: pointer;
    transition: all 0.35s var(--ri-ease);
}

.ri-btn-primary:hover {
    background: transparent;
    color: var(--ri-black);
}

/* ===================================================
   FOOTER
   =================================================== */
.ri-footer {
    padding: 56px 0 36px;
    background: var(--ri-black);
    color: var(--ri-white);
}

.ri-footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 52px;
}

.ri-footer .ri-logo { color: var(--ri-white); font-size: 1.2rem; margin-bottom: 14px; }
.ri-footer .ri-logo i { color: rgba(255,255,255,0.6); }

.ri-footer-about {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.45);
    font-weight: 300;
    line-height: 1.7;
    max-width: 280px;
}

.ri-footer-col h6 {
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    margin-bottom: 18px;
}

.ri-footer-col ul { list-style: none; }
.ri-footer-col li { margin-bottom: 8px; }

.ri-footer-col a {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.6);
    font-weight: 300;
    transition: color 0.3s;
}

.ri-footer-col a:hover { color: var(--ri-white); }

.ri-footer-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.ri-footer-bar p {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.3);
    font-weight: 300;
}

.ri-footer-social { display: flex; gap: 20px; }

.ri-footer-social a {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 500;
    transition: color 0.3s;
}

.ri-footer-social a:hover { color: var(--ri-white); }

/* ===================================================
   SCROLL REVEAL
   =================================================== */
.ri-reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.85s var(--ri-ease), transform 0.85s var(--ri-ease);
}

.ri-reveal.vis {
    opacity: 1;
    transform: translateY(0);
}

.ri-reveal-delay-1 { transition-delay: 0.1s; }
.ri-reveal-delay-2 { transition-delay: 0.2s; }
.ri-reveal-delay-3 { transition-delay: 0.3s; }

/* ===================================================
   RESPONSIVE — TABLET
   =================================================== */
@media (max-width: 1024px) {
    .ri-desktop-nav { gap: 28px; }
    .ri-desktop-nav a { font-size: 0.62rem; }
    .ri-about-header { gap: 48px; }
    .ri-works-mosaic { grid-template-columns: 1fr 1fr; }
    .ri-work-item:nth-child(1) { grid-column: 1 / 2; }
    .ri-work-item:nth-child(2) { grid-column: 2 / 3; }
    .ri-work-item:nth-child(3) { grid-column: 1 / 2; }
    .ri-work-item:nth-child(4) { grid-column: 2 / 3; }
    .ri-work-item:nth-child(5) { grid-column: 1 / 2; }
    .ri-work-item:nth-child(6) { grid-column: 2 / 3; }
    .ri-work-item .ri-work-item-img { aspect-ratio: 4/3 !important; }
    .ri-press-cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    .ri-header-topbar { display: none; }
    .ri-desktop-nav { display: none; }
    .ri-header-cta { display: none; }
    .ri-hamburger { display: flex; }
    .ri-mobile-menu-image { display: block; }
}

/* ===================================================
   RESPONSIVE — MOBILE
   =================================================== */
@media (max-width: 768px) {
    .ri-header-topbar { display: none; }
    .ri-desktop-nav { display: none; }
    .ri-header-cta { display: none; }
    .ri-hamburger { display: flex; }

    .ri-header-main { height: 60px; }

    .ri-hero { height: 100vh; height: 100svh; }
    .ri-hero-claim { font-size: clamp(2.8rem, 10vw, 4.2rem); }
    .ri-hero-content { padding: 90px 24px 36px; }
    .ri-hero-labels { flex-wrap: wrap; gap: 24px; }
    .ri-hero-dots { bottom: 36px; }
    .ri-hero-bottom { flex-direction: column; gap: 24px; align-items: flex-start; }
    .ri-scroll-indicator { display: none; }

    .ri-mobile-menu-image { display: none; }
    .ri-mobile-menu-content { padding: 100px 32px 48px; }
    .ri-mobile-menu-nav a {
        font-size: clamp(1.8rem, 7vw, 2.4rem);
        padding: 12px 0;
    }
    .ri-mobile-menu-footer { gap: 28px; }

    .ri-about-header { grid-template-columns: 1fr; gap: 32px; }
    .ri-about-stats { grid-template-columns: repeat(2, 1fr); }

    .ri-services-grid { grid-template-columns: 1fr; }
    .ri-services-top { flex-direction: column; align-items: flex-start; gap: 20px; }

    .ri-works-mosaic { grid-template-columns: 1fr; }
    .ri-work-item:nth-child(n) { grid-column: auto; }
    .ri-work-item .ri-work-item-img { aspect-ratio: 3/2 !important; }
    .ri-works-top { flex-direction: column; align-items: flex-start; gap: 20px; }

    .ri-press-logos { justify-content: flex-start; }
    .ri-press-cards { grid-template-columns: 1fr; }

    .ri-news-top { flex-direction: column; align-items: flex-start; gap: 20px; }
    .ri-news-grid { grid-template-columns: 1fr; }

    .ri-contact-grid { grid-template-columns: 1fr; gap: 48px; }
    .ri-form-row { grid-template-columns: 1fr; }

    .ri-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .ri-footer-bar { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 600px) {
    .ri-mobile-menu-image { display: none; }
}

/* ===================================================
   RESPONSIVE — SMALL MOBILE (≤480px)
   =================================================== */
@media (max-width: 480px) {
    /* Hero: ensure minimum height and smaller typography */
    .ri-hero { min-height: 580px; }
    .ri-hero-claim { font-size: 2.6rem; }
    .ri-hero-subtitle { font-size: 1.05rem; }
    .ri-hero-content { padding: 96px 20px 32px; }
    .ri-hero-labels { gap: 16px; }
    .ri-hero-label-item span { font-size: 1.6rem; }

    /* Works mosaic: one column with tighter spacing */
    .ri-works-mosaic { gap: 16px; }
    .ri-work-item .ri-work-item-img { aspect-ratio: 4/3 !important; }

    /* About stats: 2-column compact */
    .ri-about-stats { gap: 24px; }
    .ri-stat-num { font-size: 2.6rem; }

    /* Contact form */
    .ri-form-row { grid-template-columns: 1fr; }

    /* Footer */
    .ri-footer-grid { grid-template-columns: 1fr; }

    /* Press */
    .ri-press-logos { gap: 16px 24px; }
}

/* Admin-bar mobile compensation */
@media (max-width: 782px) {
    body.admin-bar .ri-hero { min-height: 580px; }
    body.admin-bar .ri-hero-content { padding-top: 106px; }
}
