/*
Theme Name: Carone Larota Studio Premium
Theme URI: https://www.studiocaronelarota.com/
Author: Genspark
Author URI: https://www.genspark.ai/
Description: Tema WordPress premium professionale istituzionale con testi delle pagine istituzionali già inseriti nei template per studio di elaborazione dati, consulenza fiscale, fatturazione elettronica e news fiscali.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: carone-larota-studio
Tags: custom-logo, custom-menu, featured-images, blog, one-column, two-columns, right-sidebar
*/

:root {
  --clr-primary: #0b2e4f;
  --clr-primary-2: #133f69;
  --clr-accent: #d38a2d;
  --clr-accent-dark: #a96b1d;
  --clr-text: #1f2937;
  --clr-muted: #5b6472;
  --clr-bg: #f5f7fa;
  --clr-surface: #ffffff;
  --clr-border: #d9e1e8;
  --clr-success: #eaf7ee;
  --shadow-soft: 0 12px 30px rgba(11, 46, 79, 0.08);
  --radius-md: 16px;
  --radius-sm: 10px;
  --site-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  color: var(--clr-text);
  background: var(--clr-bg);
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--clr-primary); text-decoration: none; }
a:hover { color: var(--clr-accent-dark); }

.container {
  width: min(100% - 32px, var(--site-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(217,225,232,0.85);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 82px;
}

.branding {
  display: flex;
  align-items: center;
  gap: 14px;
}

.branding img {
  max-height: 58px;
  width: auto;
}

.site-title {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.15;
  font-weight: 800;
  color: var(--clr-primary);
}

.site-tagline {
  margin: 4px 0 0;
  color: var(--clr-muted);
  font-size: 0.92rem;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.main-navigation a {
  font-weight: 600;
  color: var(--clr-primary);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--clr-primary);
  color: #fff;
  font-weight: 700;
}

.header-cta:hover {
  background: var(--clr-primary-2);
  color: #fff;
}

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0b2e4f 0%, #143f67 55%, #1b5c8d 100%);
  color: #fff;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -120px auto;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  filter: blur(6px);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding: 88px 0 92px;
}

.kicker {
  display: inline-block;
  padding: 8px 14px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1.08;
  margin: 16px 0 18px;
}

.hero p {
  color: rgba(255,255,255,0.9);
  font-size: 1.08rem;
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button,
.wp-block-button__link,
input[type="submit"],
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  background: var(--clr-accent);
  color: #fff;
  padding: 14px 22px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}

.button:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover,
button:hover {
  background: var(--clr-accent-dark);
  color: #fff;
  transform: translateY(-1px);
}

.button.is-secondary {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.35);
}

.hero-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.12);
}

.hero-card h3 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 1.2rem;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.section {
  padding: 78px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.section-head h2,
.page-header h1,
.archive-header h1 {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  line-height: 1.15;
  color: var(--clr-primary);
}

.section-head p,
.lead,
.archive-description {
  margin: 10px 0 0;
  color: var(--clr-muted);
  max-width: 62ch;
}

.grid {
  display: grid;
  gap: 22px;
}

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

.card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-soft);
}

.card h3,
.post-card h3 {
  margin-top: 0;
  margin-bottom: 12px;
  color: var(--clr-primary);
  font-size: 1.25rem;
}

.card p,
.post-card p,
.entry-summary,
.entry-content p,
.entry-content li {
  color: var(--clr-muted);
}

.service-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(211,138,45,0.12);
  color: var(--clr-accent-dark);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  margin-bottom: 18px;
  font-weight: 800;
}

.about-layout,
.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(290px, 0.75fr);
  gap: 26px;
}

.fact-box {
  background: linear-gradient(180deg, #fff 0%, #f9fbfd 100%);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.fact-box strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
  color: var(--clr-primary);
  margin-bottom: 8px;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.post-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.post-card-content {
  padding: 22px;
}

.post-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--clr-muted);
  margin-bottom: 10px;
}

.cta-band {
  background: linear-gradient(135deg, rgba(11,46,79,1) 0%, rgba(19,63,105,1) 100%);
  color: #fff;
  border-radius: 28px;
  padding: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cta-band h2 {
  margin: 0 0 8px;
  color: #fff;
}

.cta-band p {
  margin: 0;
  color: rgba(255,255,255,0.88);
}

.page-wrap,
.archive-wrap,
.blog-wrap {
  padding: 44px 0 78px;
}

.page-card,
.entry-card,
.sidebar-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-soft);
}

.entry-card + .entry-card,
.sidebar-card + .sidebar-card {
  margin-top: 22px;
}

.entry-title {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.15;
  color: var(--clr-primary);
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--clr-primary);
  line-height: 1.2;
}

.entry-content a { text-decoration: underline; }

.notice-success {
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--clr-success);
  border: 1px solid #cce6d2;
  color: #214d2c;
  margin-bottom: 18px;
}

.contact-form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label {
  display: block;
  font-weight: 700;
  color: var(--clr-primary);
  margin-bottom: 8px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid var(--clr-border);
  border-radius: 14px;
  background: #fff;
  color: var(--clr-text);
  font: inherit;
}

textarea { min-height: 180px; resize: vertical; }

.site-footer {
  background: #0c1f34;
  color: rgba(255,255,255,0.82);
  padding: 24px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 24px;
  padding: 34px 0;
}

.site-footer h3,
.site-footer h4 {
  color: #fff;
  margin-top: 0;
}

.site-footer a { color: rgba(255,255,255,0.92); }
.site-footer a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 16px 0 26px;
  font-size: 0.92rem;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute !important;
  white-space: nowrap;
  width: 1px;
}

.menu-toggle {
  display: none;
  background: transparent;
  color: var(--clr-primary);
  border: 1px solid var(--clr-border);
}

@media (max-width: 980px) {
  .hero-inner,
  .about-layout,
  .content-layout,
  .footer-grid,
  .grid-3,
  .grid-2,
  .post-grid,
  .cta-band,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-wrap: wrap;
    padding: 14px 0;
  }

  .menu-toggle { display: inline-flex; }

  .main-navigation {
    width: 100%;
    display: none;
  }

  .main-navigation.is-open {
    display: block;
  }

  .main-navigation ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0 6px;
  }

  .header-cta {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero-inner { padding: 62px 0 70px; }
  .section { padding: 58px 0; }
  .page-card, .entry-card, .sidebar-card, .card { padding: 22px; }
  .cta-band { padding: 24px; }
}

.info-list,
.process-steps {
  margin: 0;
  padding-left: 20px;
  color: var(--clr-muted);
}

.info-list li,
.process-steps li {
  margin-bottom: 10px;
}

.placeholder-box {
  background: linear-gradient(180deg, #fff8ef 0%, #ffffff 100%);
  border-color: #f0d5ae;
}

.meta-note {
  color: var(--clr-muted);
  font-size: 0.95rem;
}

.service-stack .card {
  min-height: 100%;
}
