/*
Theme Name: Plasir
Theme URI: https://plasir.it
Description: Single-page theme for Plasir — artisan bakery B2B.
Version: 1.0.0
Author: Plasir
Author URI: https://plasir.it
Text Domain: plasir
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* === Reset & Base === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-bg: #f5f0e8;
    --color-bg-light: #faf7f2;
    --color-bg-dark: #ece5d8;
    --color-brown: #5c3d2e;
    --color-brown-light: #7a5a48;
    --color-brown-dark: #3e2518;
    --color-accent: #8b6914;
    --color-text: #3e2518;
    --color-text-light: #6b5b4e;
    --color-whatsapp: #25d366;
    --color-whatsapp-hover: #1da851;
    --color-white: #ffffff;
    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --max-width: 1000px;
    --section-padding: 60px 20px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--color-brown);
    text-decoration: none;
}

/* === Site Header === */
.site-header {
    text-align: center;
    padding: 24px 20px;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-bg-dark);
}

.site-logo {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--color-brown);
    letter-spacing: 1px;
}

/* === Hero === */
.hero {
    position: relative;
    background: linear-gradient(135deg, #8b7355 0%, #6b5340 50%, #5c3d2e 100%);
    color: var(--color-white);
    text-align: center;
    padding: 80px 20px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(139,115,85,0.4) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(92,61,46,0.3) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: var(--max-width);
    margin: 0 auto;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
}

.hero p {
    font-size: 17px;
    margin-bottom: 32px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s, transform 0.1s;
    text-decoration: none;
}

.btn:active {
    transform: scale(0.98);
}

.btn-whatsapp {
    background: var(--color-whatsapp);
    color: var(--color-white);
}

.btn-whatsapp:hover {
    background: var(--color-whatsapp-hover);
    color: var(--color-white);
}

.btn-brown {
    background: var(--color-brown);
    color: var(--color-white);
}

.btn-brown:hover {
    background: var(--color-brown-light);
    color: var(--color-white);
}

.btn-dark {
    background: var(--color-brown-dark);
    color: var(--color-white);
}

.btn-dark:hover {
    background: var(--color-brown);
    color: var(--color-white);
}

/* === Value Props === */
.value-props {
    background: var(--color-bg-light);
    padding: var(--section-padding);
}

.value-props-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}

.value-prop-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.value-prop h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--color-brown);
}

.value-prop p {
    font-size: 14px;
    color: var(--color-text-light);
}

/* === Product Areas === */
.product-areas {
    padding: var(--section-padding);
    max-width: var(--max-width);
    margin: 0 auto;
}

.product-areas-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.product-area {
    text-align: center;
}

.product-area h2 {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--color-brown);
    font-style: italic;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.product-card {
    background: var(--color-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.product-card-img {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #d4a574, #c4956a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.product-card-label {
    padding: 8px 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text);
}

.product-area > p {
    font-size: 15px;
    color: var(--color-text-light);
    font-style: italic;
    margin-bottom: 16px;
}

/* === Il Laboratorio === */
.laboratorio {
    background: var(--color-bg-dark);
    padding: var(--section-padding);
    text-align: center;
    border-top: 1px solid #ddd5c8;
    border-bottom: 1px solid #ddd5c8;
}

.laboratorio h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--color-brown);
    font-style: italic;
}

.laboratorio p {
    font-size: 16px;
    color: var(--color-text-light);
    max-width: 500px;
    margin: 0 auto 24px;
    line-height: 1.7;
}

/* === Section Divider === */
.section-title-line {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: var(--max-width);
    margin: 0 auto 8px;
}

.section-title-line::before,
.section-title-line::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-brown-light);
    opacity: 0.4;
}

/* === Contact Form === */
.contact-section {
    padding: var(--section-padding);
    background: var(--color-bg-light);
}

.contact-section h2 {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 32px;
    color: var(--color-brown);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d4cfc5;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--color-text);
    background: var(--color-white);
    transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-brown);
}

.contact-form textarea {
    min-height: 100px;
    resize: vertical;
}

.contact-form .btn {
    align-self: center;
    min-width: 220px;
    justify-content: center;
}

.form-message {
    text-align: center;
    padding: 12px;
    border-radius: 6px;
    font-weight: 600;
    display: none;
}

.form-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
}

.form-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
}

/* === Footer === */
.site-footer {
    text-align: center;
    padding: 24px 20px;
    background: var(--color-bg-dark);
    border-top: 1px solid #ddd5c8;
    font-size: 14px;
    color: var(--color-text-light);
}

.site-footer a {
    color: var(--color-brown);
    font-weight: 600;
}

/* === Responsive === */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 28px;
    }

    .value-props-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .product-areas-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    }

    :root {
        --section-padding: 40px 16px;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}
