﻿/*
Theme Name: Alla Mario Maniera Pro
Theme URI: https://www.allamariomaniera.it/
Author: Alla Mario Maniera
Description: Tema WordPress leggero per laboratorio di assistenza informatica, riparazioni, microsaldatura e vendita dispositivi.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: allamariomaniera-pro
*/

:root {
  --bg: #f7f5ef;
  --panel: #ffffff;
  --ink: #1f1a17;
  --muted: #6d6258;
  --line: #e2d8c8;
  --brand: #b9852f;
  --brand-dark: #7b5525;
  --accent: #f2b705;
  --dark: #211d1d;
  --soft: #f3eadb;
  --radius: 8px;
  --shadow: 0 18px 50px rgba(42, 33, 25, 0.13);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

a[href] {
  pointer-events: auto;
}

a:hover {
  color: var(--brand);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
textarea {
  font: inherit;
}

.nav-cta,
.btn,
.quote-modal__close,
.footer-whatsapp,
.js-direct-link,
.direct-cta {
  cursor: pointer;
  position: relative;
  z-index: 1000;
  pointer-events: auto !important;
}

.hero__copy,
.site-footer,
.cta-section {
  position: relative;
  z-index: 10;
}

.nav-cta,
.btn {
  border: 0;
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
}

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

.skip-link,
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}

.skip-link:focus {
  z-index: 99;
  width: auto;
  height: auto;
  clip: auto;
  padding: 12px 16px;
  background: var(--dark);
  color: #fff;
}

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

.topbar {
  background:
    linear-gradient(90deg, #211d1d, #3a2a1c 54%, #211d1d);
  color: #efe6d8;
  font-size: 13px;
  border-bottom: 1px solid rgba(242, 183, 5, 0.2);
}

.topbar__inner {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid rgba(242, 183, 5, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #efe6d8;
  font-weight: 650;
}

.topbar__item span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.topbar a:hover {
  color: #fff;
  border-color: rgba(242, 183, 5, 0.45);
}

.nav-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand__logo-wrap {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid rgba(185, 133, 47, 0.34);
  overflow: visible;
}

.brand__logo {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: contain;
  object-position: center;
}

.brand__logo-fallback {
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
}

.brand__fallback {
  color: var(--brand);
  font-weight: 900;
  font-size: 18px;
}

.brand__text {
  display: grid;
  line-height: 1.15;
}

.brand__text strong {
  font-size: 17px;
}

.brand__text small {
  color: var(--muted);
  font-size: 13px;
}

.primary-nav {
  margin-left: auto;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu,
.footer-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0;
  margin: 0;
}

.menu a {
  color: var(--ink);
  font-weight: 650;
  font-size: 15px;
}

.nav-cta,
.nav-link-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius);
  font-weight: 750;
  line-height: 1;
}

.nav-cta,
.btn--primary {
  background: var(--brand);
  color: #fff;
}

.nav-cta:hover,
.btn--primary:hover {
  background: var(--brand-dark);
  color: #fff;
}

.nav-link-cta,
.btn--trade {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}

.nav-link-cta:hover,
.btn--trade:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
}

.btn--light {
  background: #fff;
  color: var(--ink);
}

.btn--light:hover {
  color: var(--brand-dark);
}

.btn--ghost {
  border: 1px solid var(--line);
  background: #fff;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 10px;
}

.menu-toggle span:not(.screen-reader-text) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  background:
    linear-gradient(110deg, rgba(33, 29, 29, 0.96), rgba(45, 34, 27, 0.86)),
    radial-gradient(circle at 75% 25%, rgba(185, 133, 47, 0.5), transparent 34%),
    var(--dark);
  color: #fff;
}

.hero__grid {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  gap: 56px;
  align-items: center;
  padding: 70px 0 82px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero__lead {
  max-width: 660px;
  margin: 22px 0 0;
  color: #d7dee9;
  font-size: 20px;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
  position: relative;
  z-index: 4;
}

.hero__actions .btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 38px 0 0;
}

.hero__stats div {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 14px;
}

.hero__stats dt {
  font-weight: 850;
}

.hero__stats dd {
  margin: 4px 0 0;
  color: #c3ccd9;
  font-size: 14px;
}

.hero__panel {
  display: grid;
  gap: 16px;
}

