/*
Theme Name: Elementra Child Theme
Template: elementra
Theme URI: https://elementra.themerex.net/
Description: Elementra Child Theme — Preziosi Ricami custom skin
Author: ThemeREX (custom by Preziosi Ricami)
Author URI: https://themerex.net/
Version: 1.1
Tested up to: 6.7
Requires at least: 5.0
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: elementra
*/

/* =Preziosi Ricami custom theme =========================================== */


/* Override parent theme's boxed wrappers — make our templates full-bleed */
body.pr-template .page_wrap,
body.pr-template .page_content_wrap,
body.pr-template .content_wrap,
body.pr-template .content,
body.pr-template main.content,
body.pr-template .content_container,
body.pr-template .post_item_single,
body.pr-template .post_content.entry-content {
    max-width: none !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    background: transparent !important;
}
body.pr-template .content_wrap::before,
body.pr-template .content_wrap::after { display: none !important; }
body.pr-template .post_item_single { border: 0 !important; padding: 0 !important; margin: 0 !important; }
body.pr-template .post_item_single::before,
body.pr-template .post_item_single::after { display: none !important; }

/* Hide parent theme sidebars on our pages */
body.pr-template aside.sidebar,
body.pr-template .sidebar_show,
body.pr-template .post_meta,
body.pr-template .post_header_single,
body.pr-template .post_footer_single { display: none !important; }

/* Force the <main class="pr-page"> to span the full viewport width even if
 * a parent wrapper (like .content_wrap or .post_content.entry-content) is
 * still limiting things via inline CSS variables we can't override. */
body.pr-template main.pr-page,
body.pr-template .pr-page{
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    background: var(--pr-bg);
}

/* Neutralize parent typography on our pages so we control look entirely. */
body.pr-template .pr-page h1,
body.pr-template .pr-page h2,
body.pr-template .pr-page h3,
body.pr-template .pr-page h4,
body.pr-template .pr-page p {
    color: inherit;
}


:root{
    --pr-bg: #F5F1E8;            /* avorio caldo */
    --pr-bg-soft: #FBF8F1;
    --pr-ink: #1F1A17;           /* nero seppia */
    --pr-ink-soft: #4A3F36;
    --pr-gold: #C9A96E;          /* oro champagne */
    --pr-gold-deep: #A8884B;
    --pr-red: #8B1F2F;           /* rosso ricamo */
    --pr-line: rgba(31,26,23,.12);
    --pr-shadow: 0 18px 40px -18px rgba(31,26,23,.35);
    --pr-shadow-strong: 0 32px 80px -28px rgba(31,26,23,.55);
    --pr-radius: 14px;
    --pr-radius-lg: 24px;
    --pr-serif: "Playfair Display", "Cormorant Garamond", Georgia, serif;
    --pr-sans: "Inter", "Manrope", system-ui, -apple-system, sans-serif;
    --pr-ease: cubic-bezier(.22,.61,.36,1);
}

