/*
Theme Name:  Antares
Theme URI:   https://antares.srl
Author:      Antares srl
Author URI:  https://antares.srl
Description: Tema ufficiale Antares — Hub Tecnologico e Collaborativo, Elmas (CA). One-page layout con sezioni: Hero, Chi Siamo, Hub, Servizi, Gallery, Valori, Tecnologia, Contatti.
Version:     1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License:     Proprietary
Text Domain: antares
Tags:        one-page, custom-logo, full-width-template, translation-ready
*/

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: 'Nunito Sans', sans-serif;
    color: #1c2533;
    background: #f4f6f8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
    --navy:    #0d1b2e;
    --navy2:   #0f2244;
    --white:   #ffffff;
    --offwhite:#f4f6f8;
    --mist:    #e2e7ed;
    --ink:     #1c2533;
    --mid:     #4a5568;
    --lite:    #8898aa;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

/* ============================================================
   NAV
   ============================================================ */
#antares-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 500;
    height: 68px;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 3.5rem;
    background: rgba(13,27,46,0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    transition: background 0.3s;
}

.nav-logo {
    display: flex; align-items: center; gap: 0.7rem;
    text-decoration: none;
}
.nav-logo img { height: 30px; width: auto; }
.nav-logo-text {
    font-family: 'Nunito', sans-serif;
    font-size: 1.15rem; font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--white);
}

.nav-menu {
    display: flex; gap: 2.4rem;
}
.nav-menu a {
    font-family: 'Nunito', sans-serif;
    font-size: 0.8rem; font-weight: 600;
    letter-spacing: 0.07em; text-transform: lowercase;
    color: rgba(255,255,255,0.5);
    transition: color 0.2s;
}
.nav-menu a:hover,
.nav-menu a.active { color: var(--white); }

.nav-cta {
    font-family: 'Nunito', sans-serif;
    font-size: 0.78rem; font-weight: 700;
    letter-spacing: 0.06em; text-transform: lowercase;
    color: var(--navy); background: var(--white);
    padding: 0.5rem 1.4rem;
    transition: opacity 0.2s, transform 0.2s;
}
.nav-cta:hover { opacity: 0.85; transform: translateY(-1px); }

.nav-hamburger {
    display: none;
    flex-direction: column; gap: 5px;
    background: none; border: none; padding: 4px;
}
.nav-hamburger span {
    display: block; width: 24px; height: 2px;
    background: var(--white); transition: all 0.3s;
}

/* ============================================================
   SECTIONS — COMMON
   ============================================================ */
.antares-section { padding: 6rem 3.5rem; }
.section-wrap { max-width: 1300px; margin: 0 auto; }

.section-label {
    font-family: 'Nunito', sans-serif;
    font-size: 0.68rem; font-weight: 700;
    letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--lite);
    display: flex; align-items: center; gap: 0.7rem;
    margin-bottom: 1.2rem;
}
.section-label::before {
    content: ''; width: 20px; height: 1.5px;
    background: var(--lite);
}
.section-label.on-dark { color: rgba(255,255,255,0.35); }
.section-label.on-dark::before { background: rgba(255,255,255,0.28); }

.section-title {
    font-size: clamp(1.9rem, 3.2vw, 2.8rem);
    font-weight: 800; color: var(--navy);
    margin-bottom: 1.1rem;
}
.section-title.on-dark { color: var(--white); }

.section-body {
    font-size: 0.98rem; font-weight: 400; line-height: 1.76;
    color: var(--mid); max-width: 600px;
}
.section-body.on-dark { color: rgba(255,255,255,0.6); }

/* ============================================================
   HERO
   ============================================================ */