.device-card,
.diagnostic-card {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.device-card--large {
  min-height: 420px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  position: relative;
}

.device-card--large::before {
  content: "";
  position: absolute;
  inset: 32px 32px auto auto;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
}

.device-card__icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--accent);
  color: #211d1d;
  font-weight: 900;
}

.device-card h2 {
  margin: 28px 0 10px;
  font-size: 34px;
  line-height: 1.05;
}

.device-card p {
  margin: 0;
  color: #d7dee9;
}

.diagnostic-card {
  min-height: 420px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}

.diagnostic-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent);
}

.diagnostic-card > * {
  position: relative;
  z-index: 1;
}

.diagnostic-card__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.diagnostic-card__chip,
.diagnostic-card__status {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 850;
}

.diagnostic-card__chip {
  background: var(--accent);
  color: #211d1d;
}

.diagnostic-card__status {
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #d7dee9;
}

.diagnostic-card h2 {
  margin: auto 0 10px;
  font-size: 34px;
  line-height: 1.05;
}

.diagnostic-card p {
  margin: 0;
  color: #d7dee9;
}

.diagnostic-lines {
  display: grid;
  gap: 9px;
  margin-top: 28px;
}

.diagnostic-lines span {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.diagnostic-lines span:nth-child(1) {
  width: 92%;
}

.diagnostic-lines span:nth-child(2) {
  width: 76%;
}

.diagnostic-lines span:nth-child(3) {
  width: 84%;
}

.diagnostic-lines span:nth-child(4) {
  width: 58%;
  background: rgba(245, 158, 11, 0.72);
}

.status-strip {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  align-items: center;
  padding: 18px;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}

.status-strip span {
  grid-row: span 2;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.15);
}

.status-strip small {
  color: var(--muted);
}

.service-band,
.process,
.content-section {
  padding: 84px 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 32px;
}

.section-heading h2,
.process h2,
.cta-section h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
}

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

.service-grid--wide .service-card h2 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.15;
}

.service-card {
  min-height: 205px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.service-card h3 {
  margin: 0 0 12px;
  font-size: 22px;
}

.service-card p {
  margin: 0;
  color: var(--muted);
}

.process {
  background: #fff;
}

.process__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 52px;
  align-items: start;
}

.process p {
  color: var(--muted);
}

.steps {
  display: grid;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: steps;
}

.steps li {
  counter-increment: steps;
  position: relative;
  padding: 22px 22px 22px 72px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.steps li::before {
  content: counter(steps, decimal-leading-zero);
  position: absolute;
  left: 22px;
  top: 22px;
  color: var(--brand);
  font-weight: 900;
}

.steps strong,
.steps span {
  display: block;
}

.steps span {
  color: var(--muted);
}

.cta-section {
  padding: 54px 0;
  background: linear-gradient(135deg, var(--brand-dark), #2a2119);
  color: #fff;
}

.cta-section__inner {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
  position: relative;
  z-index: 4;
}

.cta-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cta-section h2 {
  max-width: 780px;
}

.page-hero {
  padding: 82px 0;
  background:
    linear-gradient(120deg, rgba(33, 29, 29, 0.96), rgba(73, 52, 30, 0.86)),
    var(--dark);
  color: #fff;
}

.page-hero p {
  max-width: 720px;
  color: #d7dee9;
}

.content-narrow {
  max-width: 820px;
}

.content-narrow a {
  color: var(--brand);
  font-weight: 750;
}

.content-narrow h2,
.content-narrow h3 {
  line-height: 1.15;
}

.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.75fr);
  gap: 34px;
  align-items: start;
}

.info-panel,
.contact-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.info-panel h2,
.contact-card h2 {
  margin-top: 0;
  line-height: 1.15;
}

.info-panel ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.contact-card p {
  color: var(--muted);
}

.contact-card a:not(.btn) {
  color: var(--brand);
  font-weight: 750;
}

.contact-card--dark {
  background: linear-gradient(145deg, var(--dark), #33261c);
  color: #fff;
  border-color: var(--dark);
}

.contact-card--dark p {
  color: #d7dee9;
}

.post-list {
  display: grid;
  gap: 18px;
}

.post-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.site-footer {
  background: #211d1d;
  color: #d7dee9;
  padding: 58px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
}

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

.site-footer p {
  margin: 0 0 10px;
}

.footer-menu {
  display: grid;
  gap: 8px;
}

.footer-whatsapp {
  display: inline-block;
  margin-top: 14px;
  color: #fff;
  font-weight: 800;
}

.footer-trade {
  display: block;
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 28px;
  margin-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
}

.quote-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  pointer-events: none;
}

