/* ========================================
   CONTATTI PAGE CSS
   ======================================== */

/* Contact Layout */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Contact Info */
.contact-info__title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 400;
    color: #060606;
    margin-bottom: 2rem;
}

.contact-card {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(6, 6, 6, 0.08);
}

.contact-card:last-child {
    border-bottom: none;
}

.contact-card__icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    color: #d4af37;
}

.contact-card__icon svg {
    width: 100%;
    height: 100%;
}

.contact-card__content h3 {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #d4af37;
    margin-bottom: 0.5rem;
}

.contact-card__content p,
.contact-card__content address {
    font-family: 'Lora', serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
    font-style: normal;
}

.contact-card__content a {
    color: #060606;
    text-decoration: none;
    border-bottom: 1px solid #d4af37;
    transition: color 0.2s ease;
}

.contact-card__content a:hover {
    color: #d4af37;
}

/* Contact Form */
.contact-form-wrapper {
    background: #f5f3f0;
    padding: 3rem;
    border-radius: 8px;
}

.contact-form__title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 400;
    color: #060606;
    margin-bottom: 0.75rem;
}

.contact-form__intro {
    font-size: 0.9375rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #060606;
    margin-bottom: 0.5rem;
}

.required {
    color: #c53030;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: 'Lora', serif;
    font-size: 1rem;
    color: #1a1a1a;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    appearance: none;
}

.form-input:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

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

select.form-input {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 18px;
    padding-right: 3rem;
}

/* Checkbox */
.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: #666;
    line-height: 1.4;
}

.form-checkbox input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #d4af37;
}

.form-checkbox a {
    color: #d4af37;
    text-decoration: underline;
}

.form-submit {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
}

/* Map */
.section-3d--map {
    padding: 0 0 4rem;
    background: #fff;
}

.map-wrapper {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid rgba(6, 6, 6, 0.1);
}

.faq-question {
    font-family: 'Crimson Text', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #060606;
    padding: 1.5rem 0;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color 0.2s ease;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 300;
    color: #d4af37;
    flex-shrink: 0;
    margin-left: 1rem;
    transition: transform 0.3s ease;
}

.faq-item[open] .faq-question::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-question:hover {
    color: #d4af37;
}

.faq-answer {
    padding: 0 0 1.5rem;
}

.faq-answer p {
    font-size: 1rem;
    color: #666;
    line-height: 1.7;
}

/* Publication styles */
.pub-featured {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 768px) {
    .pub-featured {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.pub-featured__content h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 400;
    color: #060606;
    margin: 0.75rem 0;
}

.pub-featured__meta {
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #d4af37;
    margin-bottom: 1rem;
}

.pub-featured__content p {
    font-size: 1.0625rem;
    color: #444;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Book 3D */
.book-3d {
    width: 200px;
    height: 280px;
    position: relative;
    transform: perspective(800px) rotateY(-15deg);
    transition: transform 0.4s ease;
    margin: 0 auto;
}

.book-3d:hover {
    transform: perspective(800px) rotateY(-5deg) translateY(-10px);
}

.book-3d__spine {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 30px;
    background: linear-gradient(to right, #2a2a2a, #4a4a4a);
    border-radius: 3px 0 0 3px;
}

.book-3d__front {
    position: absolute;
    left: 30px;
    top: 0;
    right: 0;
    bottom: 0;
    background: #060606;
    border-radius: 0 3px 3px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.book-3d__label {
    font-family: 'Inter', sans-serif;
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #d4af37;
    margin-bottom: 1rem;
}

.book-3d__title {
    font-family: 'Playfair Display', serif;
    font-size: 1.125rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.book-3d__subtitle {
    font-family: 'Lora', serif;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Publication Grid */
.pub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.pub-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.pub-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.pub-card__cover {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.pub-card__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #060606 0%, #1a1a1a 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.pub-card__placeholder span {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: #d4af37;
    margin-bottom: 0.5rem;
}

.pub-card__placeholder small {
    font-family: 'Inter', sans-serif;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
}

.pub-card__info {
    padding: 1.5rem;
}

.pub-card__info h3 {
    font-family: 'Crimson Text', serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: #060606;
    margin-bottom: 0.5rem;
}

.pub-card__info p {
    font-size: 0.875rem;
    color: #666;
    line-height: 1.5;
}

/* SR Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
