/*
Theme Name:   Oplà - oplanet.it
Description:  Tema child di Kadence per il sito di Oplà srl
Author:       Oplà srl
Template:     kadence
Version:      2.0.1
Text Domain:  oplanet-child
*/

/* ==========================================================================
   1. Colori e tipografia
   Colori dal nuovo sito Oplà (arancio #FF6633, antracite #2C2E36, grigio #F7F7F7)
   Font: Inter, titoli grandi e di peso medio (stile tesla.com)
   ========================================================================== */
:root {
	--global-palette1: #E8521F;   /* arancio per testo/link su bianco (contrasto AA) */
	--global-palette2: #C9431A;   /* hover */
	--global-palette3: #171A20;   /* titoli (quasi nero, come Tesla) */
	--global-palette4: #2C2E36;   /* antracite */
	--global-palette5: #5C5E62;   /* testo */
	--global-palette6: #8E8E8E;   /* testo secondario */
	--global-palette7: #E8E9EB;   /* bordi */
	--global-palette8: #F7F7F7;   /* sfondi chiari */
	--global-palette9: #FFFFFF;

	--opla-orange: #FF6633;
	--opla-dark: #2C2E36;
	--opla-darker: #1F2026;
	--opla-light: #F7F7F7;
	--opla-radius: 4px;           /* angoli quasi squadrati, come Tesla */

	--global-body-font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	--global-heading-font-family: var(--global-body-font-family);
}