.quote-modal[aria-hidden="false"],
.quote-modal:target {
  display: flex;
  pointer-events: auto;
}

.quote-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(33, 29, 29, 0.78);
  backdrop-filter: blur(8px);
}

.quote-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: min(760px, calc(100vh - 44px));
  overflow: auto;
  padding: 30px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
}

.quote-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
}

.quote-modal h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.1;
}

.quote-modal__intro {
  margin: 12px 0 22px;
  color: var(--muted);
}

.quote-form {
  display: grid;
  gap: 16px;
}

.quote-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 750;
}

.quote-form input,
.quote-form textarea,
.quote-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f9fbfd;
  color: var(--ink);
  padding: 12px 13px;
  font-weight: 500;
}

.quote-form input:focus,
.quote-form textarea:focus,
.quote-form select:focus {
  outline: 3px solid rgba(15, 118, 110, 0.18);
  border-color: var(--brand);
  background: #fff;
}

.quote-form textarea {
  resize: vertical;
}

.quote-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.quote-form__trap {
  position: absolute;
  left: -9999px;
}

.quote-form__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.quote-form__message {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-weight: 750;
}

.quote-form__message.is-success {
  color: var(--brand);
}

.quote-form__message.is-error {
  color: #b91c1c;
}

.quote-modal-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .primary-nav {
    display: none;
    position: absolute;
    inset: 114px 16px auto;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
  }

  .primary-nav.is-open {
    display: block;
  }

  body.menu-open .primary-nav {
    display: block;
  }

  .menu {
    align-items: stretch;
    display: grid;
    gap: 10px;
  }

  .nav-actions {
    display: none;
  }

  .hero__grid,
  .process__grid,
  .about-grid,
  .contact-grid,  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero__grid {
    min-height: auto;
    padding: 56px 0;
  }

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

@media (max-width: 640px) {
  html {
    scroll-behavior: auto;
  }

  .site-header {
    position: relative;
    backdrop-filter: none;
  }

  .hero,
  .page-hero {
    background: #211d1d;
  }

  .device-card,
  .diagnostic-card,
  .service-card,
  .post-card,
  .quote-modal__dialog {
    box-shadow: none;
  }

  .container {
    width: min(100% - 24px, 1120px);
  }

  .topbar {
    font-size: 12px;
  }

  .topbar__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 9px 0;
  }

  .topbar__item {
    width: auto;
    min-height: 36px;
    padding: 7px 9px;
    justify-content: center;
    text-align: center;
    border-radius: 8px;
    line-height: 1.15;
  }

  .topbar__item:nth-child(3) {
    grid-column: 1 / -1;
    min-height: 34px;
    color: #f7efe3;
    background: rgba(242, 183, 5, 0.08);
  }

  .topbar__item span {
    font-size: 10px;
  }

  .topbar__item:nth-child(2) {
    font-size: 0;
  }

  .topbar__item:nth-child(2)::after {
    content: "Email";
    font-size: 12px;
  }

  .nav-wrap {
    min-height: 70px;
    gap: 12px;
  }

  .brand__logo-wrap {
    width: 58px;
    height: 58px;
  }

  .brand__logo {
    width: 52px;
    height: 52px;
  }

  .brand__text strong {
    font-size: 15px;
  }

  .brand__text small {
    display: none;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 40px;
  }

  .hero__lead {
    font-size: 18px;
  }

  .hero__grid {
    padding: 42px 0;
  }

  .hero__panel {
    display: none;
  }

  .service-band,
  .process,
  .content-section {
    padding: 54px 0;
  }

  .menu-toggle {
    touch-action: manipulation;
  }

  .primary-nav {
    inset: 112px 12px auto;
    box-shadow: 0 10px 28px rgba(33, 29, 29, 0.16);
  }

  .hero__stats,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .device-card--large {
    min-height: 320px;
    padding: 24px;
  }

  .diagnostic-card {
    min-height: 320px;
    padding: 24px;
  }

  .cta-section__inner {
    display: grid;
  }

  .footer-bottom {
    display: grid;
  }

  .quote-modal {
    padding: 12px;
  }

  .quote-modal__dialog {
    padding: 24px 18px;
  }

  .quote-modal h2 {
    font-size: 28px;
  }

  .quote-form__row {
    grid-template-columns: 1fr;
  }
}




