<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>{{ $emailSubject ?? 'Email' }}</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            line-height: 1.6;
            color: #333;
            max-width: 600px;
            margin: 0 auto;
            padding: 20px;
        }
        .header {
            border-bottom: 2px solid var(--color-blu);
            padding-bottom: 20px;
            margin-bottom: 30px;
        }
        .content {
            margin-bottom: 30px;
        }
        .footer {
            border-top: 1px solid #ddd;
            padding-top: 20px;
            font-size: 12px;
            color: #666;
            text-align: center;
        }
    </style>
</head>
<body>
    <div class="header">
        <h2 style="color: var(--color-blu); margin: 0;">{{ config('app.name', 'La Tua App') }}</h2>
    </div>

    <div class="content">
        @if($recipientName)
            <p>Ciao {{ $recipientName }},</p>
        @endif

        {!! $content !!}
    </div>

    <div class="footer">
        <p>Questa email è stata inviata automaticamente. Per favore non rispondere a questo indirizzo.</p>
        <p>&copy; {{ date('Y') }} {{ config('app.name') }}. Tutti i diritti riservati.</p>
    </div>
</body>
</html>
