/*
Theme Name: ST Studio Pro
Theme URI: https://stpublishing.it/
Author: ST Publishing
Author URI: https://stpublishing.it/
Description: Tema WordPress classico di ST Publishing con Customizer avanzato, tipografia responsive, layout per contesto, breadcrumb nativo, homepage modulare e compatibilita WooCommerce.
Version: 0.7.2
Requires at least: 6.6
Tested up to: 7.0
Requires PHP: 8.1
Text Domain: st-studio
Domain Path: /languages
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, blog, e-commerce, right-sidebar
*/

:root {
    --st-accent: #1769aa;
    --st-text: #1d2327;
    --st-muted: #646970;
    --st-border: #dcdcde;
    --st-surface: #ffffff;
    --st-surface-alt: #f6f7f7;
    --st-content-width: 1180px;
    --st-header-title-size: 38px;
    --st-header-tagline-size: 16px;
    --st-logo-max-height: 68px;
    --st-blog-title-size: 18px;
    --st-content-top: 32px;
    --st-branding-width: 32%;
    --st-hero-height: 420px;
    --st-hero-title-size: 42px;
    --st-hero-text-size: 24px;
    --st-hero-overlay: 0.30;
    --st-service-image-height: 320px;
    --st-services-bottom-spacing: 120px;
    --st-blog-image-position: top;
    --st-slider-image-position: top;
    --st-woo-columns: 3;
    --st-woo-columns-tablet: 2;
    --st-woo-columns-mobile: 1;
    --st-woo-card-gap: 24px;
    --st-woo-card-radius: 12px;
    --st-woo-gallery-width: 52%;
    --st-woo-main-image-height: 440px;
    --st-woo-thumb-width: 82px;
    --st-blog-image-height: 260px;
    --st-radius: 8px;
    --st-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    --st-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --st-font-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--st-text);
    background: var(--st-surface);
    font-family: var(--st-font-body);
    font-size: 16px;
    line-height: 1.65;
}
img { max-width: 100%; height: auto; }
a { color: var(--st-accent); text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
a:hover, a:focus { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; }
button, input[type="button"], input[type="submit"], .button, .wp-element-button {
    border: 0;
    border-radius: 5px;
    background: var(--st-accent);
    color: #fff;
    cursor: pointer;
    padding: 0.72rem 1.15rem;
    text-decoration: none;
}
input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], input[type="number"], textarea, select {
    width: 100%;
    max-width: 100%;
    border: 1px solid var(--st-border);
    border-radius: 5px;
    background: #fff;
    color: var(--st-text);
    padding: 0.72rem 0.8rem;
}
textarea { min-height: 140px; resize: vertical; }
h1, h2, h3, h4, h5, h6 { font-family: var(--st-font-heading); line-height: 1.2; }

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}
.screen-reader-text:focus {
    clip: auto !important;
    clip-path: none;
    display: block;
    height: auto;
    left: 8px;
    top: 8px;
    width: auto;
    z-index: 100000;
    background: #fff;
    color: #000;
    padding: 12px 16px;
}

.st-container { width: min(calc(100% - 40px), var(--st-content-width)); margin-inline: auto; }
.st-site { min-height: 100vh; display: flex; flex-direction: column; }
.st-site-main { flex: 1; }

