/*
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; }

/* ---------- Header di Hello Elementor nello stile del design ----------
 * Menu: Aspetto → Menu, posizione "Header". Logo: Aspetto → Personalizza → Identità del sito.
 * Voci speciali (Opzioni schermata → Classi CSS): "gi-tel" per il telefono, "gi-cta" per il pulsante verde.
 */
.site-header { background: #185C63; position: relative; z-index: 50; padding: 0; margin: 0; max-width: none; }
.site-header .header-inner { max-width: 1200px; width: 100%; margin: 0 auto; padding: 14px 24px; display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; align-items: center !important; justify-content: space-between !important; gap: 24px; }
.site-header .site-branding { flex: 0 0 auto; padding: 0; }
.site-header .site-logo img, .site-header .custom-logo { max-height: 48px; width: auto; display: block; }
.site-header .site-title, .site-header .site-title a, .site-header .site-description { color: #fff; }
.site-header .site-navigation { flex: 1 1 auto; display: flex; justify-content: flex-end; }
.site-header .site-navigation ul.menu { display: flex; flex-wrap: nowrap; align-items: center; gap: 22px; margin: 0; padding: 0; }
.site-header .site-navigation ul.menu > li > a { color: #fff; font-size: 16px; font-weight: 700; padding: 10px 0; white-space: nowrap; text-decoration: none; }
.site-header .site-navigation ul.menu > li > a:hover, .site-header .site-navigation ul.menu > li.current-menu-item > a, .site-header .site-navigation ul.menu > li.current-menu-ancestor > a, .site-header .site-navigation ul.menu > li.current-menu-parent > a { color: #8CB82B; }
.site-header .site-navigation ul.menu li.menu-item-has-children > a { padding-right: 4px; }
.site-header .site-navigation ul.menu li.menu-item-has-children::after { color: #fff; font-size: 10px; margin: 0 0 0 2px; }
.site-header .site-navigation ul.menu li ul { background: #fff; border-radius: 4px; box-shadow: 0 8px 24px rgba(0,0,0,.15); padding: 8px 0; min-width: 280px; }
.site-header .site-navigation ul.menu li ul li { width: 100%; display: block; }
.site-header .site-navigation ul.menu li ul li a { display: block; width: 100%; color: #333; font-size: 16px; font-weight: 400; padding: 10px 18px; white-space: nowrap; text-decoration: none; border: 0; }
.site-header .site-navigation ul.menu li ul li a:hover, .site-header .site-navigation ul.menu li ul li.current-menu-item > a { background: #F5F6F3; color: #333; }
.site-header .site-navigation ul.menu li.gi-tel { margin-left: 10px; }
.site-header .site-navigation ul.menu li.gi-tel > a { font-weight: 400; display: flex; align-items: center; gap: 8px; }
.site-header ul.menu li.gi-tel > a::before { content: ""; width: 18px; height: 18px; flex-shrink: 0; background: #8CB82B; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.62 10.79a15.05 15.05 0 0 0 6.59 6.59l2.2-2.2a1 1 0 0 1 1.02-.24c1.12.37 2.33.57 3.57.57a1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1.02l-2.2 2.2z'/%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'%3E%3Cpath d='M6.62 10.79a15.05 15.05 0 0 0 6.59 6.59l2.2-2.2a1 1 0 0 1 1.02-.24c1.12.37 2.33.57 3.57.57a1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E") center / contain no-repeat; }
.site-header .site-navigation ul.menu li.gi-cta > a { background: #8CB82B; color: #1F1F1F; border-radius: 4px; padding: 10px 18px; font-weight: 400; }
.site-header .site-navigation ul.menu li.gi-cta > a:hover { background: #9DC93C; color: #1F1F1F; }
@media (min-width: 1025px) and (max-width: 1199px) {
  .site-header .site-navigation ul.menu { gap: 14px; }
  .site-header .site-navigation ul.menu > li > a { font-size: 15px; }
}
.site-header .site-navigation-toggle-holder { padding: 0; }
.site-header .site-navigation-toggle { background: transparent; border: 1px solid rgba(255,255,255,.6); color: #fff; border-radius: 4px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }
.site-header .site-navigation-toggle-icon, .site-header .site-navigation-toggle-icon::before, .site-header .site-navigation-toggle-icon::after { background-color: #fff; color: #fff; }
.site-header .site-navigation-dropdown ul.menu { background: #124A50; padding: 8px 0 16px; }
.site-header .site-navigation-dropdown ul.menu li a { color: #fff; background: #124A50; border-bottom: 1px solid rgba(255,255,255,.1); padding: 12px 24px; font-size: 17px; font-weight: 700; text-decoration: none; }
.site-header .site-navigation-dropdown ul.menu li ul li a { padding-left: 40px; font-weight: 400; }
.site-header .site-navigation-dropdown ul.menu li.current-menu-item > a { color: #8CB82B; background: #124A50; }
.site-header .site-navigation-dropdown ul.menu li.gi-cta > a { background: #8CB82B; color: #1F1F1F; text-align: center; margin: 12px 24px 0; border-radius: 4px; border: 0; font-weight: 400; }
.site-header .site-navigation-dropdown ul.menu li.gi-tel > a { font-weight: 400; }

/* ---------- Elementor: azzera i default così le pagine restano identiche al design ---------- */
.elementor .elementor-element.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 .elementor-element.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 .elementor-element.gi.gi { position: static; }
.elementor .gi .elementor-widget-container { margin: 0; padding: 0; }
.elementor .elementor-element.gi.gi .elementor-heading-title { color: inherit !important; font-family: inherit !important; font-weight: 700; line-height: 1.2; letter-spacing: inherit; text-transform: none; margin: 0; padding: 0; }
.elementor .elementor-element.gi.gi.elementor-widget-text-editor, .elementor .elementor-element.gi.gi.elementor-widget-html, .elementor .elementor-element.gi.gi.elementor-widget-shortcode { color: inherit !important; font-family: inherit !important; font-size: inherit; font-weight: inherit; line-height: inherit; }
.elementor .elementor-element.gi.gi.elementor-widget-image { text-align: inherit; }
.elementor .elementor-element.gi.gi.elementor-widget-image img { vertical-align: top; }
.elementor .elementor-element.gi.gi .elementor-button { background: none; background-color: transparent; color: inherit; font-family: inherit !important; 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 (dal design Blog.dc.html) ---------- */
.gi-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.gi-blog-archive { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(56px, 8vw, 96px); display: flex; flex-direction: column; gap: 28px; }
.gi-blog-head { display: flex; flex-direction: column; gap: 12px; max-width: 800px; }
.gi-blog-head h1 { margin: 0; font-size: clamp(32px, 4.2vw, 48px); line-height: 1.12; font-weight: 700; }
.gi-blog-head p { margin: 0; font-size: 18px; }
.gi-cats { display: flex; flex-wrap: wrap; gap: 10px; }
.gi-cats a { border: 1px solid #D9D9D9; color: #333; text-decoration: none; padding: 7px 15px; border-radius: 4px; }
.gi-cats a:hover { border-color: #185C63; color: #185C63; }
.gi-cats a.is-active { background: #185C63; border-color: #185C63; color: #fff; }
.gi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.gi-card { border: 1px solid #D9D9D9; border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; background: #fff; }
.gi-card__img { display: block; aspect-ratio: 16 / 9; background: #F7F7F7; overflow: hidden; }
.gi-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.gi-card:hover .gi-card__img img { transform: scale(1.03); }
.gi-card__ph { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; padding: 12px; text-align: center; color: #185C63; font-weight: 700; }
.gi-card__body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.gi-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.gi-meta a { font-weight: 700; text-decoration: none; }
.gi-card h2 { margin: 0; font-size: 21px; line-height: 1.3; }
.gi-card h2 a { color: #333; text-decoration: none; }
.gi-card h2 a:hover { color: #185C63; }
.gi-card p { margin: 0; font-size: 16px; flex: 1; }
.gi-more { font-weight: 700; font-size: 15px; text-decoration: none; }
.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; }
