/*
Theme Name: Giotto Child
Theme URI: https://www.software-compro-oro.it/
Description: Tema child di Hello Elementor per i siti di Giotto Informatica (ContAttiva per Compro Oro). Header e footer in PHP, stili delle pagine generati dal design, scorrimento immersivo, moduli contatto e dati strutturati. Leggero e veloce.
Author: Giotto Informatica Firenze S.r.l.
Author URI: https://www.giottoinformatica.it/
Template: hello-elementor
Version: 1.0.0
Requires PHP: 7.4
Text Domain: giotto-child
*/

/* ---------- Base ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: #333; font-family: Roboto, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: #185C63; }
a:hover, a:focus { color: #124A50; }
img { max-width: 100%; height: auto; }
::selection { background: #185C63; color: #fff; }
[id] { scroll-margin-top: 16px; }
details summary::-webkit-details-marker { display: none; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link:focus { clip: auto; width: auto; height: auto; z-index: 100000; top: 8px; left: 8px; background: #fff; color: #185C63; padding: 10px 16px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
#gi-main.gi-site-content { display: block; }

/* ---------- Varianti desktop / mobile ---------- */
.gi-mq { display: contents; }
@media (max-width: 1099.98px) { #gi-header .gi-mq-ge-1100 { display: none !important; } }
@media (min-width: 1100px) { #gi-header .gi-mq-lt-1100 { display: none !important; } }

/* ---------- Header ---------- */
#gi-header .gi-has-dd .gi-dd { visibility: hidden; opacity: 0; pointer-events: none; transition: opacity .15s ease, visibility .15s; z-index: 30; }
#gi-header .gi-has-dd:hover .gi-dd, #gi-header .gi-has-dd:focus-within .gi-dd { visibility: visible; opacity: 1; pointer-events: auto; }
#gi-mnav[hidden] { display: none !important; }
.gi-hh1:hover,.gi-hh2:hover,.gi-hh3:hover,.gi-hh4:hover,.gi-hh5:hover { background: #F5F6F3 !important; }
.gi-hh6:hover { background: #9DC93C !important; }
.admin-bar #gi-header { scroll-margin-top: 32px; }

/* ---------- Elementor: azzera i default così le pagine restano identiche al design ---------- */
.elementor .gi.e-con { display: block; flex-direction: row; flex-wrap: nowrap; justify-content: normal; align-items: normal; align-content: normal; gap: normal; padding: 0; margin: 0; min-height: 0; width: auto; max-width: none; min-width: auto; flex: 0 1 auto; align-self: auto; text-align: inherit; overflow: visible; border-radius: 0; z-index: auto; }
.elementor .gi.elementor-widget { margin: 0; padding: 0; width: auto; max-width: none; min-width: auto; flex: 0 1 auto; align-self: auto; }
:where(body:not(.elementor-editor-active)) .elementor .gi.elementor-element { position: static; }
.elementor .gi .elementor-widget-container { margin: 0; padding: 0; }
.elementor .gi .elementor-heading-title { color: inherit; font-family: inherit; font-weight: 700; line-height: 1.2; letter-spacing: inherit; text-transform: none; margin: 0; padding: 0; }
.elementor .gi.elementor-widget-text-editor, .elementor .gi.elementor-widget-html, .elementor .gi.elementor-widget-shortcode { color: inherit; font-family: inherit; font-size: inherit; font-weight: inherit; line-height: inherit; }
.elementor .gi .elementor-button { background: none; background-color: transparent; color: inherit; fill: inherit; font-family: inherit; font-size: inherit; font-weight: inherit; line-height: inherit; letter-spacing: inherit; text-transform: none; padding: 0; border: 0; border-radius: 0; box-shadow: none; text-decoration: none; transition: background-color .2s, color .2s; }
.elementor .gi .elementor-button-content-wrapper { gap: 0; }

/* ---------- FAQ (widget Interruttore/Toggle con schema FAQ) ---------- */
.elementor .gi-faq .elementor-toggle-item { border: 0; border-bottom: 1px solid #D9D9D9; margin: 0 !important; }
.elementor .gi-faq .elementor-tab-title { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; border: 0; margin: 0; font-family: inherit; font-size: 19px; font-weight: 700; line-height: 1.35; color: #333; cursor: pointer; }
.elementor .gi-faq .elementor-tab-title a, .elementor .gi-faq .elementor-tab-title a:hover { color: inherit; text-decoration: none; }
.elementor .gi-faq .elementor-tab-title::after { content: "+"; color: #185C63; font-size: 22px; font-weight: 400; line-height: 1; flex-shrink: 0; }
.elementor .gi-faq .elementor-tab-title.elementor-active::after { content: "–"; }
.elementor .gi-faq .elementor-toggle-icon { display: none; }
.elementor .gi-faq .elementor-tab-content { padding: 0 0 18px; border: 0; color: #333; font-size: 17px; line-height: 1.6; }

/* ---------- Moduli ---------- */
.gi-form-msg { border-radius: 6px; padding: 18px 20px; font-size: 17px; line-height: 1.5; }
.gi-form-ok { background: #EEF6E3; border: 1px solid #8CB82B; color: #1F1F1F; }
.gi-form-err { background: #FDECEC; border: 1px solid #C0392B; color: #1F1F1F; margin-bottom: 16px; }

/* ---------- Blog ---------- */
.gi-blog-hero { background: #185C63; color: #fff; }
.gi-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.gi-blog-hero .gi-wrap { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(40px, 6vw, 72px); }
.gi-blog-hero p.gi-eyebrow { margin: 0 0 12px; font-size: 15px; font-weight: 700; color: #8CB82B; }
.gi-blog-hero h1 { margin: 0; font-size: clamp(32px, 4.2vw, 50px); line-height: 1.12; font-weight: 700; text-wrap: balance; }
.gi-blog-hero p.gi-intro { margin: 16px 0 0; max-width: 680px; font-size: 18px; }
.gi-blog-list { padding: clamp(48px, 7vw, 80px) 0; }
.gi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.gi-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #D9D9D9; border-radius: 8px; overflow: hidden; text-decoration: none; color: #333; transition: box-shadow .25s, transform .25s; }
.gi-card:hover { color: #333; box-shadow: 0 14px 40px rgba(0,0,0,.1); transform: translateY(-3px); }
.gi-card__img { aspect-ratio: 16 / 9; background: #F7F7F7; overflow: hidden; }
.gi-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gi-card__ph { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; color: #185C63; font-weight: 700; font-size: 20px; }
.gi-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.gi-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 14px; }
.gi-pill { background: #F7F7F7; color: #185C63; font-weight: 700; border-radius: 4px; padding: 3px 10px; }
.gi-card h2 { margin: 0; font-size: 21px; line-height: 1.3; }
.gi-card p { margin: 0; font-size: 16px; flex: 1; }
.gi-more { font-weight: 700; color: #185C63; font-size: 15px; }
.gi-pagination { margin-top: 40px; }
.gi-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.gi-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px; border: 1px solid #D9D9D9; border-radius: 4px; text-decoration: none; color: #333; }
.gi-pagination .page-numbers.current, .gi-pagination .page-numbers:hover { background: #185C63; border-color: #185C63; color: #fff; }
.gi-post-hero { background: #F7F7F7; }
.gi-post-hero .gi-wrap { max-width: 860px; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(32px, 5vw, 56px); }
.gi-post-hero h1 { margin: 12px 0 0; font-size: clamp(30px, 3.8vw, 44px); line-height: 1.15; text-wrap: balance; }
.gi-post-cover { max-width: 1000px; margin: clamp(24px, 4vw, 40px) auto 0; padding: 0 24px; }
.gi-post-cover img { width: 100%; height: auto; border-radius: 8px; display: block; }
.gi-post-body { max-width: 760px; margin: 0 auto; padding: clamp(32px, 5vw, 56px) 24px clamp(48px, 7vw, 80px); font-size: 18px; line-height: 1.7; }
.gi-post-body h2 { font-size: clamp(24px, 2.6vw, 30px); line-height: 1.25; margin: 1.8em 0 .6em; }
.gi-post-body h3 { font-size: 21px; line-height: 1.3; margin: 1.6em 0 .5em; }
.gi-post-body p { margin: 0 0 1.2em; }
.gi-post-body ul, .gi-post-body ol { margin: 0 0 1.3em; padding-left: 1.3em; }
.gi-post-body li { margin-bottom: .4em; }
.gi-post-body blockquote { margin: 1.5em 0; border-left: 4px solid #8CB82B; padding: 4px 0 4px 22px; font-size: 20px; }
.gi-post-body img { border-radius: 6px; }
.gi-post-body table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 16px; }
.gi-post-body th, .gi-post-body td { border: 1px solid #D9D9D9; padding: 8px 10px; text-align: left; }
.gi-back { display: inline-block; margin-top: 24px; font-weight: 700; text-decoration: none; }
.gi-cta { background: #124A50; color: #fff; }
.gi-cta .gi-wrap { padding-top: 56px; padding-bottom: 56px; display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.gi-cta h2 { margin: 0; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; max-width: 680px; }
.gi-btn { display: inline-block; background: #8CB82B; color: #1F1F1F !important; text-decoration: none; font-size: 18px; padding: 13px 26px; border-radius: 4px; }
.gi-btn:hover { background: #9DC93C; }
.gi-empty { padding: 24px 0 48px; font-size: 18px; }