/* Header */
.st-site-header { position: relative; z-index: 1000; background: var(--st-surface); border-bottom: 1px solid var(--st-border); }
.st-sticky-header .st-site-header { position: sticky; top: 0; }
.st-header-inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.st-branding { display: flex; flex: 0 0 var(--st-branding-width); max-width: var(--st-branding-width); align-items: center; gap: 1rem; min-width: 0; }
.st-branding .custom-logo-link { display: block; flex: 0 0 auto; }
.st-branding .custom-logo { display: block; max-height: var(--st-logo-max-height); width: auto; }
.st-branding-text { min-width: 0; }
.st-site-title { margin: 0; font-size: var(--st-header-title-size); line-height: 1.05; font-weight: 700; }
.st-site-title a { color: var(--st-text); text-decoration: none; }
.st-site-description { margin: 0.3rem 0 0; color: var(--st-muted); font-size: var(--st-header-tagline-size); line-height: 1.3; }
.st-primary-nav { flex: 1 1 auto; min-width: 0; }
.st-primary-nav ul { display: flex; align-items: center; flex-wrap: wrap; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.st-primary-nav li { position: relative; }
.st-primary-nav a { display: block; padding: 0.72rem 0.8rem; color: var(--st-text); text-decoration: none; font-weight: 600; }
.st-primary-nav a:hover, .st-primary-nav a:focus, .st-primary-nav .current-menu-item > a { color: var(--st-accent); }
.st-primary-nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; padding: 0.35rem; background: #fff; border: 1px solid var(--st-border); box-shadow: var(--st-shadow); }
.st-primary-nav li:hover > .sub-menu, .st-primary-nav li:focus-within > .sub-menu { display: block; }
.st-primary-nav .sub-menu .sub-menu { top: 0; left: 100%; }
.st-menu-toggle { display: none; align-items: center; gap: 0.5rem; }


/* Homepage slider */
.st-hero { position: relative; height: var(--st-hero-height); overflow: hidden; background: #15191c; color: #fff; }
.st-hero-track, .st-hero-slide { height: 100%; }
.st-hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility .45s ease; }
.st-hero-slide.is-active { opacity: 1; visibility: visible; }
.st-hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center var(--st-slider-image-position); }
.st-hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,var(--st-hero-overlay)); }
.st-hero-content { position: relative; z-index: 2; display: flex; height: 100%; max-width: 980px; flex-direction: column; align-items: flex-start; justify-content: center; }
.st-hero-title { max-width: 900px; margin: 0 0 .65rem; color: #fff; font-size: var(--st-hero-title-size); line-height: 1.12; }
.st-hero-text { max-width: 820px; margin: 0 0 1.35rem; color: #fff; font-size: var(--st-hero-text-size); line-height: 1.4; }
.st-hero-button { display: inline-flex; align-items: center; min-height: 46px; padding: .7rem 1.45rem; border-radius: 5px; background: var(--st-accent); color: #fff; font-weight: 700; text-decoration: none; }
.st-hero-arrow { position: absolute; z-index: 4; top: 50%; display: inline-flex; width: 46px; height: 46px; align-items: center; justify-content: center; transform: translateY(-50%); border: 1px solid rgba(255,255,255,.6); border-radius: 50%; background: rgba(0,0,0,.22); color: #fff; font-size: 22px; padding: 0; }
.st-hero-prev { left: 20px; }
.st-hero-next { right: 20px; }
.st-hero-dots { position: absolute; z-index: 4; left: max(20px, calc((100% - var(--st-content-width))/2)); bottom: 20px; display: flex; gap: 8px; }
.st-hero-dot { width: 11px; height: 11px; min-width: 11px; min-height: 11px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: transparent; }
.st-hero-dot.is-active { background: #fff; }

/* Homepage services */
.st-services-section { padding: 4.5rem 0 var(--st-services-bottom-spacing); background: var(--st-surface); }
.st-section-title { margin: 0 0 2rem; text-align: center; font-size: clamp(2rem, 4vw, 3rem); }
.st-services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.8rem; }
.st-service-card { overflow: hidden; border: 1px solid var(--st-border); border-radius: var(--st-radius); background: #fff; box-shadow: var(--st-shadow); }
.st-service-image { height: var(--st-service-image-height); overflow: hidden; background: var(--st-surface-alt); }
.st-service-image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.st-service-body { padding: 1.4rem; }
.st-service-body h3 { margin-top: 0; margin-bottom: .6rem; font-size: 1.35rem; }
.st-service-body p { margin-top: 0; }
.st-service-link { font-weight: 700; }
.st-front-content { padding-top: var(--st-content-top); }

/* Content */
.st-content-area { padding: var(--st-content-top) 0 4rem; }
.st-content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2.5rem; align-items: start; }
.st-layout-no-sidebar .st-content-grid { grid-template-columns: minmax(0, 1fr); }
.st-layout-left-sidebar .st-content-grid { grid-template-columns: 320px minmax(0, 1fr); }
.st-layout-left-sidebar .st-sidebar { order: -1; }
.st-page-header { margin-bottom: 2rem; }
.st-page-title { margin: 0 0 0.5rem; font-size: clamp(2rem, 4vw, 3.25rem); }
.st-page-description { color: var(--st-muted); }
.st-entry { min-width: 0; }
.st-entry-header { margin-bottom: 1.4rem; }
.st-entry-title { margin: 0; font-size: clamp(2rem, 4vw, 3.1rem); }
.st-entry-title a { color: var(--st-text); text-decoration: none; }
.st-entry-meta { display: flex; flex-wrap: wrap; gap: 0.55rem 1rem; margin-top: 0.75rem; color: var(--st-muted); font-size: 0.92rem; }
.st-entry-thumbnail { margin-bottom: 1.5rem; overflow: hidden; border-radius: var(--st-radius); }
.st-entry-thumbnail img { display: block; width: 100%; }
.st-entry-content > *:first-child { margin-top: 0; }
.st-entry-content::after { content: ""; display: table; clear: both; }
.st-entry-footer { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--st-border); color: var(--st-muted); font-size: 0.92rem; }

/* Blog cards */
.st-post-grid { display: grid; grid-template-columns: repeat(var(--st-blog-columns, 2), minmax(0, 1fr)); gap: 1.8rem; }
.st-post-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: #fff; border: 1px solid var(--st-border); border-radius: var(--st-radius); box-shadow: var(--st-shadow); }
.st-post-card .st-entry-thumbnail { height: var(--st-blog-image-height); margin: 0; border-radius: 0; background: var(--st-surface-alt); }
.st-post-card .st-entry-thumbnail img { width: 100%; height: 100%; object-fit: cover; object-position: center var(--st-blog-image-position); }
.st-post-card-body { display: flex; flex: 1; flex-direction: column; padding: 1.35rem; }
.st-post-card .st-entry-title { font-size: var(--st-blog-title-size); }
.st-post-card .st-entry-content { flex: 1; }
.st-post-card .st-more-link { display: inline-block; margin-top: 0.8rem; font-weight: 700; }

/* Sidebar */
.st-sidebar { min-width: 0; }
.st-widget { margin-bottom: 1.7rem; padding: 1.25rem; border: 1px solid var(--st-border); border-radius: var(--st-radius); background: var(--st-surface); }
.st-widget-title { margin-top: 0; font-size: 1.35rem; }
.st-widget ul { padding-left: 1.25rem; }

/* Navigation */
.st-pagination { margin-top: 2.5rem; }
.st-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.st-pagination .page-numbers { display: inline-flex; min-width: 42px; min-height: 42px; align-items: center; justify-content: center; padding: 0.3rem 0.7rem; border: 1px solid var(--st-border); border-radius: 4px; text-decoration: none; }
.st-pagination .current { background: var(--st-accent); border-color: var(--st-accent); color: #fff; }
.st-post-navigation { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--st-border); }
.st-post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.st-post-navigation .nav-next { text-align: right; }

/* Search */
.st-search-form { display: flex; gap: 0; }
.st-search-form label { flex: 1; }
.st-search-form input[type="search"] { height: 48px; border-radius: 5px 0 0 5px; }
.st-search-form button { height: 48px; border-radius: 0 5px 5px 0; }
.st-no-results { max-width: 720px; }

/* Comments */
.st-comments { margin-top: 3rem; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; margin-left: 1.5rem; padding-left: 1rem; border-left: 1px solid var(--st-border); }
.comment-body { margin-bottom: 1.5rem; padding: 1.25rem; background: var(--st-surface-alt); border-radius: var(--st-radius); }

/* Footer */
.st-site-footer { margin-top: auto; background: #101517; color: #e8ecee; }
.st-footer-widgets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; padding: 3rem 0 2rem; }
.st-site-footer .st-widget { border: 0; padding: 0; background: transparent; box-shadow: none; }
.st-site-footer a { color: #fff; }
.st-footer-bottom { padding: 1.3rem 0; border-top: 1px solid rgba(255,255,255,0.16); font-size: 0.92rem; color: #c6ced2; }
.st-footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.st-footer-nav ul { display: flex; flex-wrap: wrap; gap: 1rem; list-style: none; margin: 0; padding: 0; }
.st-footer-nav a { text-decoration: none; }

/* WordPress core alignment */
.alignleft { float: left; margin: 0.35rem 1.5rem 1rem 0; }
.alignright { float: right; margin: 0.35rem 0 1rem 1.5rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { color: var(--st-muted); font-size: 0.9rem; }
.sticky { outline: 2px solid color-mix(in srgb, var(--st-accent) 25%, transparent); }
.bypostauthor { }


/* ST Studio 0.6.1 - WooCommerce presentation system */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(var(--st-woo-columns), minmax(0, 1fr));
    gap: var(--st-woo-card-gap);
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none;
}

.woocommerce ul.products li.product {
    width: auto !important;
    min-width: 0;
    margin: 0 !important;
    border-radius: var(--st-woo-card-radius);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.st-woo-card-framed.woocommerce-page ul.products li.product,
.st-woo-card-framed .woocommerce ul.products li.product {
    padding: 1rem;
    border: 1px solid var(--st-border);
    background: var(--st-surface);
}

.st-woo-card-elevated.woocommerce-page ul.products li.product,
.st-woo-card-elevated .woocommerce ul.products li.product {
    padding: 1rem;
    border: 1px solid transparent;
    background: var(--st-surface);
    box-shadow: 0 10px 30px rgba(15, 23, 42, .10);
}

.st-woo-card-elevated.woocommerce-page ul.products li.product:hover,
.st-woo-card-elevated .woocommerce ul.products li.product:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 38px rgba(15, 23, 42, .14);
}

.st-woo-card-minimal.woocommerce-page ul.products li.product,
.st-woo-card-minimal .woocommerce ul.products li.product {
    padding: 0;
    border: 0;
    background: transparent;
}

.st-woo-card-align-center.woocommerce-page ul.products li.product,
.st-woo-card-align-center .woocommerce ul.products li.product {
    text-align: center;
}

.woocommerce ul.products li.product a img {
    width: 100%;
    border-radius: var(--st-woo-card-radius);
    background: #f7f7f7;
}

.st-woo-card-ratio-square.woocommerce-page ul.products li.product a img,
.st-woo-card-ratio-square .woocommerce ul.products li.product a img {
    aspect-ratio: 1 / 1;
}

.st-woo-card-ratio-portrait.woocommerce-page ul.products li.product a img,
.st-woo-card-ratio-portrait .woocommerce ul.products li.product a img {
    aspect-ratio: 4 / 5;
}

.st-woo-card-ratio-landscape.woocommerce-page ul.products li.product a img,
.st-woo-card-ratio-landscape .woocommerce ul.products li.product a img {
    aspect-ratio: 4 / 3;
}

.st-woo-card-ratio-square.woocommerce-page ul.products li.product a img,
.st-woo-card-ratio-portrait.woocommerce-page ul.products li.product a img,
.st-woo-card-ratio-landscape.woocommerce-page ul.products li.product a img,
.st-woo-card-ratio-square .woocommerce ul.products li.product a img,
.st-woo-card-ratio-portrait .woocommerce ul.products li.product a img,
.st-woo-card-ratio-landscape .woocommerce ul.products li.product a img {
    height: auto;
}

.st-woo-card-fit-contain.woocommerce-page ul.products li.product a img,
.st-woo-card-fit-contain .woocommerce ul.products li.product a img {
    object-fit: contain;
}

.st-woo-card-fit-cover.woocommerce-page ul.products li.product a img,
.st-woo-card-fit-cover .woocommerce ul.products li.product a img {
    object-fit: cover;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    line-height: 1.25;
}

.woocommerce ul.products li.product .price {
    color: var(--st-text);
    font-weight: 700;
}

.woocommerce span.onsale {
    min-width: 0;
    min-height: 0;
    padding: .45rem .65rem;
    line-height: 1;
    border-radius: 999px;
    background: var(--st-accent);
}

.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
    background: var(--st-accent);
}

/* ST Studio 0.6.1 - Advanced product gallery */
.st-woo-advanced-gallery.single-product div.product {
    display: grid;
    grid-template-columns: minmax(0, var(--st-woo-gallery-width)) minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 4rem);
    align-items: start;
}

.st-woo-advanced-gallery.single-product div.product div.images,
.st-woo-advanced-gallery.single-product div.product div.summary,
.st-woo-advanced-gallery.single-product .woocommerce-product-gallery {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
}

.st-woo-advanced-gallery.single-product .woocommerce-product-gallery__wrapper {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    overflow: visible !important;
}

.st-woo-advanced-gallery.single-product .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:first-child {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    padding: 15px !important;
    background: #f7f7f7 !important;
    border-radius: var(--st-woo-card-radius);
}

.st-woo-advanced-gallery.single-product .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:first-child img {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: var(--st-woo-main-image-height) !important;
    margin: 0 auto !important;
    object-fit: contain !important;
    border-radius: 0 !important;
    box-shadow: 0 8px 20px rgba(0,0,0,.12);
}

.st-woo-advanced-gallery.single-product .woocommerce-product-gallery .flex-control-thumbs {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin: 10px auto 0 !important;
    padding: 0 !important;
    list-style: none;
}

.st-woo-advanced-gallery.single-product .woocommerce-product-gallery .flex-control-thumbs li {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
}

.st-woo-advanced-gallery.single-product .woocommerce-product-gallery .flex-control-thumbs li img {
    display: block;
    width: var(--st-woo-thumb-width) !important;
    height: auto !important;
    max-height: calc(var(--st-woo-thumb-width) * 1.45);
    padding: 4px;
    object-fit: contain;
    border: 1px solid #d8d8d8;
    border-radius: 5px;
    background: #fff;
    opacity: .78;
}

.st-woo-advanced-gallery.single-product .woocommerce-product-gallery .flex-control-thumbs li img.flex-active {
    opacity: 1;
    border-color: var(--st-accent);
}

@media (max-width: 980px) {
    .st-branding { flex-basis: auto; max-width: calc(100% - 120px); }
    .st-services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .st-menu-toggle { display: inline-flex; }
    .st-primary-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-top: 1px solid var(--st-border); border-bottom: 1px solid var(--st-border); box-shadow: var(--st-shadow); }
    .st-primary-nav.is-open { display: block; }
    .st-primary-nav ul { display: block; width: min(calc(100% - 40px), var(--st-content-width)); margin-inline: auto; padding: 0.6rem 0; }
    .st-primary-nav .sub-menu { display: block; position: static; min-width: 0; padding: 0 0 0 1rem; border: 0; box-shadow: none; }
    .st-content-grid, .st-layout-left-sidebar .st-content-grid { grid-template-columns: 1fr; }
    .st-layout-left-sidebar .st-sidebar { order: initial; }
    .woocommerce ul.products { grid-template-columns: repeat(var(--st-woo-columns-tablet), minmax(0, 1fr)); }
}

@media (max-width: 720px) {
    .st-hero { height: min(var(--st-hero-height), 520px); }
    .st-hero-title { font-size: min(var(--st-hero-title-size), 38px); }
    .st-hero-text { font-size: min(var(--st-hero-text-size), 20px); }
    .st-hero-prev { left: 10px; }
    .st-hero-next { right: 10px; }
    .st-hero-dots { left: 20px; bottom: 14px; }
    .st-services-grid { grid-template-columns: 1fr; }
    .st-container { width: min(calc(100% - 28px), var(--st-content-width)); }
    .st-header-inner { min-height: 72px; gap: 1rem; }
    .st-site-title { font-size: min(var(--st-header-title-size), 30px); }
    .st-site-description { font-size: min(var(--st-header-tagline-size), 14px); }
    .st-branding .custom-logo { max-height: min(var(--st-logo-max-height), 54px); }
    .st-content-area { padding-top: 2rem; }
    .st-post-grid { grid-template-columns: 1fr; }
    .st-footer-widgets { grid-template-columns: 1fr; }
    .st-footer-bottom-inner { align-items: flex-start; flex-direction: column; }
    .st-post-navigation .nav-links { grid-template-columns: 1fr; }
    .st-post-navigation .nav-next { text-align: left; }
    .woocommerce ul.products { grid-template-columns: repeat(var(--st-woo-columns-mobile), minmax(0, 1fr)); }
}

/* Homepage introduction */
.st-intro-section { padding: 5rem 0; background: var(--st-surface-alt); }
.st-intro-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr); gap: 4rem; align-items: center; }
.st-intro-copy h2 { margin: 0 0 1.1rem; font-size: clamp(2rem, 4vw, 3.25rem); }
.st-intro-copy > p:not(.st-eyebrow) { max-width: 760px; margin: 0 0 1.4rem; color: var(--st-muted); font-size: 1.08rem; }
.st-eyebrow { margin: 0 0 .7rem; color: var(--st-accent); font-size: .82rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.st-intro-points { display: grid; gap: .7rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.st-intro-points li { position: relative; padding-left: 1.8rem; font-weight: 650; }
.st-intro-points li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--st-accent); font-weight: 900; }
.st-intro-media { overflow: hidden; border-radius: calc(var(--st-radius) * 1.5); background: #fff; box-shadow: 0 22px 55px rgba(17, 48, 70, .13); }
.st-intro-media img { display: block; width: 100%; height: auto; }

@media (max-width: 980px) {
    .st-intro-grid { grid-template-columns: 1fr; gap: 2.25rem; }
    .st-intro-media { max-width: 720px; }
}

/* ST Studio 0.4.0 - Variabili avanzate */
:root {
    --st-heading-color: #1d2327;
    --st-link-hover: #0f568e;
    --st-header-background: #ffffff;
    --st-footer-background: #101517;
    --st-footer-text: #e8ecee;
    --st-body-size-desktop: 16px;
    --st-body-size-tablet: 16px;
    --st-body-size-mobile: 16px;
    --st-body-size: var(--st-body-size-desktop);
    --st-body-line-height: 1.65;
    --st-body-letter-spacing: 0px;
    --st-body-weight: 400;
    --st-boxed-width: 1380px;
    --st-boxed-outer-bg: #eef3f8;
    --st-boxed-shadow: 0 16px 46px rgba(20, 35, 55, 0.12);
    --st-boxed-radius: 0px;
    --st-boxed-vertical-gap: 0px;
    --st-sidebar-width: 320px;
    --st-content-gap: 40px;
    --st-breadcrumb-padding: 18px;
    --st-breadcrumb-bg: #f6f7f7;
    --st-breadcrumb-text: #646970;
    --st-breadcrumb-link: #1769aa;
    --st-button-bg: #1769aa;
    --st-button-text: #ffffff;
    --st-button-hover-bg: #0f568e;
    --st-button-hover-text: #ffffff;
    --st-button-radius: 5px;
    --st-button-font-size: 15px;
    --st-button-weight: 700;
    --st-button-padding-y: 12px;
    --st-button-padding-x: 20px;
    --st-scroll-top-size: 46px;
    --st-preloader-bg: #ffffff;

    --st-h1-font: var(--st-font-heading);
    --st-h1-size-desktop: 48px;
    --st-h1-size-tablet: 44px;
    --st-h1-size-mobile: 38px;
    --st-h1-size: var(--st-h1-size-desktop);
    --st-h1-line-height: 1.15;
    --st-h1-weight: 700;
    --st-h1-style: normal;
    --st-h1-transform: none;
    --st-h1-letter-spacing: 0px;

    --st-h2-font: var(--st-font-heading);
    --st-h2-size-desktop: 40px;
    --st-h2-size-tablet: 36px;
    --st-h2-size-mobile: 32px;
    --st-h2-size: var(--st-h2-size-desktop);
    --st-h2-line-height: 1.2;
    --st-h2-weight: 700;
    --st-h2-style: normal;
    --st-h2-transform: none;
    --st-h2-letter-spacing: 0px;

    --st-h3-font: var(--st-font-heading);
    --st-h3-size-desktop: 32px;
    --st-h3-size-tablet: 30px;
    --st-h3-size-mobile: 27px;
    --st-h3-size: var(--st-h3-size-desktop);
    --st-h3-line-height: 1.25;
    --st-h3-weight: 700;
    --st-h3-style: normal;
    --st-h3-transform: none;
    --st-h3-letter-spacing: 0px;

    --st-h4-font: var(--st-font-heading);
    --st-h4-size-desktop: 26px;
    --st-h4-size-tablet: 24px;
    --st-h4-size-mobile: 23px;
    --st-h4-size: var(--st-h4-size-desktop);
    --st-h4-line-height: 1.25;
    --st-h4-weight: 700;
    --st-h4-style: normal;
    --st-h4-transform: none;
    --st-h4-letter-spacing: 0px;

    --st-h5-font: var(--st-font-heading);
    --st-h5-size-desktop: 21px;
    --st-h5-size-tablet: 20px;
    --st-h5-size-mobile: 19px;
    --st-h5-size: var(--st-h5-size-desktop);
    --st-h5-line-height: 1.3;
    --st-h5-weight: 700;
    --st-h5-style: normal;
    --st-h5-transform: none;
    --st-h5-letter-spacing: 0px;

    --st-h6-font: var(--st-font-heading);
    --st-h6-size-desktop: 18px;
    --st-h6-size-tablet: 18px;
    --st-h6-size-mobile: 17px;
    --st-h6-size: var(--st-h6-size-desktop);
    --st-h6-line-height: 1.3;
    --st-h6-weight: 700;
    --st-h6-style: normal;
    --st-h6-transform: none;
    --st-h6-letter-spacing: 0px;
}

/* ST Studio 0.4.0 - Tipografia responsive */
body {
    font-size: var(--st-body-size);
    font-weight: var(--st-body-weight);
    line-height: var(--st-body-line-height);
    letter-spacing: var(--st-body-letter-spacing);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--st-heading-color);
}

