/*
Theme Name: Diomira Macchine Theme
Theme URI: http://diomiramacchine.com
Author: Vibe Coding
Description: Minimal Industrial Theme for Diomira Macchine
Version: 1.0
Text Domain: diomira
*/

:root {
    --bg-color: #0B0B0D;
    --card-bg: #16161C;
    --text-primary: #F2F2F2;
    --text-secondary: #B9B9B9;
    --accent: #F9C938;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
}

.site-header.scrolled,
.site-header:hover {
    background: rgba(11, 11, 13, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 15px 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.site-logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-logo::after {
    content: '.';
    color: var(--accent);
}

.site-nav ul {
    display: flex;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.site-nav a {
    color: #e0e0e0;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.site-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-nav a:hover,
.site-nav a.active {
    color: #fff;
}

.site-nav a:hover::after {
    width: 100%;
}

/* Hero Slider */
#home {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
}

.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Overlay */
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 20px;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.btn-cta {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--accent);
    color: #000;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    letter-spacing: 1px;
}

.btn-cta:hover {
    background-color: #fff;
    color: #000;
}

/* Macchine Section */
#macchine {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.section-intro {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.machine-block {
    display: flex;
    background: var(--card-bg);
    margin-bottom: 60px;
    border-radius: 8px;
    overflow: hidden;
}

.machine-block:nth-child(even) {
    flex-direction: row-reverse;
}

.machine-text {
    flex: 1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.machine-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--accent);
}

.machine-text p {
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.machine-text ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.machine-text .btn-outline {
    align-self: flex-start;
    padding: 10px 25px;
    border: 1px solid var(--text-secondary);
    color: var(--text-primary);
    text-transform: uppercase;
    font-size: 0.8rem;
}

.machine-text .btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.machine-img {
    flex: 1;
    min-height: 400px;
    background-color: #222;
    background-size: cover;
    background-position: center;
}

/* Contact Section */
#contatti {
    padding: 100px 20px;
    background-color: #0e0e10;
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
}

.wpcf7-form p {
    margin-bottom: 20px;
}

.wpcf7-form label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.wpcf7-form-control {
    width: 100%;
    padding: 15px;
    background: var(--card-bg);
    border: 1px solid #333;
    color: var(--text-primary);
    border-radius: 4px;
}

.wpcf7-form-control:focus {
    border-color: var(--accent);
    outline: none;
}

.wpcf7-submit {
    background-color: var(--accent);
    color: #000;
    font-weight: 700;
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    transition: background 0.3s;
}

.wpcf7-submit:hover {
    background-color: #fff;
}

.contact-info-quick {
    text-align: center;
    margin-top: 40px;
    color: var(--text-secondary);
}

/* Footer */
.site-footer {
    background-color: #000;
    padding: 60px 20px 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.footer-col h4 {
    color: var(--text-primary);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #222;
}

/* Floating FAB */
.fab-mail {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 64px;
    height: 64px;
    background-color: #0B0B0D;
    /* Dark Industrial */
    border: 2px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 10px rgba(249, 201, 56, 0.2);
    z-index: 2000;
    color: var(--accent);
    font-size: 1.8rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.fab-mail:hover {
    transform: translateY(-5px) scale(1.05);
    background-color: var(--accent);
    color: #111;
    box-shadow: 0 10px 30px rgba(249, 201, 56, 0.5);
}

@media (max-width: 768px) {
    .machine-block {
        flex-direction: column !important;
    }

    .machine-img {
        min-height: 250px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }
}