/*
Theme Name: Altomare Edilizia 2026
Theme URI: https://www.edilizialtomare.it
Author: Piero De Cindio
Description: Tema custom per Edilizia Altomare - Edilizia Professionale. Design 2026: veloce, leggero, senza page builder.
Version: 1.0.0
Requires PHP: 7.4
Text Domain: altomare
*/
/* ============================================
   ALTOMARE Edilizia Professionale — Design 2026
   Palette: rosso #C8102E, scuro #1B2A35, chiaro #F5F6F8
   ============================================ */
:root {
  --red: #C8102E;
  --red-dark: #A50D26;
  --dark: #1B2A35;
  --dark-2: #22323E;
  --ink: #1d2733;
  --text: #55606b;
  --muted: #8a94a0;
  --light: #F5F6F8;
  --white: #fff;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(20, 30, 45, .10);
  --font: 'Archivo', 'Segoe UI', Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--white); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { color: var(--ink); font-weight: 800; line-height: 1.15; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; padding: 14px 26px; border-radius: 8px; border: 2px solid transparent; cursor: pointer; transition: all .2s; }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(200, 16, 46, .35); }
.btn-red:hover { background: var(--red-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--ink); border-color: #c9ced4; }
.btn-outline:hover { border-color: var(--ink); }
.btn-white { background: #fff; color: var(--red); }
.btn-white:hover { transform: translateY(-2px); }

/* ===== Header ===== */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.97); border-bottom: 1px solid #eceef0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark { width: 46px; height: 46px; background: var(--red); border-radius: 9px; display: grid; place-items: center; }
.logo-mark svg { width: 28px; height: 28px; }
.logo-text { line-height: 1.05; }
.logo-text b { display: block; font-size: 21px; letter-spacing: .04em; color: var(--ink); font-weight: 900; }
.logo-text span { font-size: 9.5px; letter-spacing: .28em; color: var(--muted); font-weight: 600; }
.nav { display: flex; gap: 30px; }
.nav a { font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--ink); padding: 6px 0; position: relative; }
.nav a.active, .nav a:hover { color: var(--red); }
.nav a.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--red); }
.header-cta { padding: 12px 22px; }