h1 {
    font-family: var(--st-h1-font);
    font-size: var(--st-h1-size);
    font-weight: var(--st-h1-weight);
    font-style: var(--st-h1-style);
    line-height: var(--st-h1-line-height);
    letter-spacing: var(--st-h1-letter-spacing);
    text-transform: var(--st-h1-transform);
}

h2 {
    font-family: var(--st-h2-font);
    font-size: var(--st-h2-size);
    font-weight: var(--st-h2-weight);
    font-style: var(--st-h2-style);
    line-height: var(--st-h2-line-height);
    letter-spacing: var(--st-h2-letter-spacing);
    text-transform: var(--st-h2-transform);
}

h3 {
    font-family: var(--st-h3-font);
    font-size: var(--st-h3-size);
    font-weight: var(--st-h3-weight);
    font-style: var(--st-h3-style);
    line-height: var(--st-h3-line-height);
    letter-spacing: var(--st-h3-letter-spacing);
    text-transform: var(--st-h3-transform);
}

h4 {
    font-family: var(--st-h4-font);
    font-size: var(--st-h4-size);
    font-weight: var(--st-h4-weight);
    font-style: var(--st-h4-style);
    line-height: var(--st-h4-line-height);
    letter-spacing: var(--st-h4-letter-spacing);
    text-transform: var(--st-h4-transform);
}