#hero {
    height: 100vh; min-height: 700px;
    position: relative; overflow: hidden;
    display: flex; align-items: center;
}
.hero-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center 35%;
    filter: brightness(0.52);
}
.hero-grad {
    position: absolute; inset: 0;
    background: linear-gradient(
        90deg,
        rgba(13,27,46,0.75) 0%,
        rgba(13,27,46,0.35) 48%,
        rgba(13,27,46,0.05) 100%
    );
}
.hero-content {
    position: relative; z-index: 2;
    padding: 0 3.5rem; max-width: 680px;
    animation: fadeUp 1s cubic-bezier(0.16,1,0.3,1) both;
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(36px); }
    to   { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow {
    display: flex; align-items: center; gap: 0.75rem;
    font-family: 'Nunito', sans-serif;
    font-size: 0.72rem; font-weight: 600;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: rgba(255,255,255,0.58);
    margin-bottom: 1.6rem;
}
.hero-eyebrow::before {
    content: ''; width: 32px; height: 1px;
    background: rgba(255,255,255,0.4);
}
.hero-title {
    font-size: clamp(2.6rem,5.5vw,5rem);
    font-weight: 800; line-height: 1.08;
    color: var(--white); margin-bottom: 1.4rem;
    letter-spacing: -0.02em;
}
.hero-title .light { color: rgba(255,255,255,0.45); font-weight: 300; }
.hero-body {
    font-size: 1.05rem; font-weight: 400; line-height: 1.72;
    color: rgba(255,255,255,0.76); max-width: 520px;
    margin-bottom: 2.4rem;
}
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-solid {
    font-family: 'Nunito', sans-serif; font-weight: 700;
    font-size: 0.82rem; letter-spacing: 0.06em; text-transform: lowercase;
    color: var(--navy); background: var(--white);
    padding: 0.82rem 2rem;
    transition: all 0.22s; display: inline-block;
}
.btn-solid:hover { background: #dde3ea; transform: translateY(-2px); }
.btn-outline {
    font-family: 'Nunito', sans-serif; font-weight: 600;
    font-size: 0.82rem; letter-spacing: 0.06em; text-transform: lowercase;
    color: rgba(255,255,255,0.85);
    border: 1.5px solid rgba(255,255,255,0.35);
    padding: 0.82rem 2rem;
    transition: all 0.22s; display: inline-block;
}
.btn-outline:hover { border-color: var(--white); color: var(--white); }

.hero-stats-bar {
    position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
    display: flex;
    background: rgba(13,27,46,0.85);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255,255,255,0.08);
}
.hbar-item {
    flex: 1; padding: 1.4rem 2rem;
    border-right: 1px solid rgba(255,255,255,0.07);
    text-align: center;
}
.hbar-item:last-child { border-right: none; }
.hbar-num {
    font-family: 'Nunito', sans-serif;
    font-size: 1.8rem; font-weight: 800;
    color: var(--white); line-height: 1; margin-bottom: 0.2rem;
}
.hbar-label {
    font-size: 0.7rem; font-weight: 400;
    color: rgba(255,255,255,0.4); letter-spacing: 0.07em;
}

/* ============================================================
   CHI SIAMO
   ============================================================ */
#chi-siamo { background: var(--white); }
.about-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 5rem; align-items: center;
}
.about-text .section-body { margin-bottom: 1.2rem; }
.iso-badge {
    display: flex; align-items: center; gap: 1rem;
    padding: 1rem 1.4rem;
    background: var(--offwhite);
    border: 1px solid var(--mist);
    margin-top: 2rem;
}
.iso-icon {
    width: 40px; height: 40px; flex-shrink: 0;
    background: var(--navy); color: var(--white);
    display: flex; align-items: center; justify-content: center;
}
.iso-icon svg { width: 20px; height: 20px; }
.iso-text { font-size: 0.83rem; color: var(--mid); line-height: 1.5; }
.iso-text strong {
    color: var(--navy); font-weight: 700;
    display: block; margin-bottom: 0.1rem;
}
.about-photos {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
.about-photos img { width: 100%; object-fit: cover; }
.about-photos img:first-child { grid-column: 1/-1; height: 300px; }
.about-photos img:not(:first-child) { height: 195px; }

/* ============================================================
   HUB
   ============================================================ */
#hub { background: var(--navy); }
.hub-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 4rem; margin-top: 3rem; align-items: start;
}
.hub-cards {
    display: flex; flex-direction: column;
    gap: 1px; background: rgba(255,255,255,0.06);
    overflow: hidden;
}
.hub-card {
    display: flex; gap: 1.2rem; align-items: flex-start;
    padding: 1.6rem 1.8rem;
    background: rgba(255,255,255,0.04);
    transition: background 0.25s;
}
.hub-card:hover { background: rgba(255,255,255,0.09); }
.hc-icon {
    width: 36px; height: 36px; flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.15);
    display: flex; align-items: center; justify-content: center;
}
.hc-icon svg { width: 16px; height: 16px; }
.hc-title {
    font-family: 'Nunito', sans-serif;
    font-size: 0.92rem; font-weight: 700;
    color: var(--white); margin-bottom: 0.35rem;
}
.hc-desc {
    font-size: 0.84rem; font-weight: 400; line-height: 1.65;
    color: rgba(255,255,255,0.5);
}
.hub-photos {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem;
}
.hub-photos img { width: 100%; object-fit: cover; }
.hub-photos img:first-child { grid-column: 1/-1; height: 230px; }
.hub-photos img:not(:first-child) { height: 160px; }