/* ===== Hero ===== */
.hero { position: relative; background: linear-gradient(180deg, #dfe7ee 0%, #eef2f5 60%, #f8fafb 100%); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 30px; align-items: center; padding: 70px 0 120px; }
.hero h1 { font-size: 64px; font-weight: 900; letter-spacing: -.01em; }
.hero h1 .accent { color: var(--red); }
.hero p { margin: 22px 0 32px; font-size: 18px; max-width: 420px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-media { position: relative; }
.hero-media img { border-radius: 14px; box-shadow: var(--shadow); width: 100%; object-fit: cover; }

/* Feature cards floating */
.features { position: relative; margin-top: -80px; z-index: 5; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.feature { padding: 34px 26px; text-align: center; border-right: 1px solid #eef0f2; }
.feature:last-child { border-right: 0; }
.feature .f-icon { width: 54px; height: 54px; margin: 0 auto 16px; color: var(--red); }
.feature h3 { font-size: 15.5px; margin-bottom: 10px; font-weight: 800; }
.feature p { font-size: 13.5px; line-height: 1.55; }

/* ===== Dark services section ===== */
.services { background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%); position: relative; margin-top: 90px; padding: 90px 0; color: #b9c4cd; }
.services::before { content: ''; position: absolute; inset: 0; background: url('img/pattern.svg'); opacity: .05; }
.services-inner { position: relative; display: grid; grid-template-columns: 340px 1fr; gap: 60px; align-items: start; }
.eyebrow { color: var(--red); font-size: 12px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; }
.services h2 { color: #fff; font-size: 34px; margin: 14px 0 20px; }
.services .btn-outline { color: #fff; border-color: #45535e; margin-top: 26px; }
.services .btn-outline:hover { border-color: #fff; }
.service-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.s-card { background: #fff; border-radius: 12px; overflow: hidden; color: var(--text); display: flex; flex-direction: column; }
.s-card .s-img { position: relative; }
.s-card .s-img img { height: 170px; width: 100%; object-fit: cover; }
.s-badge { position: absolute; left: 16px; bottom: -18px; width: 40px; height: 40px; background: var(--red); border-radius: 8px; display: grid; place-items: center; color: #fff; box-shadow: 0 6px 14px rgba(200,16,46,.4); }
.s-badge svg { width: 22px; height: 22px; }
.s-card .s-body { padding: 30px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.s-card h3 { font-size: 14.5px; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 10px; }
.s-card p { font-size: 13.5px; flex: 1; }
.s-link { margin-top: 16px; color: var(--ink); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; }
.s-link .arr { color: var(--red); transition: transform .2s; }
.s-card:hover .arr { transform: translateX(4px); }

/* ===== Why us ===== */
.why { padding: 100px 0; background:
  linear-gradient(105deg, #fff 0%, rgba(255,255,255,0) 55%),
  var(--light); position: relative; overflow: hidden; }
.why-inner { display: grid; grid-template-columns: 1fr 1.35fr; gap: 70px; align-items: center; }
.why-media { position: relative; padding: 30px 0; }
.why-shape { display: none; }
.why-media img { position: relative; z-index: 2; margin: 0 auto; filter: drop-shadow(0 18px 30px rgba(20,30,45,.25)); }
.why h2 { font-size: 34px; text-align: left; margin-bottom: 14px; }
.why .underline { width: 44px; height: 3px; background: var(--red); border-radius: 2px; margin-bottom: 40px; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 30px; }
.why-item .w-icon { width: 46px; height: 46px; border: 2px solid var(--red); color: var(--red); border-radius: 50%; display: grid; place-items: center; margin-bottom: 14px; }
.why-item .w-icon svg { width: 22px; height: 22px; }
.why-item h3 { font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; }
.why-item p { font-size: 13px; line-height: 1.55; }

/* ===== Calculator band ===== */
.calc { position: relative; background: url('img/calc-band.png') center/cover; padding: 70px 0; }
.calc::before { content: ''; position: absolute; inset: 0; background: rgba(23, 32, 41, .45); }
.calc-box { position: relative; max-width: 720px; margin: 0 auto; background: rgba(27, 42, 53, .92); border-radius: 14px; text-align: center; padding: 40px 30px; }
.calc-box .c-sub { color: #b9c4cd; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.calc-box h2 { color: #fff; font-size: 30px; letter-spacing: .1em; margin: 8px 0 24px; }

/* ===== Blog ===== */
.blog { padding: 90px 0; }
.blog h2 { font-size: 28px; text-transform: uppercase; letter-spacing: .02em; margin-bottom: 28px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.pill { font-size: 12.5px; font-weight: 600; color: var(--text); padding: 7px 16px; border: 1px solid #d8dce0; border-radius: 99px; cursor: pointer; transition: all .15s; }
.pill.active, .pill:hover { color: var(--red); border-color: var(--red); }
.blog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.post { display: flex; flex-direction: column; }
.post .p-img { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 16/10; background: linear-gradient(135deg, #d7dde2, #eef1f3); }
.post .p-img img { width: 100%; height: 100%; object-fit: cover; }
.p-cat { position: absolute; left: 10px; bottom: 10px; background: var(--red); color: #fff; font-size: 9.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 4px; }
.post h3 { font-size: 15.5px; margin: 14px 0 8px; line-height: 1.35; }
.post p { font-size: 13px; flex: 1; }
.post .p-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.post .p-date { font-size: 12px; color: var(--muted); }
.p-more { font-size: 11.5px; font-weight: 800; letter-spacing: .06em; color: var(--ink); text-transform: uppercase; border-bottom: 2px solid var(--red); padding-bottom: 2px; display: inline-flex; gap: 6px; }
.p-more .arr { color: var(--red); }

/* ===== CTA band ===== */
.cta-band { background: linear-gradient(90deg, var(--red) 0%, #E01A38 100%); border-radius: 14px; margin: 20px auto 90px; max-width: 1200px; padding: 34px 44px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: #fff; }
.cta-left { display: flex; align-items: center; gap: 22px; }
.cta-ico { width: 58px; height: 58px; background: rgba(255,255,255,.15); border-radius: 50%; display: grid; place-items: center; }
.cta-ico svg { width: 30px; height: 30px; }
.cta-band h2 { color: #fff; font-size: 22px; line-height: 1.3; }
.cta-band h2 span { display: block; font-weight: 900; }

/* ===== Footer ===== */
.site-footer { background: var(--dark); color: #9aa7b1; padding: 70px 0 0; font-size: 13.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 50px; }
.site-footer .logo-text b { color: #fff; }
.site-footer h4 { color: #fff; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; }
.site-footer a:hover { color: #fff; }
.f-desc { margin-top: 16px; max-width: 280px; }
.f-contact li { display: flex; gap: 10px; align-items: flex-start; }
.f-contact svg { width: 16px; height: 16px; color: var(--red); flex-shrink: 0; margin-top: 3px; }
.socials { display: flex; gap: 10px; margin-top: 4px; }
.socials a { width: 36px; height: 36px; border: 1px solid #3a4a56; border-radius: 50%; display: grid; place-items: center; transition: all .2s; }
.socials a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.socials svg { width: 16px; height: 16px; }
.footer-bottom { border-top: 1px solid #2c3c48; padding: 20px 0; display: flex; justify-content: space-between; font-size: 12px; }
.footer-bottom .links { display: flex; gap: 22px; }

/* ===== Responsive ===== */
@media (max-width: 1020px) {
  .hero h1 { font-size: 46px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature { border-bottom: 1px solid #eef0f2; }
  .services-inner { grid-template-columns: 1fr; }
  .service-cards { grid-template-columns: repeat(3, 1fr); }
  .why-inner { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .nav { display: none; }
  .hero-inner { grid-template-columns: 1fr; padding-bottom: 140px; }
  .hero h1 { font-size: 38px; }
  .features-grid, .service-cards, .why-grid, .blog-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; text-align: center; margin-left: 24px; margin-right: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; align-items: center; }
}

/* ===== Template interni (archivio, articolo, pagina) ===== */
.page-hero { background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%); padding: 60px 0; }
.page-hero h1 { color: #fff; font-size: 36px; }
.page-hero .crumbs { color: #93a1ac; font-size: 13px; margin-top: 8px; }
.content-area { padding: 70px 0; }
.entry-content { max-width: 780px; margin: 0 auto; font-size: 16.5px; }
.entry-content h2, .entry-content h3 { margin: 1.6em 0 .6em; }
.entry-content p, .entry-content ul, .entry-content ol { margin-bottom: 1.1em; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content img { border-radius: 10px; margin: 1.4em 0; }
.entry-content a { color: var(--red); font-weight: 600; }
.post-meta-top { color: var(--muted); font-size: 13px; margin-bottom: 24px; }
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 1020px) { .archive-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .archive-grid { grid-template-columns: 1fr; } }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 50px; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid #d8dce0; border-radius: 8px; font-size: 14px; font-weight: 600; }
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--red); border-color: var(--red); color: #fff; }
body.admin-bar .site-header { top: 32px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
/* Contact Form 7 base */
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 textarea { width: 100%; padding: 13px 16px; border: 1px solid #d8dce0; border-radius: 8px; font-family: var(--font); font-size: 15px; margin-bottom: 14px; }
.wpcf7 input:focus, .wpcf7 textarea:focus { outline: 2px solid var(--red); border-color: transparent; }
.wpcf7 .wpcf7-submit { background: var(--red); color: #fff; border: 0; padding: 14px 30px; border-radius: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; cursor: pointer; }