h5 {
    font-family: var(--st-h5-font);
    font-size: var(--st-h5-size);
    font-weight: var(--st-h5-weight);
    font-style: var(--st-h5-style);
    line-height: var(--st-h5-line-height);
    letter-spacing: var(--st-h5-letter-spacing);
    text-transform: var(--st-h5-transform);
}

h6 {
    font-family: var(--st-h6-font);
    font-size: var(--st-h6-size);
    font-weight: var(--st-h6-weight);
    font-style: var(--st-h6-style);
    line-height: var(--st-h6-line-height);
    letter-spacing: var(--st-h6-letter-spacing);
    text-transform: var(--st-h6-transform);
}

.st-page-title,
.st-entry-title {
    color: var(--st-heading-color);
    font-size: var(--st-h1-size);
}

.st-page-title a,
.st-entry-title a {
    color: var(--st-heading-color);
}

.st-section-title,
.st-intro-copy h2 {
    font-size: var(--st-h2-size);
}

/* ST Studio 0.4.0 - Colori globali e superfici */
a:hover,
a:focus {
    color: var(--st-link-hover);
}

.st-site-header {
    background: var(--st-header-background);
}

.st-primary-nav .sub-menu,
.st-post-card,
.st-widget,
.st-service-card,
.st-intro-media {
    background: var(--st-surface);
}

.st-site-title a,
.st-primary-nav a {
    color: var(--st-heading-color);
}

/* ST Studio 0.6.5 - Layout wide e box pagina configurabile */
.st-site {
    background: var(--st-surface);
}

body.st-site-boxed {
    background: var(--st-boxed-outer-bg);
}

.st-site-boxed .st-site {
    width: min(calc(100% - 32px), var(--st-boxed-width));
    margin: var(--st-boxed-vertical-gap) auto;
    border-radius: var(--st-boxed-radius);
    box-shadow: var(--st-boxed-shadow);
}

@media (max-width: 760px) {
    .st-site-boxed .st-site {
        width: 100%;
        margin-block: 0;
        border-radius: 0;
        box-shadow: none;
    }
}

.st-content-grid {
    grid-template-columns: minmax(0, 1fr) var(--st-sidebar-width);
    gap: var(--st-content-gap);
}