/* Page templates body class */
body.pr-template{
    background: var(--pr-bg);
    color: var(--pr-ink);
    font-family: var(--pr-sans);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.pr-template *{ box-sizing: border-box; }

body.pr-template h1,
body.pr-template h2,
body.pr-template h3,
body.pr-template h4{
    font-family: var(--pr-serif);
    font-weight: 600;
    color: var(--pr-ink);
    line-height: 1.12;
    letter-spacing: -.01em;
    margin: 0 0 .4em;
}

body.pr-template h1{ font-size: clamp(2.4rem, 5.5vw, 4.6rem); }
body.pr-template h2{ font-size: clamp(2rem, 4vw, 3.2rem); }
body.pr-template h3{ font-size: clamp(1.4rem, 2.4vw, 2rem); }
body.pr-template p{ margin: 0 0 1em; color: var(--pr-ink-soft); }
body.pr-template .pr-page p{ color: var(--pr-ink-soft) !important; }
body.pr-template .pr-page strong{ color: var(--pr-ink) !important; }
body.pr-template .pr-page a{ color: var(--pr-ink); }
body.pr-template .pr-section--ink p{ color: rgba(255,255,255,.85) !important; }
body.pr-template .pr-section--ink strong{ color: #FFF !important; }
body.pr-template .pr-section--soft p{ color: var(--pr-ink-soft) !important; }
body.pr-template .pr-counter__label{ color: var(--pr-ink-soft) !important; }
body.pr-template .pr-section--ink .pr-counter__label{ color: rgba(255,255,255,.7) !important; }
body.pr-template .pr-testi__author{ color: var(--pr-ink-soft) !important; font-weight: 600; }

body.pr-template .pr-eyebrow{
    display: inline-block;
    font-family: var(--pr-sans);
    font-size: .78rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--pr-gold-deep);
    font-weight: 600;
    margin-bottom: 1.2em;
    position: relative;
    padding-left: 36px;
}
body.pr-template .pr-eyebrow::before{
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 24px;
    height: 1px;
    background: var(--pr-gold);
    transform: translateY(-50%);
}

body.pr-template .pr-container{
    width: min(1200px, 92%);
    margin-inline: auto;
}

body.pr-template .pr-section{
    padding: clamp(60px, 10vw, 130px) 0;
    position: relative;
}

body.pr-template .pr-section--soft{ background: var(--pr-bg-soft); }
body.pr-template .pr-section--ink{
    background: var(--pr-ink);
    color: #EFE6D8;
}
body.pr-template .pr-section--ink h1,
body.pr-template .pr-section--ink h2,
body.pr-template .pr-section--ink h3{ color: #FBF8F1; }
body.pr-template .pr-section--ink p{ color: rgba(255,255,255,.78); }
body.pr-template .pr-section--ink .pr-eyebrow{ color: var(--pr-gold); }

/* ----- Buttons ----- */
/* High specificity + !important: parent theme has very aggressive button rules
 * (.scheme_default button, .elementor-button, etc.) that otherwise clip our
 * icons/labels and stretch testimonial dots into giant ovals. */
body.pr-template .pr-btn,
body.pr-template a.pr-btn,
body.pr-template button.pr-btn{
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: .6em !important;
    padding: 16px 32px !important;
    min-height: 0 !important;
    width: auto !important;
    height: auto !important;
    line-height: 1.1 !important;
    font-family: var(--pr-sans) !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    letter-spacing: .14em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    border-radius: 999px !important;
    border: 1px solid transparent !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    overflow: visible !important;
    transition: transform .35s var(--pr-ease), background .35s var(--pr-ease), color .35s var(--pr-ease), box-shadow .35s var(--pr-ease) !important;
    box-shadow: none;
}
body.pr-template .pr-btn--gold{ background: var(--pr-gold) !important; color: #1F1A17 !important; box-shadow: var(--pr-shadow) !important; }
body.pr-template .pr-btn--gold:hover{ background: var(--pr-gold-deep) !important; color: #FFF !important; transform: translateY(-3px) !important; }
body.pr-template .pr-btn--ghost{ background: transparent !important; border-color: rgba(31,26,23,.4) !important; color: var(--pr-ink) !important; }
body.pr-template .pr-btn--ghost:hover{ background: var(--pr-ink) !important; color: #FFF !important; transform: translateY(-3px) !important; }
body.pr-template .pr-btn--light{ background: rgba(255,255,255,.12) !important; color: #FFF !important; border-color: rgba(255,255,255,.5) !important; backdrop-filter: blur(4px); }
body.pr-template .pr-btn--light:hover{ background: var(--pr-gold) !important; color: #1F1A17 !important; border-color: var(--pr-gold) !important; transform: translateY(-3px) !important; }

body.pr-template .pr-btn .pr-arrow{
    display: inline-block !important;
    width: auto !important; height: auto !important;
    color: inherit !important;
    transition: transform .4s var(--pr-ease) !important;
}
body.pr-template .pr-btn:hover .pr-arrow{ transform: translateX(6px); }

/* ----- Hero ----- */
.pr-hero{
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #FFF;
    isolation: isolate;
}
.pr-hero__bg{
    position: absolute; inset: 0; z-index: -2;
    background-size: cover;
    background-position: center;
    transform: scale(1.08);
    will-change: transform;
}
.pr-hero__bg::after{
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(105deg, rgba(31,26,23,.85) 0%, rgba(31,26,23,.55) 50%, rgba(31,26,23,.2) 100%);
}
.pr-hero__inner{ position: relative; z-index: 2; padding: 120px 0 100px; max-width: 880px; }
.pr-hero h1{ color: #FFF; font-size: clamp(2.6rem, 6.4vw, 5.4rem); }
.pr-hero h1 .pr-accent{
    color: var(--pr-gold);
    font-style: italic;
    font-weight: 500;
}
.pr-hero p{ color: rgba(255,255,255,.85); max-width: 620px; font-size: 1.1rem; margin-bottom: 2em; }
.pr-hero__cta{ display: flex; gap: 14px; flex-wrap: wrap; }

.pr-hero__scroll{
    position: absolute; bottom: 32px; left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,.6);
    font-size: 11px;
    letter-spacing: .3em;
    text-transform: uppercase;
    z-index: 3;
}
.pr-hero__scroll span{ display: block; }
.pr-hero__scroll::after{
    content: "";
    display: block;
    width: 1px;
    height: 50px;
    margin: 14px auto 0;
    background: linear-gradient(to bottom, var(--pr-gold), transparent);
    animation: prScroll 2s var(--pr-ease) infinite;
    transform-origin: top;
}

@keyframes prScroll{
    0%   { transform: scaleY(0); transform-origin: top; }
    50%  { transform: scaleY(1); transform-origin: top; }
    50.1%{ transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Hero "needle" decorative SVG line */
.pr-hero__thread{
    position: absolute; right: 6%; top: 0; bottom: 0;
    width: 240px; pointer-events: none; opacity: .35;
    z-index: 1;
}
.pr-hero__thread path{
    stroke: var(--pr-gold);
    stroke-width: 1.2;
    fill: none;
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    animation: prDraw 6s var(--pr-ease) .6s forwards;
}
@keyframes prDraw{ to { stroke-dashoffset: 0; } }

/* ----- Reveal animations (intersection observer) ----- */
.pr-reveal{
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .9s var(--pr-ease), transform .9s var(--pr-ease);
}
.pr-reveal.is-visible{
    opacity: 1;
    transform: translateY(0);
}
.pr-reveal--zoom{ transform: scale(.92); }
.pr-reveal--zoom.is-visible{ transform: scale(1); }
.pr-reveal--left{ transform: translateX(-40px); }
.pr-reveal--left.is-visible{ transform: translateX(0); }
.pr-reveal--right{ transform: translateX(40px); }
.pr-reveal--right.is-visible{ transform: translateX(0); }

.pr-stagger > *{
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s var(--pr-ease), transform .7s var(--pr-ease);
}
.pr-stagger.is-visible > *{ opacity: 1; transform: translateY(0); }
.pr-stagger.is-visible > *:nth-child(1){ transition-delay: .05s; }
.pr-stagger.is-visible > *:nth-child(2){ transition-delay: .15s; }
.pr-stagger.is-visible > *:nth-child(3){ transition-delay: .25s; }
.pr-stagger.is-visible > *:nth-child(4){ transition-delay: .35s; }
.pr-stagger.is-visible > *:nth-child(5){ transition-delay: .45s; }
.pr-stagger.is-visible > *:nth-child(6){ transition-delay: .55s; }
.pr-stagger.is-visible > *:nth-child(7){ transition-delay: .65s; }

/* ----- Manifesto / Two columns ----- */
.pr-two-col{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 90px);
    align-items: center;
}
.pr-two-col--rev{ direction: rtl; }
.pr-two-col--rev > *{ direction: ltr; }
.pr-two-col__media{
    position: relative;
    border-radius: var(--pr-radius-lg);
    overflow: hidden;
    box-shadow: var(--pr-shadow-strong);
    aspect-ratio: 4/5;
}
.pr-two-col__media img{
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform 1.4s var(--pr-ease);
}
.pr-two-col__media:hover img{ transform: scale(1.06); }
.pr-two-col__media::after{
    content: "";
    position: absolute; inset: auto auto -30px -30px;
    width: 160px; height: 160px;
    border: 1px solid var(--pr-gold);
    border-radius: var(--pr-radius-lg);
    pointer-events: none;
}

.pr-two-col__body p{ font-size: 1.05rem; }

@media (max-width: 880px){
    .pr-two-col{ grid-template-columns: 1fr; }
    .pr-two-col--rev{ direction: ltr; }
}

/* ----- Steps / Process cards ----- */
.pr-steps{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 50px;
}
.pr-step{
    position: relative;
    background: #FFF;
    border-radius: var(--pr-radius);
    padding: 44px 32px 36px;
    border: 1px solid var(--pr-line);
    transition: transform .5s var(--pr-ease), box-shadow .5s var(--pr-ease), border-color .5s var(--pr-ease);
}
.pr-step:hover{
    transform: translateY(-10px);
    box-shadow: var(--pr-shadow-strong);
    border-color: var(--pr-gold);
}
.pr-step__num{
    font-family: var(--pr-serif);
    font-style: italic;
    font-size: 3.4rem;
    color: var(--pr-gold);
    line-height: 1;
    margin-bottom: 12px;
    display: block;
}
.pr-step h3{ margin-bottom: 14px; }
.pr-step p{ font-size: .98rem; }
.pr-step__icon{
    position: absolute; top: 32px; right: 30px;
    width: 40px; height: 40px;
    color: var(--pr-gold);
    opacity: .9;
}

@media (max-width: 880px){
    .pr-steps{ grid-template-columns: 1fr; }
}

/* ----- Sectors / cards grid ----- */
.pr-cards{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 50px;
}
.pr-card{
    position: relative;
    overflow: hidden;
    border-radius: var(--pr-radius);
    aspect-ratio: 4/5;
    background: #1F1A17;
    cursor: pointer;
}
.pr-card__bg{
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 1.2s var(--pr-ease);
    opacity: .85;
}
.pr-card:hover .pr-card__bg{ transform: scale(1.08); }
.pr-card::after{
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(31,26,23,0) 35%, rgba(31,26,23,.85) 100%);
}
.pr-card__body{
    position: absolute; left: 28px; right: 28px; bottom: 28px;
    color: #FFF;
    z-index: 2;
}
.pr-card__body h3{ color: #FFF; margin-bottom: 8px; }
.pr-card__body p{ color: rgba(255,255,255,.78); font-size: .95rem; margin: 0; transform: translateY(8px); opacity: 0; transition: opacity .5s var(--pr-ease), transform .5s var(--pr-ease); }
.pr-card:hover .pr-card__body p{ opacity: 1; transform: translateY(0); }

/* ----- Service rows (servizi page) ----- */
.pr-services{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-top: 60px;
}
.pr-service{
    background: #FFF;
    border: 1px solid var(--pr-line);
    border-radius: var(--pr-radius);
    padding: 40px 36px 36px;
    transition: transform .5s var(--pr-ease), border-color .5s var(--pr-ease), box-shadow .5s var(--pr-ease);
    position: relative;
    overflow: hidden;
}
.pr-service::before{
    content: "";
    position: absolute; left: 0; top: 0; bottom: 0;
    width: 3px; background: var(--pr-gold);
    transform: scaleY(0); transform-origin: top;
    transition: transform .5s var(--pr-ease);
}
.pr-service:hover{ transform: translateY(-8px); border-color: var(--pr-gold); box-shadow: var(--pr-shadow); }
.pr-service:hover::before{ transform: scaleY(1); }
.pr-service__num{
    color: var(--pr-gold);
    font-family: var(--pr-serif);
    font-style: italic;
    font-size: 1.4rem;
    margin-bottom: 8px;
    display: block;
}
.pr-service h3{ font-size: 1.4rem; }
.pr-service p{ font-size: .98rem; margin-bottom: 0; }

@media (max-width: 880px){
    .pr-services{ grid-template-columns: 1fr; }
}

/* ----- Timeline ----- */
.pr-timeline{
    position: relative;
    margin-top: 70px;
    padding-left: 40px;
}
.pr-timeline::before{
    content: "";
    position: absolute; left: 12px; top: 8px; bottom: 8px;
    width: 1px;
    background: linear-gradient(to bottom, var(--pr-gold), transparent);
}
.pr-tl-item{
    position: relative;
    padding-bottom: 40px;
}
.pr-tl-item::before{
    content: "";
    position: absolute; left: -34px; top: 6px;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--pr-gold);
    box-shadow: 0 0 0 6px rgba(201,169,110,.18);
}
.pr-tl-item h3{ font-size: 1.3rem; margin-bottom: 8px; }
.pr-tl-item__step{
    color: var(--pr-gold-deep);
    font-size: .8rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 6px;
}

/* ----- Portfolio gallery ----- */
.pr-gallery{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 50px;
}
.pr-gallery__item{
    position: relative;
    overflow: hidden;
    border-radius: var(--pr-radius);
    aspect-ratio: 1/1;
    background: #1F1A17;
    cursor: pointer;
}
.pr-gallery__item--wide{ grid-column: span 2; aspect-ratio: 16/9; }
.pr-gallery__item--tall{ grid-row: span 2; aspect-ratio: 1/2; }
.pr-gallery__item img{
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 1s var(--pr-ease);
}
.pr-gallery__item:hover img{ transform: scale(1.1); }
.pr-gallery__item::after{
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(31,26,23,.75));
    opacity: 0;
    transition: opacity .4s var(--pr-ease);
}
.pr-gallery__item:hover::after{ opacity: 1; }
.pr-gallery__caption{
    position: absolute; left: 22px; right: 22px; bottom: 22px;
    color: #FFF;
    transform: translateY(10px);
    opacity: 0;
    transition: opacity .5s var(--pr-ease), transform .5s var(--pr-ease);
    z-index: 2;
}
.pr-gallery__item:hover .pr-gallery__caption{ opacity: 1; transform: translateY(0); }
.pr-gallery__caption strong{ display:block; font-family: var(--pr-serif); font-size: 1.1rem; }
.pr-gallery__caption span{ font-size: .8rem; opacity: .7; letter-spacing:.2em; text-transform: uppercase; }

@media (max-width: 880px){
    .pr-gallery{ grid-template-columns: 1fr 1fr; }
    .pr-gallery__item--tall{ grid-row: span 1; aspect-ratio: 1/1; }
    .pr-gallery__item--wide{ grid-column: span 2; aspect-ratio: 16/9; }
}

/* ----- Counters ----- */
.pr-counters{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
}
.pr-counter{ text-align: center; }
.pr-counter__num{
    font-family: var(--pr-serif);
    font-size: clamp(3rem, 6vw, 5rem);
    color: var(--pr-gold);
    line-height: 1;
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}
.pr-counter__num::after{
    content: attr(data-suffix);
    margin-left: 4px;
}
.pr-counter__label{
    font-size: .8rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: rgba(255,255,255,.7);
}
body.pr-template .pr-section:not(.pr-section--ink) .pr-counter__label{ color: var(--pr-ink-soft); }

@media (max-width: 880px){
    .pr-counters{ grid-template-columns: repeat(2, 1fr); }
}

/* ----- Marquee ----- */
.pr-marquee{
    overflow: hidden;
    padding: 30px 0;
    position: relative;
    border-top: 1px solid var(--pr-line);
    border-bottom: 1px solid var(--pr-line);
    background: var(--pr-bg-soft);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
            mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}
.pr-marquee__track{
    display: flex;
    gap: 60px;
    width: max-content;
    animation: prMarquee 32s linear infinite;
    padding-right: 60px;
}
.pr-marquee:hover .pr-marquee__track{ animation-play-state: paused; }
.pr-marquee__item{
    font-family: var(--pr-serif);
    font-style: italic;
    font-size: 1.6rem;
    color: var(--pr-ink);
    white-space: nowrap;
    opacity: .65;
    display: flex;
    align-items: center;
    gap: 60px;
}
.pr-marquee__item::after{
    content: "";
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--pr-gold);
}
@keyframes prMarquee{
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ----- Home (Elementor) testimonial widget — restyle as horizontal cards ----- */
.trx-addons-testimonials.trx-addons-testimonials-no-default-styles,
.trx-addons-testimonials.trx-addons-testimonials-default,
.trx-addons-testimonials{
    --pr-gold: #C9A96E;
}
.trx-addons-testimonials .trx-addons-testimonials-container{
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 24px !important;
    padding: 20px 0 !important;
}
.trx-addons-testimonials .trx-addons-testimonials-container .swiper-slide,
.trx-addons-testimonials .trx-addons-testimonials-item{
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}
.trx-addons-testimonials-item-wrap{
    background: #FFF;
    border-radius: 18px;
    padding: 32px 30px 26px;
    border: 1px solid var(--pr-line, rgba(31,26,23,.12));
    box-shadow: 0 18px 40px -18px rgba(31,26,23,.25);
    text-align: left !important;
    position: relative;
    height: 100%;
    transition: transform .4s ease, box-shadow .4s ease;
}
.trx-addons-testimonials-item-wrap:hover{
    transform: translateY(-6px);
    box-shadow: 0 32px 80px -28px rgba(31,26,23,.45);
}
.trx-addons-testimonials-item-wrap::before{
    content: "★★★★★";
    color: var(--pr-gold);
    letter-spacing: .15em;
    font-size: 1rem;
    display: block;
    margin-bottom: 14px;
}
.trx-addons-testimonials-item-content,
.trx-addons-testimonials-item-content p{
    font-family: "Playfair Display", serif !important;
    font-style: italic;
    font-size: 1rem !important;
    line-height: 1.55 !important;
    color: #1F1A17 !important;
    margin: 0 0 16px !important;
}
.trx-addons-testimonials-item-author{
    border-top: 1px dashed rgba(31,26,23,.15);
    padding-top: 14px !important;
    margin-top: 14px !important;
    display: flex !important;
    flex-direction: column;
    align-items: flex-start !important;
    text-align: left !important;
}
.trx-addons-testimonials-item-name,
.trx-addons-testimonials-item-author-name{
    font-family: "Playfair Display", serif !important;
    font-size: 1rem !important;
    color: #1F1A17 !important;
    font-style: normal !important;
    font-weight: 600 !important;
    margin-bottom: 2px !important;
}
.trx-addons-testimonials-item-position,
.trx-addons-testimonials-item-author-subtitle{
    font-size: .72rem !important;
    letter-spacing: .2em !important;
    text-transform: uppercase !important;
    color: #A8884B !important;
}
/* Hide swiper arrows / pagination ovaloni */
.trx-addons-testimonials .swiper-button-prev,
.trx-addons-testimonials .swiper-button-next,
.trx-addons-testimonials .swiper-pagination,
.trx-addons-testimonials .swiper-pagination-bullets{ display: none !important; }

/* ----- Reviews marquee (auto-scroll horizontale, card animate) ----- */
.pr-rev-marquee{
    overflow: hidden;
    padding: 20px 0 40px;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
            mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.pr-rev-marquee__track{
    display: flex;
    gap: 28px;
    width: max-content;
    animation: prRevMarquee 60s linear infinite;
    padding-right: 28px;
    will-change: transform;
}
.pr-rev-marquee:hover .pr-rev-marquee__track{ animation-play-state: paused; }
@keyframes prRevMarquee{
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.pr-rev-card{
    flex: 0 0 360px;
    background: #FFF;
    border-radius: var(--pr-radius-lg);
    padding: 32px 30px 26px;
    border: 1px solid var(--pr-line);
    box-shadow: var(--pr-shadow);
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform .4s var(--pr-ease), box-shadow .4s var(--pr-ease);
    position: relative;
    overflow: hidden;
}
.pr-rev-card::before{
    content: "";
    position: absolute; top: -30px; right: -30px;
    width: 110px; height: 110px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201,169,110,.18), transparent 70%);
    pointer-events: none;
}
.pr-rev-card:hover{ transform: translateY(-6px); box-shadow: var(--pr-shadow-strong); }
.pr-rev-card__stars{ display: flex; gap: 4px; }
.pr-rev-card__stars svg{ width: 18px; height: 18px; fill: var(--pr-gold); }
.pr-rev-card__text{
    font-family: var(--pr-serif);
    font-style: italic;
    font-size: 1rem;
    color: var(--pr-ink) !important;
    line-height: 1.55;
    margin: 0;
    flex: 1;
}
.pr-rev-card__author{
    display: flex; align-items: center; gap: 14px;
    border-top: 1px dashed var(--pr-line);
    padding-top: 16px;
}
.pr-rev-card__avatar{
    width: 42px; height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pr-gold) 0%, var(--pr-gold-deep) 100%);
    color: #1F1A17;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--pr-serif);
    font-weight: 600;
    font-size: 1.1rem;
}
.pr-rev-card__author > div{ display: flex; flex-direction: column; line-height: 1.3; }
.pr-rev-card__author strong{
    font-family: var(--pr-serif);
    font-size: 1rem;
    color: var(--pr-ink) !important;
}
.pr-rev-card__author span{
    font-size: .72rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--pr-gold-deep);
}

@media (max-width: 600px){
    .pr-rev-card{ flex-basis: 280px; padding: 26px 22px 20px; }
}

/* ----- Testimonials slider ----- */
.pr-testi{
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}
.pr-testi__track{
    display: flex;
    transition: transform .8s var(--pr-ease);
}
.pr-testi__item{
    flex: 0 0 100%;
    padding: 50px 60px;
    background: var(--pr-bg-soft);
    border-radius: var(--pr-radius-lg);
    border: 1px solid var(--pr-line);
    text-align: center;
}
.pr-testi__item p{
    font-family: var(--pr-serif);
    font-style: italic;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    color: var(--pr-ink);
    line-height: 1.45;
    max-width: 760px;
    margin: 0 auto 30px;
    quotes: "\201C" "\201D";
}
.pr-testi__item p::before{ content: open-quote; color: var(--pr-gold); }
.pr-testi__item p::after{ content: close-quote; color: var(--pr-gold); }
.pr-testi__author{
    font-size: .85rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--pr-gold-deep);
}
.pr-testi__nav{
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}
body.pr-template .pr-testi__dot,
body.pr-template button.pr-testi__dot{
    width: 10px !important;
    height: 10px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background: var(--pr-line) !important;
    border: 0 !important;
    cursor: pointer !important;
    box-shadow: none !important;
    line-height: 1 !important;
    color: transparent !important;
    transition: background .3s var(--pr-ease), transform .3s var(--pr-ease) !important;
}
body.pr-template .pr-testi__dot.is-active{
    background: var(--pr-gold) !important;
    transform: scale(1.6) !important;
}

@media (max-width: 700px){
    .pr-testi__item{ padding: 40px 24px; }
}

/* ----- Contact page ----- */
.pr-contact{
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    margin-top: 50px;
    align-items: start;
}
.pr-contact__info{
    background: var(--pr-bg-soft);
    border-radius: var(--pr-radius-lg);
    padding: 44px 38px;
    border: 1px solid var(--pr-line);
}
.pr-contact__info h3{ margin-top: 0; }
.pr-contact__row{
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 18px 0;
    border-bottom: 1px dashed var(--pr-line);
}
.pr-contact__row:last-child{ border-bottom: 0; }
.pr-contact__row svg{
    flex: 0 0 24px;
    width: 24px; height: 24px;
    color: var(--pr-gold);
    margin-top: 2px;
    transition: transform .4s var(--pr-ease);
}
.pr-contact__row:hover svg{ transform: rotate(-12deg) scale(1.15); }
.pr-contact__row strong{ display: block; font-family: var(--pr-serif); font-size: 1.1rem; margin-bottom: 4px; color: var(--pr-ink); }
.pr-contact__row a{ color: var(--pr-ink-soft); text-decoration: none; transition: color .3s var(--pr-ease); }
.pr-contact__row a:hover{ color: var(--pr-gold-deep); }

.pr-contact__form{
    background: #FFF;
    border-radius: var(--pr-radius-lg);
    padding: 44px 40px;
    border: 1px solid var(--pr-line);
    box-shadow: var(--pr-shadow);
}
.pr-contact__form h3{ margin-top: 0; }

.pr-form{
    display: grid;
    gap: 20px;
}
.pr-form__row{ display: grid; gap: 20px; grid-template-columns: 1fr 1fr; }
.pr-form__group{ display: flex; flex-direction: column; }
.pr-form__group label{
    font-size: .75rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--pr-ink-soft);
    margin-bottom: 8px;
    font-weight: 600;
}
.pr-form input,
.pr-form select,
.pr-form textarea{
    padding: 14px 16px;
    border: 1px solid var(--pr-line);
    border-radius: 10px;
    background: var(--pr-bg-soft);
    font-family: inherit;
    font-size: 1rem;
    color: var(--pr-ink);
    transition: border-color .3s var(--pr-ease), background .3s var(--pr-ease), box-shadow .3s var(--pr-ease);
}
.pr-form input:focus,
.pr-form select:focus,
.pr-form textarea:focus{
    outline: none;
    border-color: var(--pr-gold);
    background: #FFF;
    box-shadow: 0 0 0 4px rgba(201,169,110,.18);
}
.pr-form textarea{ min-height: 140px; resize: vertical; }
.pr-form__check{
    display: flex; gap: 12px; align-items: flex-start;
    font-size: .9rem; color: var(--pr-ink-soft);
}
.pr-form__check input{
    margin-top: 4px; width: 18px; height: 18px; flex: 0 0 18px;
    accent-color: var(--pr-gold-deep);
}
.pr-form__check a{ color: var(--pr-ink); text-decoration: underline; }
.pr-form__msg{
    padding: 14px 18px;
    border-radius: 10px;
    font-size: .95rem;
    display: none;
}
.pr-form__msg.is-success{ display: block; background: rgba(76, 168, 116, .12); color: #2D6A47; border: 1px solid rgba(76,168,116,.4); }
.pr-form__msg.is-error{ display: block; background: rgba(139,31,47,.1); color: #8B1F2F; border: 1px solid rgba(139,31,47,.4); }

@media (max-width: 880px){
    .pr-contact{ grid-template-columns: 1fr; gap: 40px; }
    .pr-form__row{ grid-template-columns: 1fr; }
    .pr-contact__info, .pr-contact__form{ padding: 32px 26px; }
}

/* ----- Map ----- */
.pr-map{
    position: relative;
    margin-top: 80px;
    border-radius: var(--pr-radius-lg);
    overflow: hidden;
    box-shadow: var(--pr-shadow-strong);
    aspect-ratio: 21/9;
    background: var(--pr-bg-soft);
}
.pr-map iframe{
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    border: 0;
    filter: grayscale(.4) contrast(1.05);
    transition: filter .6s var(--pr-ease);
}
.pr-map:hover iframe{ filter: grayscale(0) contrast(1); }

@media (max-width: 700px){
    .pr-map{ aspect-ratio: 4/5; }
}

/* ----- News grid ----- */
.pr-news{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 50px;
}
.pr-news-card{
    background: #FFF;
    border-radius: var(--pr-radius);
    overflow: hidden;
    border: 1px solid var(--pr-line);
    transition: transform .5s var(--pr-ease), box-shadow .5s var(--pr-ease);
    display: flex;
    flex-direction: column;
}
.pr-news-card:hover{ transform: translateY(-8px); box-shadow: var(--pr-shadow-strong); }
.pr-news-card__img{
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--pr-bg-soft);
}
.pr-news-card__img img{ width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--pr-ease); }
.pr-news-card:hover .pr-news-card__img img{ transform: scale(1.08); }
.pr-news-card__body{ padding: 24px 26px 28px; flex: 1; display: flex; flex-direction: column; }
.pr-news-card__meta{
    font-size: .72rem; letter-spacing: .25em; text-transform: uppercase;
    color: var(--pr-gold-deep); margin-bottom: 8px;
}
.pr-news-card h3{ font-size: 1.25rem; margin-bottom: 12px; }
.pr-news-card p{ font-size: .95rem; flex: 1; }
.pr-news-card a.pr-news-card__more{
    color: var(--pr-ink); font-weight: 600; font-size: .85rem;
    letter-spacing: .15em; text-transform: uppercase; text-decoration: none;
}
.pr-news-card a.pr-news-card__more::after{ content: " →"; transition: padding .3s var(--pr-ease); }
.pr-news-card:hover a.pr-news-card__more::after{ padding-left: 6px; }

@media (max-width: 880px){ .pr-news{ grid-template-columns: 1fr; } }

.pr-news--placeholder{ background: var(--pr-bg-soft); border-style: dashed; }
.pr-news--placeholder .pr-news-card__img{
    background:
        repeating-linear-gradient(45deg, var(--pr-line) 0 1px, transparent 1px 14px),
        var(--pr-bg-soft);
}
.pr-news--placeholder .pr-news-card__img::after{
    content: "Anteprima";
    display: flex; align-items:center; justify-content:center;
    height: 100%; color: var(--pr-gold-deep);
    font-family: var(--pr-serif); font-style: italic; font-size: 1.4rem;
}

/* ----- CTA ribbon ----- */
.pr-cta{
    background: linear-gradient(120deg, #1F1A17 0%, #2D241D 100%);
    color: #FFF;
    border-radius: var(--pr-radius-lg);
    padding: 70px 60px;
    margin-top: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    overflow: hidden;
}
.pr-cta::before{
    content: "";
    position: absolute; right: -120px; top: -120px;
    width: 360px; height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201,169,110,.35), transparent 70%);
}
.pr-cta h2{ color: #FFF; max-width: 600px; margin: 0; }
.pr-cta p{ color: rgba(255,255,255,.78); max-width: 440px; margin: 12px 0 0; }

@media (max-width: 880px){
    .pr-cta{ flex-direction: column; align-items: flex-start; padding: 50px 32px; }
}

/* ----- Brand wall (clienti) ----- */
.pr-brands{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0;
    border: 1px solid var(--pr-line);
    border-radius: var(--pr-radius-lg);
    overflow: hidden;
    margin-top: 60px;
    background: #FFF;
}
.pr-brand{
    aspect-ratio: 5/3;
    display: flex; align-items: center; justify-content: center;
    border-right: 1px solid var(--pr-line);
    border-bottom: 1px solid var(--pr-line);
    text-align: center;
    padding: 20px;
    font-family: var(--pr-serif);
    font-style: italic;
    color: var(--pr-ink-soft);
    font-size: 1.05rem;
    transition: background .35s var(--pr-ease), color .35s var(--pr-ease);
}
.pr-brand:hover{ background: var(--pr-bg-soft); color: var(--pr-gold-deep); }

/* ----- Sectors strip ----- */
.pr-sectors{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--pr-line);
    border-bottom: 1px solid var(--pr-line);
}
.pr-sector{
    padding: 50px 36px;
    border-right: 1px solid var(--pr-line);
    transition: background .4s var(--pr-ease);
    position: relative;
}
.pr-sector:last-child{ border-right: 0; }
.pr-sector:hover{ background: var(--pr-bg); }
.pr-sector h3{ margin-bottom: 14px; }
.pr-sector p{ margin-bottom: 0; font-size: .95rem; }