/* ============================================================
   SERVIZI
   ============================================================ */
#servizi { background: var(--offwhite); }
.svc-grid {
    display: grid; grid-template-columns: repeat(3,1fr);
    gap: 1px; margin-top: 3rem;
    background: var(--mist); border: 1px solid var(--mist);
}
.svc-card {
    padding: 2.4rem 2rem;
    background: var(--white);
    position: relative; overflow: hidden;
    transition: background 0.28s;
}
.svc-card::after {
    content: ''; position: absolute;
    bottom: 0; left: 0; right: 0; height: 3px;
    background: var(--navy);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.32s ease;
}
.svc-card:hover { background: var(--offwhite); }
.svc-card:hover::after { transform: scaleX(1); }
.svc-num {
    font-family: 'Nunito', sans-serif;
    font-size: 2.6rem; font-weight: 800;
    color: var(--mist); line-height: 1; margin-bottom: 0.8rem;
}
.svc-title {
    font-family: 'Nunito', sans-serif;
    font-size: 1rem; font-weight: 700;
    color: var(--navy); margin-bottom: 0.6rem;
}
.svc-desc {
    font-size: 0.86rem; font-weight: 400; line-height: 1.68;
    color: var(--mid);
}

/* ============================================================
   GALLERY
   ============================================================ */
#gallery { padding: 0; background: var(--navy2); }
.gallery-head { padding: 5rem 3.5rem 2.5rem; }
.masonry {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    grid-auto-rows: 210px;
    gap: 3px;
}
.masonry-item { overflow: hidden; position: relative; }
.masonry-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s ease, filter 0.4s ease;
    filter: brightness(0.8) saturate(0.75);
}
.masonry-item:hover img {
    transform: scale(1.08);
    filter: brightness(1) saturate(1);
}
.masonry-item.tall { grid-row: span 2; }
.masonry-item.wide { grid-column: span 2; }

/* ============================================================
   VALORI
   ============================================================ */
#valori { background: var(--white); }
.valori-top {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 5rem; margin-bottom: 3.5rem; align-items: end;
}
.val-grid {
    display: grid; grid-template-columns: repeat(4,1fr);
    gap: 1px; background: var(--mist); border: 1px solid var(--mist);
}
.val-card {
    padding: 2rem 1.6rem;
    background: var(--offwhite);
    transition: all 0.28s;
}
.val-card:hover {
    background: var(--navy);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(13,27,46,0.18);
    position: relative; z-index: 1;
}
.val-ico {
    width: 40px; height: 40px;
    background: var(--mist);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.2rem;
    transition: background 0.28s;
}
.val-ico svg { width: 18px; height: 18px; }
.val-card:hover .val-ico { background: rgba(255,255,255,0.1); }
.val-title {
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem; font-weight: 700;
    color: var(--navy); margin-bottom: 0.5rem;
    transition: color 0.28s;
}
.val-card:hover .val-title { color: var(--white); }
.val-desc {
    font-size: 0.83rem; font-weight: 400; line-height: 1.65;
    color: var(--mid); transition: color 0.28s;
}
.val-card:hover .val-desc { color: rgba(255,255,255,0.58); }
.val-ico svg { transition: stroke 0.28s; }
.val-card:hover .val-ico svg { stroke: white !important; }