.st-layout-left-sidebar .st-content-grid {
    grid-template-columns: var(--st-sidebar-width) minmax(0, 1fr);
}

/* ST Studio 0.4.0 - Pulsanti globali */
button:not(.st-hero-arrow):not(.st-hero-dot),
input[type="button"],
input[type="submit"],
.button,
.wp-element-button,
.st-hero-button {
    border-radius: var(--st-button-radius);
    background: var(--st-button-bg);
    color: var(--st-button-text);
    font-size: var(--st-button-font-size);
    font-weight: var(--st-button-weight);
    padding: var(--st-button-padding-y) var(--st-button-padding-x);
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

button:not(.st-hero-arrow):not(.st-hero-dot):hover,
button:not(.st-hero-arrow):not(.st-hero-dot):focus,
input[type="button"]:hover,
input[type="button"]:focus,
input[type="submit"]:hover,
input[type="submit"]:focus,
.button:hover,
.button:focus,
.wp-element-button:hover,
.wp-element-button:focus,
.st-hero-button:hover,
.st-hero-button:focus {
    background: var(--st-button-hover-bg);
    color: var(--st-button-hover-text);
}

/* ST Studio 0.4.0 - Breadcrumb nativo */
.st-breadcrumbs {
    background-color: var(--st-breadcrumb-bg);
    background-position: center;
    background-size: cover;
    color: var(--st-breadcrumb-text);
}

.st-breadcrumb-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    padding-top: var(--st-breadcrumb-padding);
    padding-bottom: var(--st-breadcrumb-padding);
    font-size: 0.92rem;
}

.st-breadcrumbs a {
    color: var(--st-breadcrumb-link);
    font-weight: 600;
    text-decoration: none;
}

.st-breadcrumbs a:hover,
.st-breadcrumbs a:focus {
    text-decoration: underline;
}

.st-breadcrumb-separator {
    opacity: 0.55;
}

.st-breadcrumb-current {
    color: var(--st-breadcrumb-text);
}

/* ST Studio 0.4.0 - Footer configurabile */
.st-site-footer {
    background: var(--st-footer-background);
    color: var(--st-footer-text);
}

.st-footer-bottom {
    color: color-mix(in srgb, var(--st-footer-text) 78%, transparent);
}

/* ST Studio 0.4.0 - Pulsante torna in alto */
.st-scroll-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9000;
    display: inline-flex;
    width: var(--st-scroll-top-size);
    height: var(--st-scroll-top-size);
    min-width: var(--st-scroll-top-size);
    min-height: var(--st-scroll-top-size);
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    box-shadow: var(--st-shadow);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.st-scroll-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.st-scroll-top-left .st-scroll-top {
    right: auto;
    left: 24px;
}

/* ST Studio 0.4.0 - Preloader sicuro */
.st-preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: var(--st-preloader-bg);
    color: var(--st-heading-color);
    pointer-events: none;
    animation: st-preloader-fallback 0.35s ease 3s forwards;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.st-preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.st-preloader-spinner {
    width: 46px;
    height: 46px;
    border: 4px solid color-mix(in srgb, var(--st-accent) 20%, transparent);
    border-top-color: var(--st-accent);
    border-radius: 50%;
    animation: st-preloader-spin 0.8s linear infinite;
}

.st-preloader-label {
    font-weight: 700;
}

@keyframes st-preloader-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes st-preloader-fallback {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* ST Studio 0.4.0 - Tipografia tablet */
@media (max-width: 980px) {
    :root {
        --st-body-size: var(--st-body-size-tablet);
        --st-h1-size: var(--st-h1-size-tablet);
        --st-h2-size: var(--st-h2-size-tablet);
        --st-h3-size: var(--st-h3-size-tablet);
        --st-h4-size: var(--st-h4-size-tablet);
        --st-h5-size: var(--st-h5-size-tablet);
        --st-h6-size: var(--st-h6-size-tablet);
    }
}

/* ST Studio 0.4.0 - Tipografia smartphone */
@media (max-width: 720px) {
    :root {
        --st-body-size: var(--st-body-size-mobile);
        --st-h1-size: var(--st-h1-size-mobile);
        --st-h2-size: var(--st-h2-size-mobile);
        --st-h3-size: var(--st-h3-size-mobile);
        --st-h4-size: var(--st-h4-size-mobile);
        --st-h5-size: var(--st-h5-size-mobile);
        --st-h6-size: var(--st-h6-size-mobile);
    }

    .st-scroll-top {
        right: 14px;
        bottom: 14px;
    }

    .st-scroll-top-left .st-scroll-top {
        right: auto;
        left: 14px;
    }
}

/* ST Studio 0.4.0 - Header avanzato */
:root {
    --st-header-height-desktop: 96px;
    --st-header-height-tablet: 88px;
    --st-header-height-mobile: 76px;
    --st-header-padding-y: 10px;
    --st-header-menu-gap: 4px;
    --st-header-menu-size: 15px;
    --st-mobile-logo-height: 48px;
    --st-topbar-height: 38px;
    --st-topbar-font-size: 13px;
    --st-topbar-background: #101517;
    --st-topbar-text: #ffffff;
    --st-topbar-link: #ffffff;
    --st-menu-color: #1d2327;
    --st-menu-hover: #1769aa;
    --st-header-cta-bg: #1769aa;
    --st-header-cta-text: #ffffff;
    --st-footer-padding-y: 56px;
    --st-footer-columns: 3;
}

.st-site-header {
    background: var(--st-header-background);
}

.st-header-main {
    position: relative;
    background: var(--st-header-background);
}

.st-header-inner {
    min-height: var(--st-header-height-desktop);
    padding-top: var(--st-header-padding-y);
    padding-bottom: var(--st-header-padding-y);
}

.st-header-navigation {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    min-width: 0;
}

.st-primary-nav ul {
    gap: var(--st-header-menu-gap);
}

.st-primary-nav a {
    color: var(--st-menu-color);
    font-size: var(--st-header-menu-size);
}

.st-primary-nav a:hover,
.st-primary-nav a:focus,
.st-primary-nav .current-menu-item > a,
.st-primary-nav .current-menu-ancestor > a {
    color: var(--st-menu-hover);
}

.st-mobile-logo {
    display: none;
    flex: 0 0 auto;
}

.st-mobile-logo-image {
    display: block;
    width: auto;
    max-height: var(--st-mobile-logo-height);
}

/* ST Studio 0.4.0 - Layout header */
.st-header-layout-centered .st-header-inner,
.st-header-layout-stacked .st-header-inner {
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.st-header-layout-centered .st-branding,
.st-header-layout-stacked .st-branding {
    flex: 0 1 auto;
    max-width: 100%;
    justify-content: center;
    text-align: center;
}

.st-header-layout-centered .st-header-navigation,
.st-header-layout-stacked .st-header-navigation {
    width: 100%;
    flex: 0 1 auto;
    justify-content: center;
}

.st-header-layout-centered .st-primary-nav > ul,
.st-header-layout-stacked .st-primary-nav > ul {
    justify-content: center;
}

.st-header-layout-stacked .st-header-navigation {
    border-top: 1px solid var(--st-border);
    padding-top: 8px;
}

.st-header-layout-compact .st-header-inner {
    min-height: max(56px, calc(var(--st-header-height-desktop) - 18px));
}

/* ST Studio 0.4.0 - Top Bar */
.st-topbar {
    min-height: var(--st-topbar-height);
    background: var(--st-topbar-background);
    color: var(--st-topbar-text);
    font-size: var(--st-topbar-font-size);
}

.st-topbar-inner {
    display: flex;
    min-height: var(--st-topbar-height);
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-top: 5px;
    padding-bottom: 5px;
}

.st-topbar-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 18px;
}

.st-topbar-info a,
.st-topbar .st-social-links a {
    color: var(--st-topbar-link);
}

.st-topbar-info a {
    text-decoration: none;
}

.st-topbar-slogan {
    font-weight: 700;
}

/* ST Studio 0.4.0 - Social */
.st-social-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.st-social-links a {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    color: inherit;
    opacity: 0.88;
    text-decoration: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.st-social-links a:hover,
.st-social-links a:focus {
    opacity: 1;
    transform: translateY(-1px);
}

.st-social-links svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.st-social-links a[aria-label="Facebook"] svg,
.st-social-links a[aria-label="YouTube"] svg {
    fill: currentColor;
    stroke: none;
}

/* ST Studio 0.4.0 - Azioni header */
.st-header-actions {
    position: relative;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
}

.st-header-action,
.st-header-search > summary {
    display: inline-flex;
    min-width: 38px;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--st-border);
    border-radius: 50%;
    background: var(--st-surface);
    color: var(--st-menu-color);
    cursor: pointer;
    line-height: 1;
    text-decoration: none;
}

.st-header-search > summary {
    list-style: none;
}

.st-header-search > summary::-webkit-details-marker {
    display: none;
}

.st-header-search-panel {
    position: absolute;
    z-index: 1005;
    top: calc(100% + 12px);
    right: 0;
    width: min(360px, calc(100vw - 32px));
    padding: 14px;
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius);
    background: var(--st-surface);
    box-shadow: var(--st-shadow);
}