@media (max-width: 880px){
    .pr-sectors{ grid-template-columns: 1fr; }
    .pr-sector{ border-right: 0; border-bottom: 1px solid var(--pr-line); }
    .pr-sector:last-child{ border-bottom: 0; }
}

/* ----- Smooth scroll ----- */
html{ scroll-behavior: smooth; }

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce){
    *, *::before, *::after{
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==============================================================
 * Safe wrap + Elementor entrance fallback (Preziosi Ricami)
 * Prevent words from being truncated and elements from staying
 * invisible if Elementor's IntersectionObserver doesn't fire.
 * ============================================================== */

.pr-safe-wrap,
.pr-safe-wrap *,
.elementor .elementor-heading-title,
.elementor .elementor-widget-text-editor,
.elementor .elementor-widget-text-editor p {
    overflow-wrap: break-word;
    word-wrap: break-word;
    -webkit-hyphens: auto;
    hyphens: auto;
}

/* Don't hyphenate display headings on desktop — only safety net on phones */
@media (min-width: 1024px) {
    .elementor .elementor-heading-title {
        -webkit-hyphens: manual;
                hyphens: manual;
    }
}

/* Safety net: any element flagged elementor-invisible on the Elementor pages
 * we converted (2946/2947/2948/2949/3) will fade in via CSS even if the JS
 * entrance animation never fires. */
body.page-id-2946 .elementor-invisible,
body.page-id-2947 .elementor-invisible,
body.page-id-2948 .elementor-invisible,
body.page-id-2949 .elementor-invisible,
body.page-id-3    .elementor-invisible {
    visibility: visible !important;
    animation: prElInvFadeIn 700ms cubic-bezier(.22,.61,.36,1) both;
}
@keyframes prElInvFadeIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ==============================================================
 * Force true edge-to-edge layout on pages using the Elementor
 * "Full Width" template. The parent theme's `.content_wrap` /
 * `.content_container` apply `width: var(--theme-var-page)` which
 * caps the page at ~1200px even when the template is full width.
 * We override per-template, so non-Elementor pages keep their look.
 * ============================================================== */

body.elementor-template-full-width .page_wrap,
body.elementor-template-full-width .page_content_wrap,
body.elementor-template-full-width .content_wrap,
body.elementor-template-full-width .content_container,
body.elementor-template-full-width .content_wrap_fullscreen,
body.elementor-template-full-width .content,
body.elementor-template-full-width main.content {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.elementor-template-full-width .content_wrap::after,
body.elementor-template-full-width .content_container::after {
    display: none !important;
}

/* Some parent-theme widgets paint an internal sidebar background even when
   sidebar_hide is on — neutralize it for full-width pages. */
body.elementor-template-full-width .sidebar,
body.elementor-template-full-width aside.sidebar,
body.elementor-template-full-width .sidebar_inner {
    display: none !important;
}
