/*
Theme Name: Carinci Sandro
Theme URI: https://www.carincisandro.it/
Author: ChatGPT
Description: Tema moderno, caldo e professionale per il sito ufficiale di Carinci Sandro (Installatore connessioni Internet FWA e Fibra Ottica).
Version: 1.0.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: carinci-sandro
*/

:root{
  --bg1:#ffb37a;
  --bg2:#ff6f61;
  --bg3:#2b1a3f;
  --card: rgba(255,255,255,.08);
  --card2: rgba(0,0,0,.18);
  --text: rgba(248,248,255,.92);
  --muted: rgba(248,248,255,.72);
  --border: rgba(255,255,255,.12);
  --shadow: 0 20px 60px rgba(0,0,0,.35);
  --radius: 22px;
}

html,body{height:100%}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 700px at 10% 0%, rgba(255,179,122,.55), transparent 60%),
              radial-gradient(900px 600px at 90% 20%, rgba(255,111,97,.45), transparent 55%),
              radial-gradient(900px 700px at 50% 100%, rgba(43,26,63,.85), rgba(12,10,20,.95));
  background-attachment: fixed;
}
a{color:inherit}
.container{width:min(1120px, calc(100% - 40px)); margin:0 auto}
.site-header{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(10,8,18,.65), rgba(10,8,18,.18));
  border-bottom:1px solid var(--border);
}
.header-inner{display:flex; align-items:center; justify-content:space-between; padding:14px 0; gap:16px}
.brand{display:flex; align-items:center; gap:12px; text-decoration:none}
.brand-dot{width:12px; height:12px; border-radius:999px; background: linear-gradient(135deg, #ffd39b, #ff6f61)}
.brand-title{font-weight:900; letter-spacing:.2px}
.nav{display:flex; gap:10px; flex-wrap:wrap; align-items:center}
.nav a{
  text-decoration:none;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid transparent;
  color: var(--muted);
}
.nav a:hover{border-color:var(--border); color:var(--text); background: rgba(255,255,255,.06)}
.nav .cta{
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.16);
  color: var(--text);
  box-shadow: 0 10px 30px rgba(0,0,0,.22);
}

.hero{padding:56px 0 28px}
.hero-card{
  border:1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.04));
  box-shadow: var(--shadow);
  overflow:hidden;
}
.hero-inner{display:grid; grid-template-columns: 1.2fr .8fr; gap:22px; padding:26px}
@media (max-width: 900px){ .hero-inner{grid-template-columns:1fr} }
.kicker{color: var(--muted); font-weight:700; letter-spacing:.2px}
h1{margin:10px 0 10px; font-size: clamp(28px, 3.2vw, 46px); line-height:1.1}
.lead{color: var(--muted); font-size: 16px; line-height: 1.7; margin: 0}
.actions{display:flex; gap:10px; flex-wrap:wrap; margin-top:16px}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 14px;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  color: var(--text);
  text-decoration:none;
  font-weight:800;
}
.btn.primary{
  background: linear-gradient(135deg, rgba(255,211,155,.95), rgba(255,111,97,.92));
  border-color: rgba(255,255,255,.22);
  color: rgba(20,12,26,.92);
}

.promo{
  border-radius: 18px;
  border:1px solid rgba(255,255,255,.14);
  background: radial-gradient(600px 320px at 20% 10%, rgba(255,211,155,.35), transparent 55%),
              radial-gradient(600px 360px at 80% 0%, rgba(255,111,97,.28), transparent 60%),
              linear-gradient(180deg, rgba(0,0,0,.18), rgba(255,255,255,.04));
  padding:18px;
}
.promo-title{font-weight:900; margin:0 0 8px}
.promo-copy{margin:0; color: var(--muted); line-height:1.7}
.logos{
  display:flex; gap:14px; flex-wrap:wrap; align-items:center;
  margin-top:14px;
}
.logo-pill{
  display:flex; align-items:center; justify-content:center;
  height:46px; padding:8px 14px;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
}
.logo-pill img{height:26px; width:auto; filter: drop-shadow(0 8px 18px rgba(0,0,0,.25))}
.section{padding:22px 0 54px}
.grid{
  display:grid; gap:14px;
  grid-template-columns: repeat(12, 1fr);
}
.card{
  grid-column: span 4;
  border:1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.06);
  box-shadow: 0 14px 40px rgba(0,0,0,.25);
  padding:16px;
}
@media (max-width: 900px){ .card{grid-column: span 12;} }
.card h3{margin:0 0 6px}
.card p{margin:0; color: var(--muted); line-height:1.7}

.site-footer{
  border-top:1px solid var(--border);
  background: rgba(0,0,0,.18);
  padding:18px 0;
  color: var(--muted);
}
.notice{color: var(--muted); font-size: 14px; line-height:1.6}

.form-wrap{
  border:1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.06);
  padding:18px;
}
label span{display:block; color: var(--muted); font-weight:700; font-size: 13px; margin: 10px 0 6px}
input, textarea{
  width:100%;
  padding:12px 12px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.18);
  color: var(--text);
  outline:none;
}
textarea{min-height:140px; resize:vertical}
small.help{color: var(--muted)}
.table{width:100%; border-collapse: collapse; margin-top: 10px}
.table th, .table td{border-bottom:1px solid rgba(255,255,255,.10); padding:10px; text-align:left; color: var(--muted)}
.table th{color: rgba(255,255,255,.84)}
.badge{display:inline-block; padding:6px 10px; border-radius: 999px; background: rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.12); color: var(--muted); font-size: 13px}


/* === FIX TITOLI PRINCIPALI - colore brillante su tutte le pagine === */
h1, .entry-title, .page-title, .wp-block-post-title, .hero-card h1 {
  /* Opzione 1 - bianco brillante (semplice) */
  color: var(--text) !important;
  
  /* Opzione 2 - gradiente brillante come i pulsanti (decommenta per usarla) */
  background: linear-gradient(135deg, #ffd39b 0%, #ff6f61 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent !important; /* necessario per il gradiente */
}

h2, h3, .card h3 {
  color: rgba(255,255,255,.96) !important;
}