.st-header-search-panel .search-form {
    display: flex;
    gap: 8px;
}

.st-header-search-panel .search-submit {
    flex: 0 0 auto;
}

.st-header-cart {
    position: relative;
}

.st-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    display: inline-flex;
    min-width: 19px;
    height: 19px;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--st-accent);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
}

.st-header-cta {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: var(--st-button-radius);
    background: var(--st-header-cta-bg);
    color: var(--st-header-cta-text);
    font-size: var(--st-header-menu-size);
    font-weight: 750;
    text-decoration: none;
}

.st-header-cta:hover,
.st-header-cta:focus {
    color: var(--st-header-cta-text);
    filter: brightness(0.92);
}

/* ST Studio 0.4.0 - Footer avanzato */
.st-site-footer {
    background: var(--st-footer-background);
    color: var(--st-footer-text);
}

.st-footer-intro,
.st-footer-social-only {
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.st-footer-intro-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding-top: 34px;
    padding-bottom: 34px;
}

.st-footer-intro-copy {
    max-width: 760px;
}

.st-footer-intro-copy h2 {
    margin: 0 0 8px;
    color: var(--st-footer-text);
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
}

.st-footer-intro-copy p {
    margin: 0;
    color: var(--st-footer-text);
    opacity: 0.78;
}

.st-footer-social-only .st-container {
    display: flex;
    justify-content: flex-end;
    padding-top: 18px;
    padding-bottom: 18px;
}

.st-footer-social a {
    color: var(--st-footer-text);
}

.st-footer-widgets {
    grid-template-columns: repeat(var(--st-footer-columns), minmax(0, 1fr));
    padding-top: var(--st-footer-padding-y);
    padding-bottom: var(--st-footer-padding-y);
}

.st-footer-align-center .st-footer-bottom-inner {
    justify-content: center;
    text-align: center;
}

.st-footer-align-center .st-footer-nav ul {
    justify-content: center;
}

.st-footer-align-left .st-footer-bottom-inner {
    justify-content: flex-start;
    flex-direction: column;
    align-items: flex-start;
}

/* ST Studio 0.4.0 - Tablet */
@media (max-width: 980px) {
    .st-header-inner {
        min-height: var(--st-header-height-tablet);
    }

    .st-header-layout-centered .st-header-inner,
    .st-header-layout-stacked .st-header-inner {
        flex-direction: row;
        justify-content: space-between;
    }

    .st-header-layout-centered .st-branding,
    .st-header-layout-stacked .st-branding {
        justify-content: flex-start;
        text-align: left;
    }

    .st-header-navigation {
        position: static;
        flex: 0 0 auto;
    }

    .st-primary-nav {
        z-index: 1003;
    }

    .st-primary-nav.is-open {
        padding-bottom: 12px;
    }

    .st-header-actions {
        margin-left: 6px;
    }

    .st-header-actions:not(.st-header-actions-mobile) {
        display: none;
    }

    .st-footer-widgets {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ST Studio 0.4.0 - Smartphone */
@media (max-width: 720px) {
    .st-header-inner {
        min-height: var(--st-header-height-mobile);
        padding-top: min(var(--st-header-padding-y), 12px);
        padding-bottom: min(var(--st-header-padding-y), 12px);
    }

    .st-topbar:not(.st-topbar-mobile-visible) {
        display: none;
    }

    .st-topbar-inner,
    .st-topbar-info {
        justify-content: center;
        text-align: center;
    }

    .st-topbar-inner {
        flex-direction: column;
        gap: 7px;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .st-branding {
        max-width: calc(100% - 70px);
    }

    .st-mobile-logo + .st-branding-text,
    .st-mobile-logo ~ .st-branding-text {
        min-width: 0;
    }

    .st-mobile-logo {
        display: block;
    }

    .st-branding.has-mobile-logo .st-main-logo {
        display: none;
    }

    .st-header-actions {
        display: none;
    }

    .st-primary-nav.is-open + .st-header-actions-mobile,
    .st-header-actions-mobile {
        display: flex;
    }

    .st-footer-intro-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .st-footer-social-only .st-container {
        justify-content: flex-start;
    }

    .st-footer-widgets {
        grid-template-columns: 1fr;
    }
}

/* Homepage modulare 0.5.0 */
.st-home-section {
    position: relative;
    padding: 5rem 0;
}

/* Intestazione comune sezioni homepage */
.st-home-section-header {
    max-width: 820px;
    margin: 0 0 2.25rem;
}

/* Titolo comune sezioni homepage */
.st-home-section-header h2 {
    margin: 0 0 .8rem;
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.12;
}

/* Testo introduttivo sezioni homepage */
.st-home-section-lead {
    max-width: 760px;
    margin: 0;
    color: var(--st-muted);
    font-size: 1.08rem;
}

/* Griglia funzionalita homepage */
.st-features-section {
    background: var(--st-surface);
}

/* Card funzionalita homepage */
.st-features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

/* Card singola funzionalita homepage */
.st-feature-card {
    position: relative;
    min-height: 230px;
    padding: 2rem;
    overflow: hidden;
    border: 1px solid var(--st-border);
    border-radius: calc(var(--st-radius) * 1.4);
    background: var(--st-surface);
    box-shadow: var(--st-shadow);
}

/* Numero card funzionalita homepage */
.st-feature-number {
    display: inline-flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    border-radius: 50%;
    background: color-mix(in srgb, var(--st-accent) 12%, #fff);
    color: var(--st-accent);
    font-weight: 800;
}

/* Titolo card funzionalita homepage */
.st-feature-card h3 {
    margin: 0 0 .7rem;
    font-size: 1.35rem;
}

/* Testo card funzionalita homepage */
.st-feature-card p {
    margin: 0;
    color: var(--st-muted);
}

/* Sezione numeri homepage */
.st-counters-section {
    background: var(--st-surface-alt);
}

/* Griglia numeri homepage */
.st-counters-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--st-border);
    border-radius: calc(var(--st-radius) * 1.4);
    background: var(--st-border);
}

/* Elemento numerico homepage */
.st-counter-item {
    padding: 2.15rem 1.5rem;
    background: var(--st-surface);
    text-align: center;
}

/* Valore numerico homepage */
.st-counter-item strong {
    display: block;
    margin-bottom: .3rem;
    color: var(--st-accent);
    font-family: var(--st-font-heading);
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1;
}

/* Etichetta numerica homepage */
.st-counter-item span {
    color: var(--st-muted);
    font-weight: 650;
}

/* Sezione team homepage */
.st-team-section {
    background: var(--st-surface);
}

/* Griglia team homepage */
.st-team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.6rem;
}

/* Card team homepage */
.st-team-card {
    overflow: hidden;
    border: 1px solid var(--st-border);
    border-radius: calc(var(--st-radius) * 1.4);
    background: var(--st-surface);
    box-shadow: var(--st-shadow);
}

/* Immagine team homepage */
.st-team-card img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* Contenuto team homepage */
.st-team-card-body {
    padding: 1.35rem 1.4rem 1.5rem;
}

/* Titolo team homepage */
.st-team-card-body h3 {
    margin: 0 0 .2rem;
    font-size: 1.3rem;
}

/* Ruolo team homepage */
.st-team-card-body p {
    margin: 0;
    color: var(--st-muted);
}

/* Sezione processo homepage */
.st-process-section {
    background: var(--st-surface-alt);
}

/* Griglia processo homepage */
.st-process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Passaggio processo homepage */
.st-process-step {
    position: relative;
    padding: 1.8rem 1.6rem;
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius);
    background: var(--st-surface);
}