/* ============================================================
   TECNOLOGIA
   ============================================================ */
#tecnologia { background: var(--offwhite); }
.tech-grid {
    display: grid; grid-template-columns: 1.1fr 1fr;
    gap: 5rem; align-items: center; margin-top: 3rem;
}
.tech-imgstack { position: relative; height: 520px; }
.tech-imgstack img {
    position: absolute; object-fit: cover;
    box-shadow: 0 24px 60px rgba(0,0,0,0.12);
}
.tech-imgstack img:first-child { width: 72%; height: 350px; top: 0; left: 0; }
.tech-imgstack img:last-child {
    width: 58%; height: 270px; bottom: 0; right: 0;
    border: 5px solid var(--white);
}
.tech-list { display: flex; flex-direction: column; }
.tech-item {
    display: flex; gap: 1.2rem; align-items: flex-start;
    padding: 1.3rem 0;
    border-bottom: 1px solid var(--mist);
}
.tech-item:first-of-type { border-top: 1px solid var(--mist); }
.ti-num {
    font-family: 'Nunito', sans-serif;
    font-size: 0.72rem; font-weight: 800;
    color: var(--lite); flex-shrink: 0;
    width: 22px; margin-top: 0.25rem;
}
.ti-title {
    font-family: 'Nunito', sans-serif;
    font-size: 0.92rem; font-weight: 700;
    color: var(--navy); margin-bottom: 0.25rem;
}
.ti-desc {
    font-size: 0.83rem; font-weight: 400;
    line-height: 1.6; color: var(--mid);
}

/* ============================================================
   CONTATTI
   ============================================================ */
#contatti { background: var(--navy); }
.contatti-grid {
    display: grid; grid-template-columns: 1fr 1.4fr;
    gap: 5rem; margin-top: 3rem;
}
/* Info-only layout (form removed) */
.contatti-info-only {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem 3rem;
    margin-top: 3rem;
}
.cinfo { display: flex; flex-direction: column; gap: 1.8rem; }
.citem { display: flex; gap: 1rem; align-items: flex-start; }
.citem-ico {
    width: 38px; height: 38px; flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.15);
    display: flex; align-items: center; justify-content: center;
}
.citem-ico svg { width: 16px; height: 16px; }
.citem-label {
    font-size: 0.67rem; font-weight: 700;
    letter-spacing: 0.15em; text-transform: uppercase;
    color: rgba(255,255,255,0.32); margin-bottom: 0.25rem;
}
.citem-val {
    font-size: 0.9rem; font-weight: 400;
    color: rgba(255,255,255,0.78); line-height: 1.55;
}
.citem-val a { color: rgba(255,255,255,0.78); }
.citem-val a:hover { color: var(--white); }