body {
	font-family: var(--global-body-font-family);
	color: var(--global-palette5);
	background: #fff;
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	font-feature-settings: "cv11", "ss01";
}
h1, h2, h3, h4, h5, h6, .entry-title, .site-title {
	font-family: var(--global-heading-font-family);
	color: var(--global-palette3);
	font-weight: 500;
	letter-spacing: -0.02em;
	line-height: 1.15;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
a { color: var(--global-palette1); }
a:hover { color: var(--global-palette2); }

/* Pulsanti stile Tesla: rettangoli con angoli appena arrotondati */
.wp-block-button__link, .button, button.button, input[type="submit"] {
	border-radius: var(--opla-radius);
	padding: .8em 2.2em;
	min-width: 220px;
	text-align: center;
	font-weight: 500;
	font-size: 14px;
	letter-spacing: .01em;
	background: var(--opla-orange);
	color: #fff;
	transition: background-color .25s, color .25s;
}
.wp-block-button__link:hover { background: var(--global-palette2); color: #fff; }
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: rgba(255,255,255,.85);
	border: 0;
	color: var(--global-palette3);
	backdrop-filter: blur(8px);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: #fff; color: var(--global-palette3); }

/* ==========================================================================
   2. Header (bianco, logo a sinistra, menu e pulsante QuickSupport a destra)
   ========================================================================== */
#masthead .site-main-header-wrap .site-header-row-container-inner { background: rgba(255,255,255,.97); backdrop-filter: blur(10px); }
#masthead { box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.site-branding a.brand img.custom-logo { max-height: 46px; width: auto; max-width: none; }
.main-navigation .primary-menu-container > ul > li.menu-item > a {
	font-weight: 500;
	font-size: 14px;
	color: var(--global-palette3);
	padding-left: 1em; padding-right: 1em;
	border-radius: var(--opla-radius);
	transition: background-color .2s, color .2s;
}
.main-navigation .primary-menu-container > ul > li.menu-item > a:hover { background: rgba(23,26,32,.05); color: var(--global-palette3); }
.main-navigation .primary-menu-container > ul > li.current-menu-item > a,
.main-navigation .primary-menu-container > ul > li.current-menu-ancestor > a { color: var(--opla-orange); }
.header-navigation .header-menu-container ul ul.sub-menu { border-radius: 8px; box-shadow: 0 12px 40px rgba(0,0,0,.12); overflow: hidden; }
.header-navigation .header-menu-container ul ul li.menu-item > a { font-size: 14px; }
#masthead .header-button {
	background: var(--opla-orange);
	color: #fff;
	border-radius: var(--opla-radius);
	font-weight: 500;
	font-size: 14px;
	padding: .6em 1.4em;
	border: 0;
}
#masthead .header-button:hover { background: var(--global-palette2); color: #fff; }
#masthead .header-button::before {
	content: ""; display: inline-block; width: 1.05em; height: 1.05em; margin-right: .5em; vertical-align: -.15em;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='2' width='6' height='6' rx='1'/%3E%3Crect x='2' y='16' width='6' height='6' rx='1'/%3E%3Crect x='16' y='16' width='6' height='6' rx='1'/%3E%3Cpath d='M5 16v-3h14v3M12 8v5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='2' width='6' height='6' rx='1'/%3E%3Crect x='2' y='16' width='6' height='6' rx='1'/%3E%3Crect x='16' y='16' width='6' height='6' rx='1'/%3E%3Cpath d='M5 16v-3h14v3M12 8v5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Barra in alto: Richiedi assistenza (Windows - Mac) + telefono ed email */
.site-top-header-wrap .site-header-row-container-inner,
#mobile-header .site-top-header-wrap .site-header-row-container-inner { background: #171A20; }
.site-top-header-wrap .site-header-top-section-left,
.site-top-header-wrap .site-header-top-section-center { flex: 1 1 auto; }
.site-top-header-wrap .site-header-top-section-left,
.site-top-header-wrap .site-header-top-section-center { grid-column: 1 / -1; width: 100%; }
.site-top-header-wrap .site-header-top-section-right { display: none; }
.site-top-header-wrap .site-header-item,
.site-top-header-wrap .header-html, .site-top-header-wrap .header-html-inner,
.site-top-header-wrap .mobile-html, .site-top-header-wrap .mobile-html-inner { width: 100%; }
.opla-topbar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; width: 100%; font-size: 13px; color: rgba(255,255,255,.75); }
.opla-topbar a { color: #fff !important; text-decoration: none !important; display: inline-flex; align-items: center; gap: .45em; transition: color .2s; }
.opla-topbar a:hover { color: var(--opla-orange) !important; }
.opla-topbar a::before { content: ""; width: 15px; height: 15px; flex: none; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.opla-assist, .opla-contacts { display: inline-flex; align-items: center; gap: .7rem; white-space: nowrap; }
.opla-contacts { gap: 1.6rem; }
.opla-assist-label { color: rgba(255,255,255,.75); font-weight: 500; }
.opla-assist-sep { color: rgba(255,255,255,.4); }
.opla-os { font-weight: 600; }
.opla-os--win { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 5.5 10.5 4.4v7.1H3zM11.5 4.3 21 3v8.5h-9.5zM3 12.5h7.5v7.1L3 18.5zM11.5 12.5H21V21l-9.5-1.3z'/%3E%3C/svg%3E"); }
.opla-os--mac { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16.4 12.7c0-2.4 2-3.6 2.1-3.7-1.1-1.7-2.9-1.9-3.5-1.9-1.5-.2-2.9.9-3.7.9-.8 0-1.9-.9-3.2-.8-1.6 0-3.1 1-4 2.4-1.7 3-.4 7.4 1.2 9.8.8 1.2 1.8 2.5 3 2.4 1.2 0 1.7-.8 3.1-.8 1.5 0 1.9.8 3.2.8 1.3 0 2.2-1.2 3-2.4.9-1.4 1.3-2.7 1.3-2.8-.1 0-2.5-1-2.5-3.9zM14 5.5c.7-.8 1.1-1.9 1-3-1 0-2.1.7-2.8 1.5-.6.7-1.2 1.8-1 2.9 1.1.1 2.1-.6 2.8-1.4z'/%3E%3C/svg%3E"); }
.opla-ct--tel { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .4 1.9.7 2.8a2 2 0 0 1-.5 2.1L8.1 9.9a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.8.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E"); }
.opla-ct--mail { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 6-10 7L2 6'/%3E%3C/svg%3E"); }
@media (max-width: 767px) {
	.opla-topbar { justify-content: center; font-size: 12.5px; }
	.opla-contacts .opla-ct { font-size: 0; gap: 0; }
	.opla-contacts .opla-ct::before { width: 17px; height: 17px; }
	.opla-contacts { gap: 1.1rem; }
}
@media (max-width: 400px) { .opla-assist-label { display: none; } }

/* ==========================================================================
   3. Sezioni della home
   ========================================================================== */
.opla-section { padding: clamp(4rem, 8vw, 7rem) var(--global-content-edge-padding, 1.5rem); margin: 0 !important; }
.opla-section > * { max-width: var(--global-content-width, 1240px); margin-left: auto !important; margin-right: auto !important; }
.opla-section--light { background: var(--opla-light); }
.opla-center { text-align: center; }
.opla-lead { font-size: 1.1rem; max-width: 52rem; color: var(--global-palette5); }
.opla-center .opla-lead { margin-left: auto; margin-right: auto; }
.opla-eyebrow {
	display: inline-flex; align-items: center; gap: .75rem;
	font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
	color: var(--opla-orange); margin-bottom: .5rem !important;
}
.opla-eyebrow::before { content: ""; width: 36px; height: 1px; background: var(--opla-orange); }

/* I gruppi in un tema classico hanno un contenitore interno: lo rendiamo "trasparente" */
.opla-slider > .wp-block-group__inner-container,
.opla-slide > .wp-block-group__inner-container,
.opla-mini-slider > .wp-block-group__inner-container,
.opla-tabs > .wp-block-group__inner-container,
.opla-video > .wp-block-group__inner-container { display: contents; }

/* --- Slider principale (a tutto schermo, stile Tesla) --- */
.opla-slider { position: relative; margin: 0 !important; padding: 0 !important; height: calc(100vh - 88px); min-height: 520px; max-height: 900px; overflow: hidden; background: var(--opla-darker); }
.opla-slider .opla-slide {
	position: absolute; inset: 0; max-width: none !important; margin: 0 !important;
	display: flex !important; flex-direction: column; justify-content: space-between; align-items: center;
	text-align: center;
	padding: clamp(4rem, 12vh, 8rem) 1.5rem clamp(4rem, 10vh, 6rem) !important;
	background-size: cover; background-position: center;
	opacity: 0; visibility: hidden;
	transition: opacity 1s ease, visibility 1s;
}
.opla-slider .opla-slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.15) 45%, rgba(0,0,0,.45) 100%); pointer-events: none; }
.opla-slider .opla-slide > *, .opla-slide > .wp-block-group__inner-container > * { position: relative; }
.opla-slider .opla-slide.is-active { opacity: 1; visibility: visible; }
.opla-slide h1, .opla-slide h2 { color: #fff; margin: 0 0 .6rem; font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 18em; text-shadow: 0 2px 20px rgba(0,0,0,.25); }
.opla-slide p { color: rgba(255,255,255,.92); font-size: 1.1rem; margin: 0 auto; max-width: 40rem; }
.opla-slide h1, .opla-slide h2, html body .entry-content .opla-slide p { margin-left: auto !important; margin-right: auto !important; }
.opla-slide .wp-block-buttons { justify-content: center; gap: 1.5rem; margin-top: auto; }
.opla-slide .wp-block-buttons .wp-block-button__link { min-width: 260px; }
.opla-slider-dots { position: absolute; left: 0; right: 0; bottom: 1.6rem; display: flex; justify-content: center; gap: .6rem; z-index: 3; }
.opla-slider-dots button { width: 28px; height: 3px; padding: 0; border: 0; border-radius: 2px; background: rgba(255,255,255,.45); cursor: pointer; transition: background-color .3s, width .3s; }
.opla-slider-dots button.is-active { background: #fff; width: 44px; }
.opla-slide--1 { background-image: url("/wp-content/uploads/opla/slider1.png"); }
.opla-slide--2 { background-image: url("/wp-content/uploads/opla/slider2.png"); }
.opla-slide--3 { background-image: url("/wp-content/uploads/opla/slide3.png"); }
@media (max-width: 767px) {
	.opla-slider { height: 82vh; }
	.opla-slide .wp-block-buttons { flex-direction: column; gap: .8rem; width: 100%; }
	.opla-slide .wp-block-button, .opla-slide .wp-block-button__link { width: 100%; }
}

/* --- Servizi --- */
.opla-services { gap: 3.5rem 2.5rem !important; margin-top: 3.5rem !important; }
.opla-service { position: relative; padding: 0 !important; }
.opla-service::before {
	content: ""; display: block; width: 40px; height: 40px; margin-bottom: 1.2rem;
	background: var(--opla-orange);
	-webkit-mask: var(--opla-icon) left center / contain no-repeat;
	mask: var(--opla-icon) left center / contain no-repeat;
}
.opla-service h3 { color: var(--opla-orange); font-weight: 600; font-size: 1.2rem; margin: 0 0 .7rem; }
.opla-service p { font-size: 15px; margin: 0 0 .8rem; color: var(--global-palette5); }
.opla-service p:last-child { margin: 0; }
.opla-service p:last-child a { font-size: 14px; font-weight: 500; color: var(--global-palette3); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.opla-service p:last-child a:hover { color: var(--opla-orange); }

.opla-icon--fingerprint { --opla-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4'/%3E%3Cpath d='M14 13.12c0 2.38 0 6.38-1 8.88'/%3E%3Cpath d='M17.29 21.02c.12-.6.43-2.3.5-3.02'/%3E%3Cpath d='M2 12a10 10 0 0 1 18-6'/%3E%3Cpath d='M2 16h.01'/%3E%3Cpath d='M21.8 16c.2-2 .131-5.354 0-6'/%3E%3Cpath d='M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34-2'/%3E%3Cpath d='M8.65 22c.21-.66.45-1.32.57-2'/%3E%3Cpath d='M9 6.8a6 6 0 0 1 9 5.2v2'/%3E%3C/svg%3E"); }
.opla-icon--shield { --opla-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3Cpath d='M8 16.5c.8-1.8 2.3-2.5 4-2.5s3.2.7 4 2.5'/%3E%3C/svg%3E"); }
.opla-icon--laptop { --opla-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='12' rx='1.5'/%3E%3Cpath d='M2 20h20M12 7v6M9 10h6'/%3E%3C/svg%3E"); }
.opla-icon--phone { --opla-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='2' width='12' height='20' rx='2'/%3E%3Cpath d='M11 18h2'/%3E%3C/svg%3E"); }
.opla-icon--link { --opla-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'/%3E%3C/svg%3E"); }
.opla-icon--pen { --opla-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 19 7-7 3 3-7 7-3-3z'/%3E%3Cpath d='m18 13-1.5-7.5L2 2l3.5 14.5L13 18l5-5z'/%3E%3Cpath d='m2 2 7.586 7.586'/%3E%3Ccircle cx='11' cy='11' r='2'/%3E%3C/svg%3E"); }
.opla-icon--board { --opla-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='3' width='20' height='13' rx='1.5'/%3E%3Cpath d='M8 21l4-5 4 5M7 8h6M7 11h10'/%3E%3C/svg%3E"); }
.opla-icon--hands { --opla-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z'/%3E%3C/svg%3E"); }

/* --- Privacy: immagine + card che scorrono / pannello scuro --- */
.opla-privacy { gap: 0 !important; margin: 0 !important; }
.opla-privacy > .wp-block-column { margin: 0 !important; }
.opla-privacy-media {
	position: relative; min-height: 640px;
	background: url("/wp-content/uploads/opla/privacy-opla.png") center / cover no-repeat;
	display: flex; align-items: flex-end; padding: 2.5rem !important;
}
.opla-mini-slider { position: relative; width: min(100%, 520px); min-height: 300px; margin-left: auto !important; }
.opla-mini-slider .opla-mini-slide {
	position: absolute; inset: auto 0 0 0; margin: 0 !important;
	background: #fff; padding: 2.2rem 2.2rem 2rem !important; border-radius: var(--opla-radius);
	box-shadow: 0 20px 50px rgba(0,0,0,.18);
	opacity: 0; visibility: hidden; transform: translateY(12px);
	transition: opacity .7s, visibility .7s, transform .7s;
}
.opla-mini-slider .opla-mini-slide.is-active { opacity: 1; visibility: visible; transform: none; }
.opla-mini-slide h3 { font-size: 1.45rem; margin: 0 0 .8rem; }
.opla-mini-slide p { font-size: 15px; margin: 0 0 1rem; }
.opla-mini-slide p:last-child { margin: 0; }
.opla-mini-slide p:last-child a { font-weight: 500; text-decoration: none; }
.opla-mini-slide p:last-child a::after { content: " →"; }
.opla-privacy-dark { background: var(--opla-dark); color: #C8C9CC; padding: clamp(3rem, 7vw, 6rem) clamp(1.5rem, 6vw, 5.5rem) !important; display: flex; flex-direction: column; justify-content: center; }
.opla-privacy-dark h2 { color: #fff; margin: 0 0 1.5rem; }
.opla-privacy-dark p { font-size: 15.5px; }
.opla-privacy-dark .wp-block-buttons { margin-top: 1.5rem; }
@media (max-width: 781px) { .opla-privacy-media { min-height: 520px; padding: 1.25rem !important; } }

/* --- Cosa offriamo / Vision / Mission (schede) --- */
.opla-tabs-nav { display: flex; justify-content: center; gap: 2.5rem; border-bottom: 1px solid var(--global-palette7); margin: 0 auto 3.5rem !important; padding: 0; list-style: none; }
.opla-tabs-nav button { background: none; border: 0; padding: 1rem .2rem; font: 500 13px/1 var(--global-body-font-family); letter-spacing: .1em; text-transform: uppercase; color: var(--global-palette6); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.opla-tabs-nav button.is-active, .opla-tabs-nav button:hover { color: var(--global-palette3); border-bottom-color: var(--opla-orange); }
.opla-tabs.is-ready .opla-tab { display: none; }
.opla-tabs.is-ready .opla-tab.is-active { display: flex; animation: opla-fade .5s ease; }
@keyframes opla-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.opla-tab { gap: clamp(2rem, 6vw, 6rem) !important; align-items: center !important; }
.opla-tab h2 { color: var(--opla-orange); font-size: clamp(1.7rem, 3vw, 2.4rem); }
.opla-tab .wp-block-image img { width: 100%; height: auto; }
.opla-tab .opla-points { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; }
.opla-tab .opla-points li { padding-left: 1.6rem; position: relative; font-size: 15px; }
.opla-tab .opla-points li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--opla-orange); }
.opla-tab .opla-points strong { color: var(--global-palette3); font-weight: 600; }

/* --- Video del Garante --- */
.opla-video {
	position: relative; min-height: 460px; margin: 0 !important; padding: 2rem !important;
	display: flex !important; flex-direction: column; align-items: center; justify-content: center; text-align: center;
	background: linear-gradient(rgba(23,26,32,.72), rgba(23,26,32,.72)), url("/wp-content/uploads/opla/screenshot-2024-09-03-alle-16.37.19.png") center / cover no-repeat;
	color: #fff;
}
.opla-video h2 { color: #fff; margin: 1.5rem 0 .5rem; }
.opla-video p { color: rgba(255,255,255,.85); margin: 0; }
.opla-video .opla-play a {
	display: inline-flex; align-items: center; justify-content: center;
	width: 96px; height: 96px; border-radius: 50%; background: #fff; font-size: 0;
	box-shadow: 0 0 0 0 rgba(255,255,255,.5); animation: opla-pulse 2.2s infinite;
}
.opla-video .opla-play a::before { content: ""; width: 0; height: 0; border-left: 22px solid var(--opla-orange); border-top: 14px solid transparent; border-bottom: 14px solid transparent; margin-left: 6px; }
@keyframes opla-pulse { 70% { box-shadow: 0 0 0 22px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }

/* --- Partner e marchi distribuiti --- */
.opla-partners .opla-center { margin-bottom: 3rem !important; }
.opla-partner-cards { gap: 1.5rem !important; margin-bottom: 4rem !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
@media (max-width: 781px) { .opla-partner-cards { grid-template-columns: 1fr !important; } }
.opla-partner-card { background: var(--opla-light); border-radius: var(--opla-radius); padding: 2.2rem 2.2rem 2rem !important; display: flex; flex-direction: column; }
.opla-partner-card .wp-block-image { margin: 0 0 1.2rem; }
.opla-partner-card .wp-block-image img { height: 96px; width: auto; mix-blend-mode: multiply; margin-left: -12px; }
.opla-partners .opla-partner-card h3.wp-block-heading { margin: 0 0 .6rem; font-size: 1.3rem; font-weight: 500; letter-spacing: -.01em; text-transform: none; color: var(--global-palette3); text-align: left; }
.opla-partner-card p { font-size: 15px; margin: 0 0 1rem; }
.opla-partner-card .opla-partner-link { margin-top: auto; }
.opla-partner-link a { font-size: 14px; font-weight: 500; color: var(--global-palette3); text-decoration: none; border-bottom: 1px solid currentColor; }
.opla-partner-link a:hover { color: var(--opla-orange); }
.opla-partner-link a::after { content: " ↗"; }
.opla-partners h3.wp-block-heading { font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--global-palette6); text-align: center; margin: 0 0 1.4rem; }
.opla-logos { gap: 1rem !important; margin: 0 0 3.5rem !important; }
.opla-logos .wp-block-image { margin: 0; height: 96px; display: flex; align-items: center; justify-content: center; padding: .8rem 1.2rem; background: #fff; border: 1px solid var(--global-palette7); border-radius: var(--opla-radius); transition: border-color .25s, box-shadow .25s; }
.opla-logos .wp-block-image a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.opla-logos .wp-block-image img { max-height: 58px; max-width: 100%; width: auto; object-fit: contain; filter: grayscale(1); opacity: .65; transition: filter .3s, opacity .3s; }
.opla-logos .wp-block-image:hover { border-color: transparent; box-shadow: 0 12px 30px rgba(0,0,0,.08); }
.opla-logos .wp-block-image:hover img { filter: none; opacity: 1; }
.opla-partner-cards { align-items: stretch !important; }
.opla-logos { display: flex !important; flex-wrap: wrap; justify-content: center; row-gap: 1rem !important; }
.opla-logos .wp-block-image { width: 150px; }
.opla-logos--collab .wp-block-image { height: 104px; width: 184px; }

/* --- Ultime news --- */
.opla-news .wp-block-latest-posts.is-grid { gap: 2rem; margin-top: 3rem; }
.opla-news .wp-block-latest-posts.is-grid li { margin: 0 !important; width: auto !important; background: #fff; border-radius: var(--opla-radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .3s, transform .3s; }
.opla-news .wp-block-latest-posts.is-grid li:hover { box-shadow: 0 18px 40px rgba(0,0,0,.08); transform: translateY(-3px); }
.opla-news .wp-block-latest-posts__featured-image { margin: 0 !important; aspect-ratio: 16 / 10; overflow: hidden; background: #eee; }
.opla-news .wp-block-latest-posts__featured-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.opla-news .wp-block-latest-posts__post-title { display: block; padding: 1.4rem 1.5rem 0; font-weight: 500; font-size: 1.05rem; line-height: 1.4; color: var(--global-palette3); text-decoration: none; }
.opla-news .wp-block-latest-posts__post-title:hover { color: var(--opla-orange); }
.opla-news .wp-block-latest-posts__post-date { display: block; padding: .5rem 1.5rem 0; font-size: 13px; color: var(--global-palette6); }
.opla-news .wp-block-latest-posts__post-excerpt { padding: .5rem 1.5rem 1.6rem; margin: 0; font-size: 14.5px; }

/* Correzioni */
html body .entry-content .wp-block-button.is-style-outline .wp-block-button__link.wp-element-button,
html body .entry-content .wp-block-button.is-style-outline .wp-block-button__link:not(.has-background) {
	background: rgba(255,255,255,.88) !important; color: var(--global-palette3) !important; border: 0 !important;
}
body .opla-slide .wp-block-button.is-style-outline .wp-block-button__link:hover { background: #fff !important; }
.entry-content .opla-section h2, .entry-content .opla-privacy-dark h2, .entry-content .opla-tab h2,
.entry-content .opla-video h2, .entry-content .opla-slide h2, .entry-content .opla-news h2 { margin-top: 0; }
.entry-content .opla-video h2 { margin-top: 1.5rem; }
body.home .content-area, body.home .site-main, body.home .entry-content-wrap { margin-top: 0 !important; margin-bottom: 0 !important; padding-bottom: 0 !important; }
body.home .entry-content { margin: 0; }

/* ==========================================================================
   Pagine Elementor
   ========================================================================== */
.opla-el-eyebrow .elementor-heading-title { display: inline-flex; align-items: center; gap: .75rem; }
.opla-el-eyebrow .elementor-heading-title::before { content: ""; width: 36px; height: 1px; background: currentColor; }
.opla-el-hero .elementor-widget-text-editor p:last-child { margin-bottom: 0; }
.opla-el-card { transition: box-shadow .3s, transform .3s; }
.opla-el-card:hover { box-shadow: 0 18px 40px rgba(0,0,0,.08); transform: translateY(-3px); }
.opla-el-person .elementor-image-box-img { overflow: hidden; border-radius: 4px; aspect-ratio: 4 / 5; background: #eee; }
.opla-el-person .elementor-image-box-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .5s, transform .8s cubic-bezier(.16,1,.3,1); }
.opla-el-person:hover .elementor-image-box-img img { filter: none; transform: scale(1.04); }
.opla-el-person .elementor-image-box-title { margin-bottom: .25rem; }
.elementor-page .elementor-widget-text-editor p { margin-bottom: 1em; }
.elementor-page .elementor-widget-text-editor ul { padding-left: 1.2em; }
.elementor-page .elementor-widget-text-editor li { margin-bottom: .5em; }
.opla-el-img img { border-radius: 4px; }
.opla-el-intro { max-width: 52rem; }
.opla-el-card--link .elementor-icon-box-title a { color: inherit; }
.opla-el-card--link { cursor: pointer; }
.opla-el-imgcard { overflow: hidden; }
.opla-el-imgcard .elementor-image-box-img { aspect-ratio: 16 / 10; overflow: hidden; background: #fff; display: block; margin-bottom: 24px !important; }
.opla-el-imgcard .elementor-image-box-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.16,1,.3,1); }
.opla-el-imgcard:hover .elementor-image-box-img img { transform: scale(1.04); }
.opla-el-imgcard .elementor-image-box-content, .opla-el-imgcard .opla-el-card-btn { padding-left: 28px; padding-right: 28px; }

/* ==========================================================================
   4. Footer
   ========================================================================== */
.site-footer .site-middle-footer-wrap .site-footer-row-container-inner { background: var(--opla-dark); color: #A8AAAF; font-size: 14.5px; }
.site-footer .site-bottom-footer-wrap .site-footer-row-container-inner { background: var(--opla-darker); color: #85878C; font-size: 13px; }
.site-footer .site-middle-footer-wrap { padding-top: 1.5rem; }
.site-footer .widget-title, .site-footer h2, .site-footer h3 { color: #fff; font-size: 14px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1.1rem; }
.site-footer a { color: #D7D8DB; text-decoration: none; }
.site-footer a:hover { color: var(--opla-orange); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer .opla-footer-logo img { width: 140px; height: auto; margin-bottom: 1rem; }

/* ==========================================================================
   5. Pagine interne
   ========================================================================== */
.entry-hero .entry-header, .page-title { color: var(--global-palette3); }
.entry-content img { border-radius: var(--opla-radius); }
.entry-content h2 { margin-top: 2.2em; }
.entry-content h3 { margin-top: 1.8em; }