/* Indice processo homepage */
.st-process-index {
    display: block;
    margin-bottom: 1.1rem;
    color: var(--st-accent);
    font-family: var(--st-font-heading);
    font-size: 1.65rem;
    font-weight: 800;
}

/* Titolo processo homepage */
.st-process-step h3 {
    margin: 0 0 .55rem;
    font-size: 1.2rem;
}

/* Testo processo homepage */
.st-process-step p {
    margin: 0;
    color: var(--st-muted);
}

/* Sezione call to action homepage */
.st-cta-section {
    isolation: isolate;
    overflow: hidden;
    background: #101820 var(--st-cta-image, none) center / cover no-repeat;
    color: #fff;
}

/* Overlay call to action homepage */
.st-cta-section::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: rgba(8, 20, 28, var(--st-cta-overlay, .68));
    content: "";
}

/* Layout call to action homepage */
.st-cta-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 2rem;
}

/* Titolo call to action homepage */
.st-cta-inner h2 {
    max-width: 900px;
    margin: 0 0 .7rem;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3rem);
}

/* Testo call to action homepage */
.st-cta-inner p {
    max-width: 800px;
    margin: 0;
    color: rgba(255, 255, 255, .86);
    font-size: 1.08rem;
}

/* Pulsante call to action homepage */
.st-cta-button {
    white-space: nowrap;
}

/* Sezione testimonianze homepage */
.st-testimonials-section {
    background: var(--st-surface);
}

/* Griglia testimonianze homepage */
.st-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

/* Card testimonianza homepage */
.st-testimonial-card {
    margin: 0;
    padding: 1.8rem;
    border: 1px solid var(--st-border);
    border-radius: calc(var(--st-radius) * 1.4);
    background: var(--st-surface-alt);
}

/* Citazione testimonianza homepage */
.st-testimonial-card blockquote {
    margin: 0 0 1.5rem;
    font-size: 1.07rem;
    line-height: 1.65;
}

/* Firma testimonianza homepage */
.st-testimonial-card figcaption {
    display: grid;
    gap: .1rem;
}

/* Ruolo testimonianza homepage */
.st-testimonial-card figcaption span {
    color: var(--st-muted);
    font-size: .92rem;
}

/* Sezione partner homepage */
.st-partners-section {
    background: var(--st-surface-alt);
}

/* Griglia partner homepage */
.st-partners-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1rem;
}

/* Elemento partner homepage */
.st-partner-item {
    display: flex;
    min-height: 100px;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius);
    background: var(--st-surface);
    color: var(--st-muted);
    font-weight: 750;
    text-align: center;
    text-decoration: none;
}

/* Logo partner homepage */
.st-partner-item img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 58px;
    object-fit: contain;
}

/* Riga titolo blog homepage */
.st-home-heading-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Reset intestazione blog homepage */
.st-home-heading-row .st-home-section-header {
    margin-bottom: 0;
}

/* Link archivio blog homepage */
.st-home-more-link {
    flex: 0 0 auto;
    color: var(--st-accent);
    font-weight: 750;
    text-decoration: none;
}

/* Griglia articoli homepage */
.st-home-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

/* Card articolo homepage */
.st-home-post-card {
    overflow: hidden;
    border: 1px solid var(--st-border);
    border-radius: calc(var(--st-radius) * 1.3);
    background: var(--st-surface);
    box-shadow: var(--st-shadow);
}

/* Immagine articolo homepage */
.st-home-post-image {
    display: block;
    overflow: hidden;
    background: var(--st-surface-alt);
}

/* Thumbnail articolo homepage */
.st-home-post-image img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
}

/* Corpo articolo homepage */
.st-home-post-body {
    padding: 1.35rem 1.4rem 1.5rem;
}

/* Meta articolo homepage */
.st-home-post-meta {
    margin: 0 0 .6rem;
    color: var(--st-muted);
    font-size: .85rem;
}

/* Titolo articolo homepage */
.st-home-post-body h3 {
    margin: 0 0 .7rem;
    font-size: 1.22rem;
}

/* Link titolo articolo homepage */
.st-home-post-body h3 a {
    color: inherit;
    text-decoration: none;
}

/* Testo articolo homepage */
.st-home-post-body > p:last-child {
    margin: 0;
    color: var(--st-muted);
}

/* Sezione prodotti homepage */
.st-home-products-section {
    background: var(--st-surface-alt);
}

/* Griglia prodotti homepage */
.st-home-products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.4rem;
}

/* Card prodotto homepage */
.st-home-product-card {
    overflow: hidden;
    border: 1px solid var(--st-border);
    border-radius: calc(var(--st-radius) * 1.3);
    background: var(--st-surface);
}

/* Immagine prodotto homepage */
.st-home-product-image {
    display: flex;
    min-height: 260px;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: #fff;
}

/* Foto prodotto homepage */
.st-home-product-image img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 320px;
    object-fit: contain;
}

/* Corpo prodotto homepage */
.st-home-product-body {
    padding: 1.2rem 1.25rem 1.35rem;
    border-top: 1px solid var(--st-border);
}

/* Titolo prodotto homepage */
.st-home-product-body h3 {
    margin: 0 0 .5rem;
    font-size: 1.1rem;
}

/* Link titolo prodotto homepage */
.st-home-product-body h3 a {
    color: inherit;
    text-decoration: none;
}

/* Prezzo prodotto homepage */
.st-home-product-price {
    color: var(--st-accent);
    font-weight: 800;
}

/* Sezione galleria homepage */
.st-gallery-section {
    background: var(--st-surface);
}

/* Griglia galleria homepage */
.st-gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1rem;
}