/* Contact Form 7 overrides */
.wpcf7 .cform { display: flex; flex-direction: column; gap: 0.9rem; }
.wpcf7 .frow { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.wpcf7 .fg { display: flex; flex-direction: column; gap: 0.35rem; }
.wpcf7 .fg label {
    font-size: 0.67rem; font-weight: 700;
    letter-spacing: 0.15em; text-transform: uppercase;
    color: rgba(255,255,255,0.32);
}
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea,
.wpcf7 select {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.9rem; font-weight: 400;
    background: rgba(255,255,255,0.06);
    border: 1.5px solid rgba(255,255,255,0.1);
    color: var(--white); padding: 0.8rem 1rem;
    outline: none; resize: vertical; width: 100%;
    transition: border-color 0.2s, background 0.2s;
}
.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
    border-color: rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.1);
}
.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder { color: rgba(255,255,255,0.22); }
.wpcf7 textarea { height: 110px; }
.wpcf7 select option { background: var(--navy); color: var(--white); }
.wpcf7 input[type="submit"] {
    font-family: 'Nunito', sans-serif;
    font-size: 0.85rem; font-weight: 700;
    letter-spacing: 0.05em; text-transform: lowercase;
    color: var(--navy); background: var(--white);
    border: none; padding: 0.9rem 2.2rem;
    cursor: pointer; transition: all 0.22s;
    align-self: flex-start; width: auto;
}
.wpcf7 input[type="submit"]:hover { background: #dde3ea; transform: translateY(-2px); }

/* ============================================================
   FOOTER
   ============================================================ */
#antares-footer {
    background: #07111e;
    padding: 2.2rem 3.5rem;
    display: flex; align-items: center; justify-content: space-between;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-logo {
    display: flex; align-items: center; gap: 0.7rem;
}
.footer-logo img { height: 28px; width: auto; }
.footer-logo-text {
    font-family: 'Nunito', sans-serif;
    font-size: 1rem; font-weight: 700;
    color: rgba(255,255,255,0.7); letter-spacing: 0.06em;
}
.footer-copy {
    font-size: 0.75rem; color: rgba(255,255,255,0.26);
    text-align: center; line-height: 1.65;
}
.footer-copy a { color: rgba(255,255,255,0.35); }
.footer-right {
    font-size: 0.72rem; color: rgba(255,255,255,0.28);
    text-align: right; line-height: 1.6;
}
.footer-right a { color: rgba(255,255,255,0.28); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
    #antares-nav { padding: 0 1.8rem; }
    .nav-menu, .nav-cta { display: none; }
    .nav-hamburger { display: flex; }

    .antares-section { padding: 4.5rem 1.8rem; }
    .about-grid,
    .hub-grid,
    .tech-grid,
    .contatti-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .valori-top { grid-template-columns: 1fr; gap: 2rem; margin-bottom: 2.5rem; }
    .val-grid { grid-template-columns: 1fr 1fr; }
    .svc-grid { grid-template-columns: 1fr 1fr; }
    .masonry { grid-template-columns: repeat(2,1fr); }
    .masonry-item.wide { grid-column: auto; }
    .gallery-head { padding: 3.5rem 1.8rem 2rem; }
    .hero-content { padding: 0 1.8rem; max-width: 100%; }
    #antares-footer { padding: 2rem 1.8rem; flex-direction: column; gap: 1.2rem; text-align: center; }
    .footer-right { text-align: center; }
    .tech-imgstack { height: 350px; }
    .tech-imgstack img:first-child { width: 68%; height: 260px; }
    .tech-imgstack img:last-child { width: 55%; height: 200px; }
}
@media (max-width: 640px) {
    .svc-grid,
    .val-grid { grid-template-columns: 1fr; }
    .wpcf7 .frow { grid-template-columns: 1fr; }
    .masonry { grid-template-columns: 1fr; grid-auto-rows: 200px; }
    .masonry-item.tall { grid-row: auto; }
    .hero-stats-bar { display: none; }
}

/* Mobile nav open */
.nav-open .nav-menu {
    display: flex; flex-direction: column;
    position: fixed; top: 68px; left: 0; right: 0;
    background: rgba(13,27,46,0.98);
    padding: 1.5rem 2rem;
    gap: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.07);
}

/* ============================================================
   WORK IN PROGRESS BANNER
   ============================================================ */
#wip-banner {
    background: #1c2533;
    padding: 1rem 2rem;
    text-align: center;
}
.wip-inner {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}
.wip-text {
    font-family: 'Nunito', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
}
.wip-icon {
    font-size: 0.9rem;
    opacity: 0.5;
}
