/*
Theme Name: G.F. Auto Moncalieri
Theme URI: https://www.gfautomoncalieri.com
Author: G.F. Auto Snc
Author URI: https://www.gfautomoncalieri.com
Description: Tema WordPress ufficiale di G.F. Auto Moncalieri. Riproduce fedelmente il sito originale: colori grigio e rosso, hero con i servizi, parco auto AutoScout24, cinque pagine legali create automaticamente (Privacy, Cookie, Note Legali, Termini e Condizioni, Contatti), pulsanti flottanti WhatsApp ed email, banner cookie e favicon.
Version: 3.4
Requires at least: 5.9
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gf-auto
Tags: dark, custom-colors, custom-logo, custom-menu, responsive-layout, translation-ready
*/

/* =========================================================
   Il foglio di stile principale del sito originale è in
   assets/css/base.css (colori, layout, responsive).
   Qui sotto solo gli adattamenti necessari a WordPress.
   ========================================================= */

/* Logo personalizzato di WordPress */
.custom-logo-link {
  display: inline-block;
  text-decoration: none;
}

.custom-logo {
  height: 60px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  mix-blend-mode: screen;
  filter: contrast(1.1) brightness(1.05);
}

/* Barra di amministrazione: la navbar sticky non deve coprirla */
body.admin-bar .navbar {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .navbar {
    top: 46px;
  }
}

/* Contenuti editoriali dentro le pagine */
.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content h2 {
  color: #dc2626;
  font-size: 1.25rem;
  margin: 2rem 0 0.8rem;
}

.entry-content h3 {
  color: #ffffff;
  font-size: 1.05rem;
  margin: 1.2rem 0 0.6rem;
}

.entry-content p {
  color: #cbd5e1;
  line-height: 1.65;
  margin-bottom: 0.8rem;
  font-size: 0.96rem;
}

.entry-content ul,
.entry-content ol {
  list-style: disc;
  padding-left: 1.5rem;
  color: #cbd5e1;
  margin-bottom: 1rem;
}

.entry-content li {
  margin-bottom: 0.6rem;
  line-height: 1.6;
  font-size: 0.95rem;
}

.entry-content a {
  color: #e2e8f0;
  text-decoration: underline;
  text-decoration-color: rgba(226, 232, 240, 0.45);
  text-underline-offset: 2px;
  transition: color 0.2s, text-decoration-color 0.2s;
}

.entry-content a:hover {
  color: #ffffff;
  text-decoration-color: #dc2626;
}

.entry-content strong {
  color: #ffffff;
}

.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Pagina generica (pagine senza template dedicato) */
.page-simple {
  max-width: 960px;
  width: 100%;
  margin: 2rem auto;
  padding: 0 1rem;
  flex: 1;
}

.page-simple .legal-box {
  background-color: #1e2127;
  border: 1px solid #363a45;
  border-radius: 12px;
  padding: 2.5rem;
}

.page-simple h1 {
  color: #ffffff;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  margin-bottom: 1.5rem;
}

/* Pagina 404 */
.error-404 {
  max-width: 720px;
  margin: 4rem auto;
  padding: 0 1rem;
  text-align: center;
  flex: 1;
}

.error-404 h1 {
  color: #ffffff;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  margin-bottom: 1rem;
}

.error-404 p {
  color: #94a3b8;
  margin-bottom: 1.5rem;
}

/* Allineamenti WordPress */
.alignwide {
  max-width: 1400px;
}

.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
}

/* Accessibilità: link "salta al contenuto" */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #dc2626;
  color: #fff;
  padding: 0.7rem 1.2rem;
  z-index: 100000;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
}

/* Testo solo per screen reader */
.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;
  width: 1px;
  word-wrap: normal !important;
}