/* Elemento galleria homepage */
.st-gallery-item {
    grid-column: span 4;
    margin: 0;
    overflow: hidden;
    border-radius: calc(var(--st-radius) * 1.2);
    background: var(--st-surface-alt);
}

/* Variante galleria homepage */
.st-gallery-item:nth-child(1),
.st-gallery-item:nth-child(6) {
    grid-column: span 8;
}

/* Immagine galleria homepage */
.st-gallery-item img {
    display: block;
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform .25s ease;
}

/* Hover immagine galleria homepage */
.st-gallery-item:hover img {
    transform: scale(1.02);
}

/* Sezione contatti homepage */
.st-contact-section {
    background: var(--st-surface-alt);
}

/* Layout contatti homepage */
.st-contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
    gap: 3rem;
    align-items: start;
}

/* Lista contatti homepage */
.st-contact-cards {
    display: grid;
    gap: .9rem;
}

/* Card contatto homepage */
.st-contact-card {
    display: grid;
    gap: .2rem;
    padding: 1.2rem 1.3rem;
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius);
    background: var(--st-surface);
    color: inherit;
    text-decoration: none;
}

/* Etichetta contatto homepage */
.st-contact-card span {
    color: var(--st-muted);
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* Valore contatto homepage */
.st-contact-card strong {
    overflow-wrap: anywhere;
}

/* Sezione mappa homepage */
.st-map-section {
    background: var(--st-surface);
}

/* Contenitore mappa homepage */
.st-map-frame {
    overflow: hidden;
    border: 1px solid var(--st-border);
    border-radius: calc(var(--st-radius) * 1.4);
    background: var(--st-surface-alt);
}

/* Contenuto mappa homepage */
.st-map-frame iframe,
.st-map-frame img {
    display: block;
    width: 100%;
    height: 480px;
    border: 0;
    object-fit: cover;
}

/* Tablet homepage modulare */
@media (max-width: 980px) {
    .st-features-grid,
    .st-team-grid,
    .st-testimonials-grid,
    .st-home-posts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .st-counters-grid,
    .st-process-grid,
    .st-home-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .st-partners-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .st-cta-inner,
    .st-contact-grid {
        grid-template-columns: 1fr;
    }

    .st-cta-button {
        justify-self: start;
    }
}

/* Smartphone homepage modulare */
@media (max-width: 720px) {
    .st-home-section {
        padding: 3.8rem 0;
    }

    .st-features-grid,
    .st-team-grid,
    .st-testimonials-grid,
    .st-home-posts-grid,
    .st-counters-grid,
    .st-process-grid,
    .st-home-products-grid,
    .st-partners-grid {
        grid-template-columns: 1fr;
    }

    .st-home-heading-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .st-gallery-grid {
        grid-template-columns: 1fr;
    }

    .st-gallery-item,
    .st-gallery-item:nth-child(1),
    .st-gallery-item:nth-child(6) {
        grid-column: auto;
    }

    .st-gallery-item img {
        height: 240px;
    }

    .st-map-frame iframe,
    .st-map-frame img {
        height: 360px;
    }
}

/* ST Studio 0.5.1 - Local Font Awesome Free SVG icons */
.st-fa-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    flex: 0 0 auto;
    overflow: visible;
    fill: currentColor;
    vertical-align: -0.125em;
}

.st-social-links .st-fa-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
    stroke: none;
}

.st-topbar-info a,
.st-topbar-address {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.st-topbar-info .st-topbar-icon {
    width: 13px;
    height: 13px;
}

.st-header-action .st-header-action-icon,
.st-header-search > summary .st-header-action-icon {
    width: 16px;
    height: 16px;
}


/* ST Studio 0.5.4 - Prevent horizontal page overflow on responsive layouts */
html,
body,
.st-site {
    max-width: 100%;
}

/* ST Studio 0.5.4 - Responsive layout hardening and sidebar stacking */
@media (max-width: 980px) {
    .st-content-grid,
    .st-layout-left-sidebar .st-content-grid,
    .st-layout-right-sidebar .st-content-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: clamp(1.75rem, 5vw, 3rem);
    }

    .st-content-grid > *,
    .st-content-grid > section,
    .st-content-grid .st-sidebar {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .st-content-grid > section {
        order: 1;
    }

    .st-content-grid .st-sidebar,
    .st-layout-left-sidebar .st-content-grid .st-sidebar {
        order: 2;
    }

    .st-widget {
        max-width: 100%;
        overflow-wrap: anywhere;
    }
}

/* ST Studio 0.5.4 - Smartphone header and slider defaults */
@media (max-width: 720px) {
    .st-header-inner {
        width: 100%;
        min-width: 0;
        gap: 0.65rem;
    }

    .st-branding {
        flex: 1 1 auto;
        max-width: calc(100% - 76px);
        min-width: 0;
        gap: 0.6rem;
    }

    .st-branding-text {
        min-width: 0;
    }

    .st-site-title {
        max-width: 100%;
        font-size: min(var(--st-header-title-size), 27px);
        line-height: 1.08;
        overflow-wrap: anywhere;
    }

    .st-site-description {
        max-width: 100%;
        font-size: min(var(--st-header-tagline-size), 13px);
        line-height: 1.25;
        overflow-wrap: anywhere;
    }

    .st-menu-toggle {
        flex: 0 0 auto;
        min-width: 44px;
        min-height: 44px;
        padding: 0.6rem 0.72rem;
    }

    .st-primary-nav,
    .st-primary-nav.is-open {
        max-width: 100vw;
        overflow-x: hidden;
    }

    .st-hero {
        height: clamp(460px, var(--st-hero-height), 520px);
    }

    .st-hero-content {
        max-width: 100%;
        padding-top: 32px;
        padding-right: 42px;
        padding-bottom: 56px;
        padding-left: 0;
    }

    .st-hero-title {
        max-width: 100%;
        font-size: min(var(--st-hero-title-size), 32px);
        line-height: 1.08;
        overflow-wrap: anywhere;
    }

    .st-hero-text {
        max-width: 100%;
        font-size: min(var(--st-hero-text-size), 18px);
        line-height: 1.42;
        overflow-wrap: anywhere;
    }

    .st-hero-arrow {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
        font-size: 18px;
    }

    .st-hero-prev {
        left: 8px;
    }

    .st-hero-next {
        right: 8px;
    }

    .st-hero-dots {
        left: 14px;
        bottom: 14px;
    }
}

/* ST Studio 0.5.4 - Compact narrow-phone defaults */
@media (max-width: 480px) {
    .st-container {
        width: min(calc(100% - 24px), var(--st-content-width));
    }

    .st-branding {
        max-width: calc(100% - 64px);
    }

    .st-site-title {
        font-size: min(var(--st-header-title-size), 24px);
    }

    .st-site-description {
        display: none;
    }

    .st-hero {
        height: clamp(470px, var(--st-hero-height), 520px);
    }

    .st-hero-content {
        padding-right: 34px;
    }

    .st-hero-title {
        font-size: min(var(--st-hero-title-size), 28px);
    }

    .st-hero-text {
        font-size: min(var(--st-hero-text-size), 17px);
    }
}

/* ST Studio 0.6.1 - WooCommerce responsive single-product layout */
@media (max-width: 980px) {
    .st-woo-advanced-gallery.single-product div.product {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .woocommerce ul.products {
        gap: max(12px, calc(var(--st-woo-card-gap) * .7));
    }

    .woocommerce ul.products li.product {
        padding: .75rem;
    }
}
